/* =============================================
   GameHub — Redesigned Design System
   Black Theme with Magenta/Pink Accents
   ============================================= */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Black + Magenta */
  --bg-primary: #000000;
  --bg-secondary: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #242424;
  --bg-glass: rgba(26, 26, 26, 0.85);
  --bg-input: #111111;
  --bg-sidebar: #0a0a0a;
  --bg-navbar: #0d0d0d;

  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;

  --accent-primary: #e91e63;
  --accent-secondary: #ff4081;
  --accent-tertiary: #00c853;
  --accent-gradient: linear-gradient(135deg, #e91e63, #ff4081);
  --accent-gradient-hover: linear-gradient(135deg, #f02574, #ff5a92);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(233, 30, 99, 0.4);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 8px 40px rgba(233, 30, 99, 0.15);
  --shadow-glow: 0 0 20px rgba(233, 30, 99, 0.2);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --sidebar-width: 200px;
  --navbar-height: 56px;
}

/* ---------- Icon System (SVG via mask-image) ---------- */
[class^="icon-"], [class*=" icon-"] {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.icon-gamepad { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' y1='12' x2='10' y2='12'/%3E%3Cline x1='8' y1='10' x2='8' y2='14'/%3E%3Cline x1='15' y1='13' x2='15.01' y2='13'/%3E%3Cline x1='18' y1='11' x2='18.01' y2='11'/%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' y1='12' x2='10' y2='12'/%3E%3Cline x1='8' y1='10' x2='8' y2='14'/%3E%3Cline x1='15' y1='13' x2='15.01' y2='13'/%3E%3Cline x1='18' y1='11' x2='18.01' y2='11'/%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3C/svg%3E"); }
.icon-search { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }
.icon-heart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
.icon-heart-filled { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
.icon-cart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); }
.icon-user { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.icon-settings { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E"); }
.icon-star-filled { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
.icon-star-empty { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
.icon-arrow-left { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E"); }
.icon-x { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }
.icon-home { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); }
.icon-users { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.icon-logout { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E"); }
.icon-bar-chart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='20' x2='12' y2='10'/%3E%3Cline x1='18' y1='20' x2='18' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='16'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='20' x2='12' y2='10'/%3E%3Cline x1='18' y1='20' x2='18' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='16'/%3E%3C/svg%3E"); }
.icon-check-circle { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E"); }
.icon-x-circle { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E"); }

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: 0 var(--space-xl);
  height: var(--navbar-height);
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.navbar .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.navbar .logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

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

.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-primary);
  font-weight: 600;
}

/* Remove underline effect from old design */
.nav-links a::after {
  display: none;
}

/* Search bar in navbar */
.nav-search {
  flex: 1;
  max-width: 360px;
  margin-left: auto;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-search input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.15);
}

.nav-search .search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Admin login button in navbar */
.nav-admin-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.45rem 1rem;
  color: var(--accent-primary) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
  border: none;
  background: none;
}

.nav-admin-btn:hover {
  color: var(--accent-secondary) !important;
  background: none !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  box-shadow: 0 6px 24px rgba(233, 30, 99, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid #333;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #555;
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 6px 24px rgba(255, 71, 87, 0.4);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 24px rgba(0, 200, 83, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
}

.btn-white {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.btn-white:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-image-wrapper {
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: var(--space-md);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-genre {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-price .original-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  margin-left: var(--space-xs);
}

.sale-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: var(--accent-primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 3px;
  margin-right: var(--space-xs);
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title::after {
  display: none;
}

.section-title .arrow {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================
   HOME PAGE — 3-COLUMN LAYOUT
   ============================================ */
.home-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 0;
  padding-top: var(--navbar-height);
  min-height: 100vh;
}

/* --- Left Sidebar --- */
.left-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: var(--space-lg) var(--space-md);
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.sidebar-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-menu a.active {
  color: var(--text-primary);
  background: var(--accent-primary);
  font-weight: 600;
}

.sidebar-menu a .menu-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
  padding: 0 0.8rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-list a {
  padding: 0.4rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.genre-list a::before {
  content: "•";
  color: var(--accent-primary);
  font-weight: 700;
}

.genre-list a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

/* --- Main Content Area --- */
.main-content {
  padding: var(--space-xl);
  overflow-x: hidden;
}

/* --- Featured Game Banner --- */
.featured-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  margin-bottom: var(--space-xl);
  cursor: pointer;
}

.featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.85) 100%);
}

.featured-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--accent-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  margin-bottom: var(--space-md);
}

.featured-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.5px;
}

.featured-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.featured-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

/* --- Right Trending Sidebar --- */
.trending-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: var(--space-lg) var(--space-md);
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.trending-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.trending-item+.trending-item {
  border-top: 1px solid var(--border-color);
}

.trending-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.trending-info {
  flex: 1;
  min-width: 0;
}

.trending-info .title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-info .status {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   GAME CAROUSEL (Game on Sale)
   ============================================ */
.carousel-section {
  margin-top: var(--space-lg);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.carousel-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.carousel-arrows {
  display: flex;
  gap: var(--space-sm);
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.carousel-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: var(--space-md);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex-shrink: 0;
  min-width: 220px;
  width: 220px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.carousel-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.carousel-card .card-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.carousel-card .card-title {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.carousel-card .card-genre {
  font-size: 0.7rem;
  margin-bottom: var(--space-xs);
}

.carousel-card .card-price {
  font-size: 0.85rem;
}

/* ============================================
   GAMING NEWS SECTION (GNews API)
   ============================================ */
.news-section {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.news-section-header {
  margin-bottom: var(--space-xl);
}

.news-title-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.news-title-group h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.news-icon {
  font-size: 1.3rem;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.15rem 0.55rem;
  background: rgba(233, 30, 99, 0.15);
  color: var(--accent-primary);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: newsLivePulse 2s ease-in-out infinite;
}

.news-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: newsLiveDot 1.5s ease-in-out infinite;
}

@keyframes newsLivePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes newsLiveDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.news-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- News Grid --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* --- News Card --- */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.news-card:hover .news-card-image img {
  transform: scale(1.06);
}

/* Featured (first) card spans 2 columns and 2 rows */
.news-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.news-card-image {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card-featured .news-card-image img {
  height: 100%;
  min-height: 280px;
}

.news-card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.news-card-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.news-card-featured .news-card-content {
  padding: var(--space-lg);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.72rem;
}

.news-source {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background: var(--accent-primary);
  color: white;
  font-weight: 700;
  font-size: 0.65rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.news-time {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.news-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-featured .news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.news-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: var(--space-xs);
}

/* --- Platform & Publisher badges --- */
.news-platform {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

.news-publisher {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}



/* --- News Responsive --- */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card-featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .news-card-featured .news-card-image img {
    min-height: 200px;
  }
}

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

  .news-card-featured {
    grid-column: span 1;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-brand .logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: var(--space-xs) 0;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

/* ============================================
   HERO SECTION (Legacy — for non-home pages)
   ============================================ */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(233, 30, 99, 0.08) 0%,
      transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(233, 30, 99, 0.05) 0%,
      transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  from {
    transform: scale(1) translate(0, 0);
  }

  to {
    transform: scale(1.2) translate(30px, -20px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding-left: var(--space-3xl);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.3);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-3xl) 0;
}

/* ============================================
   AUTH CARD (Login Page)
   ============================================ */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.6s ease;
}

.auth-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  font-size: 0.9rem;
}

.auth-card .form-group {
  margin-bottom: var(--space-lg);
}

.auth-card .btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  margin-top: var(--space-sm);
}

.error-message {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff6b81;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: var(--space-md);
  display: none;
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-layout {
  display: flex;
  gap: var(--space-xl);
  padding-top: 100px;
  min-height: 100vh;
}

.search-sidebar {
  flex-shrink: 0;
  width: 280px;
  padding: var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.search-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-results {
  flex: 1;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.search-results-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.results-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-page {
  padding-top: 100px;
  min-height: 100vh;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.detail-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info .genre-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.3rem 0.8rem;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.3);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.detail-info h1 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: var(--space-sm);
}

.detail-info .developer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.detail-info .price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-primary);
  margin-bottom: var(--space-xl);
}

.detail-info .action-buttons {
  display: flex;
  gap: var(--space-md);
}

.detail-tabs {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-xl);
}

.tab-headers {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-md);
}

.tab-header {
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
  background: none;
}

.tab-header:hover,
.tab-header.active {
  color: var(--text-primary);
}

.tab-header.active::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * var(--space-md) - 1px);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
}

.tab-content {
  display: none;
  color: var(--text-secondary);
  line-height: 1.8;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.tab-content h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* Ratings */
.rating-stars {
  color: #ffc107;
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.rating-bar-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.rating-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 4px;
  transition: width 1s ease;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: var(--space-xl);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .logo {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(233, 30, 99, 0.1);
  color: var(--accent-primary);
}

.sidebar-nav a.active {
  background: rgba(233, 30, 99, 0.15);
  border-left: 3px solid var(--accent-primary);
}

.sidebar-nav .logout-link {
  margin-top: auto;
  color: var(--accent-secondary);
}

.sidebar-nav .logout-link:hover {
  background: rgba(233, 30, 99, 0.1);
  color: var(--accent-secondary);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: var(--space-2xl);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.admin-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
}

/* ============================================
   DATA TABLE
   ============================================ */
.data-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--bg-secondary);
}

.data-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(233, 30, 99, 0.04);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  gap: var(--space-sm);
}

.table-game-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.table-game-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-xl);
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 71, 87, 0.2);
  color: #ff6b81;
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-xl);
}

/* ============================================
   TEAM PAGE
   ============================================ */
.team-section {
  padding-top: 120px;
  min-height: 100vh;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--space-xl);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.3);
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.team-card .student-id {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.team-card .role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-3xl);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

/* ============================================
   TOASTS / NOTIFICATIONS
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: var(--shadow-card);
  z-index: 5000;
  animation:
    slideUp 0.3s ease,
    fadeOut 0.3s ease 2.7s forwards;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.toast.success {
  border-left: 4px solid var(--accent-tertiary);
}

.toast.error {
  border-left: 4px solid var(--accent-primary);
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .home-layout {
    grid-template-columns: var(--sidebar-width) 1fr;
  }

  .trending-sidebar {
    display: none;
  }
}

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

  .admin-sidebar {
    width: 220px;
  }

  .admin-main {
    margin-left: 220px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 var(--space-md);
    gap: var(--space-md);
  }

  .nav-links {
    gap: 2px;
  }

  .nav-search {
    display: none;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-content {
    padding-left: var(--space-xl);
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .left-sidebar {
    display: none;
  }

  .trending-sidebar {
    display: none;
  }

  .featured-banner {
    height: 300px;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .search-layout {
    flex-direction: column;
    padding-top: 80px;
  }

  .search-sidebar {
    width: 100%;
    position: static;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .footer-content {
    flex-direction: column;
  }
}

/* ============================================
   NEW SECTIONS (New Releases, Free Game, Popular)
   ============================================ */

/* --- New Releases Grid --- */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* --- Free Game Promo Card --- */
.promo-section {
  margin-bottom: var(--space-2xl);
}

.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-color);
}

.promo-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.promo-card:hover img {
  transform: scale(1.03);
}

.promo-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  width: 100%;
}

.promo-label {
  background: var(--accent-tertiary);
  color: #000;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--space-sm);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.promo-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.promo-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  max-width: 600px;
}

/* --- Most Popular List --- */
.popular-section {
  margin-bottom: var(--space-2xl);
}

.popular-slider {
  display: flex;
  overflow-x: auto;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.popular-slider::-webkit-scrollbar {
  display: none;
}

.new-release-card {
  min-width: 400px;
  height: 220px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.new-release-card img.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.new-release-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
  padding: var(--space-md);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.new-release-card:hover img.bg-img {
  transform: scale(1.05);
}

.popular-card {
  display: flex;
  min-width: 300px;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  align-items: center;
}

.popular-thumb {
  width: 140px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.popular-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.popular-rank {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-muted);
  opacity: 0.3;
}

.popular-info h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.popular-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  gap: var(--space-sm);
}

/* ============================================
   DETAIL PAGE SLIDER
   ============================================ */
.detail-slider {
  margin-bottom: var(--space-xl);
}

.slider-main {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border-color);
}

.slider-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-nav-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.slider-prev {
  left: 1rem;
}

.slider-next {
  right: 1rem;
}

.slider-thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  scrollbar-width: none;
}

.slider-thumbs::-webkit-scrollbar {
  display: none;
}

.slider-thumb {
  width: 100px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  flex-shrink: 0;
}

.slider-thumb.active {
  opacity: 1;
  border-color: var(--accent-primary);
}

.slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1200px) {
  .detail-page.container {
    max-width: 1400px;
  }

  .slider-main {
    height: 450px;
  }
}

/* ============================================
   MULTI-GENRE & PRICING UPDATES
   ============================================ */

/* Genre Grid in Admin Panel */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  background: var(--bg-input);
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.genre-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.genre-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* Multi-genre badges on Detail Page */
.genre-badge-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.genre-badge-chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(233, 30, 99, 0.2);
}

/* ============================================
   CSS ID SELECTORS
   Required: at least one ID selector in CSS
   ============================================ */

/* Style the navigation search input by ID */
#nav-search-input {
  transition: all var(--transition-normal);
}

#nav-search-input:focus {
  background: var(--bg-card);
}

/* Style the results grid by ID */
#results-grid {
  min-height: 200px;
}

/* Style the team grid by ID */
#team-grid {
  gap: var(--space-xl);
}

/* ============================================
   TEAM PAGE — Avatar Images & Social Links
   ============================================ */

/* Team avatar image instead of initials */
.team-avatar-img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--accent-primary);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.25);
}

/* Social media link on team card */
.team-social {
  margin-top: var(--space-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.4rem 1rem;
  background: rgba(233, 30, 99, 0.1);
  color: var(--accent-secondary) !important;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid rgba(233, 30, 99, 0.2);
}

.social-link:hover {
  background: rgba(233, 30, 99, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* ============================================
   DETAIL PAGE — Back to Search Link
   ============================================ */
.back-to-search {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  transition: color var(--transition-fast);
}

.back-to-search:hover {
  color: var(--accent-primary);
}

/* ============================================
   UTILITY: .container
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl);
  padding-top: calc(var(--navbar-height) + var(--space-xl));
}

/* ============================================
   NAV ICON BUTTONS & BADGES
   ============================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-icon-btn:hover,
.nav-icon-btn.nav-icon-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

/* ============================================
   ERROR & SUCCESS MESSAGES
   ============================================ */
.error-message {
  display: none;
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff6b81;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: var(--space-md);
}

.success-message {
  display: none;
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #69f0ae;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: var(--space-md);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-3xl);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
  min-height: calc(100vh - var(--navbar-height) - 200px);
}

.cart-header-section {
  margin-bottom: var(--space-xl);
}

.cart-header-section h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}

.cart-items {
  min-height: 200px;
}

.cart-item-card {
  display: flex;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}

.cart-item-card:hover {
  border-color: var(--border-accent);
}

.cart-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-xl));
}

.cart-totals {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.cart-totals h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cart-total-final {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: var(--space-md);
}

/* ============================================
   WISHLIST PAGE
   ============================================ */
.wishlist-page {
  min-height: calc(100vh - var(--navbar-height) - 200px);
}

.wishlist-page h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

/* ============================================
   AUTH PAGES (User Login + Admin Login)
   ============================================ */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--navbar-height) - 120px);
  padding: var(--space-xl);
  padding-top: calc(var(--navbar-height) + var(--space-3xl));
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  text-align: center;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

/* Auth Tabs — Toggle between Sign In / Register */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.auth-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.auth-tab.active {
  background: var(--accent-primary);
  color: #fff;
}

/* Tab Content: hide inactive */
.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: var(--space-lg) var(--space-md);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-sm);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav a.active {
  color: var(--text-primary);
  background: var(--accent-primary);
  font-weight: 600;
}

.sidebar-nav .logout-link {
  margin-top: auto;
  color: #ff6b81;
}

.sidebar-nav .logout-link:hover {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
}

.admin-main {
  padding: var(--space-xl) var(--space-2xl);
  overflow-x: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.admin-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
}

/* ============================================
   DATA TABLE (Admin)
   ============================================ */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ============================================
   MODAL (Admin Add/Edit Game)
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

/* Genre checkbox grid in modal */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

/* ============================================
   FOOTER (global)
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand .logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

/* ============================================
   GRID UTILITY CLASSES
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: static;
  }

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

  .admin-sidebar {
    position: fixed;
    left: -260px;
    z-index: 1500;
    transition: left var(--transition-normal);
    width: 220px;
  }

  .admin-sidebar.open {
    left: 0;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 var(--space-md);
    gap: var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .nav-search {
    max-width: 200px;
  }

  .container {
    padding: var(--space-md);
    padding-top: calc(var(--navbar-height) + var(--space-md));
  }

  .cart-header-section h1,
  .wishlist-page h1 {
    font-size: 1.4rem;
  }

  .auth-card {
    padding: var(--space-xl);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal {
    padding: var(--space-xl);
    margin: var(--space-md);
  }
}

@media (max-width: 480px) {
  .nav-search {
    display: none;
  }

  .cart-item-card {
    flex-direction: column;
  }

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

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