/* =================================
  Modern Gaming Platform - Version 2.0
  Complete Redesign - Fresh Start
===================================*/

/* CSS Variables - Design System */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --secondary-dark: #db2777;
  --accent: #10b981;
  --accent-hover: #059669;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-hover: #334155;
  --light-bg: #fed7aa;
  --page-bg: #fed7aa;
  --white: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bg-card: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --error-color: #ef4444;
  --success-color: #22c55e;
}

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

html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 25%, #fcd34d 50%, #fdba74 75%, #fed7aa 100%) !important;
  background-attachment: scroll !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  position: relative;
  padding-top: 72px;
}

/* Animated gradient background */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Subtle pattern overlay - removed for performance */
body::before {
  display: none;
}

/* Floating orbs for depth - removed for performance */
body::after {
  display: none;
}

@keyframes floatingOrbs {
  0%, 100% {
    opacity: 1;
    transform: translate(0, 0);
  }
  50% {
    opacity: 0.7;
    transform: translate(20px, -20px);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.container-fluid {
  width: 100%;
  padding: 0 1.5rem;
}

/* Background decorative elements */
.bg-decorator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -3;
  overflow: hidden;
}

.bg-decorator::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(251, 146, 60, 0.04) 0%, transparent 25%),
    radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.04) 0%, transparent 25%),
    radial-gradient(circle at 50% 30%, rgba(253, 186, 116, 0.03) 0%, transparent 30%);
  animation: decorativeMove 25s linear infinite;
}

@keyframes decorativeMove {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  flex: 1;
  padding: 0 0.75rem;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Offsets */
.offset-1 { margin-left: 8.333333%; }
.offset-2 { margin-left: 16.666667%; }
.offset-3 { margin-left: 25%; }
.offset-4 { margin-left: 33.333333%; }
.offset-5 { margin-left: 41.666667%; }

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%)!important;
  color: var(--white)!important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  border: none!important;
}

.btn-primary:hover {
  transform: translateY(-2px)!important;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5)!important;
   border: none!important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Navigation - Modern Elegant Design */
.modern-navbar {
  display: block;
  width: 100%;
  height: 72px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.modern-navbar.scrolled {
  background: rgba(255, 255, 255, 1) !important;
  background-color: #fff !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1.5rem;
}

.navbar-left-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  letter-spacing: -0.02em;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-brand:hover::after {
  width: 100%;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.navbar-link {
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.01em;
  overflow: hidden;
}

.navbar-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  opacity: 0.1;
  z-index: -1;
}

.navbar-link:hover::before {
  width: 300%;
  height: 300%;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.navbar-link.active::before {
  width: 100%;
  height: 100%;
  opacity: 1;
  border-radius: var(--radius-xl);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.navbar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.navbar-toggle span {
  width: 24px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.navbar-toggle span:nth-child(2) {
  width: 16px;
  transition-delay: 0.1s;
}

.navbar-toggle:hover span:nth-child(2) {
  width: 24px;
}

/* Mobile Responsive - Navbar */
@media (max-width: 992px) {
  .navbar-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 7rem 1.5rem 2rem;
    gap: 0.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .navbar-menu.active {
    display: flex;
    right: 0;
  }

  .navbar-link {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
  }

  .navbar-link::before {
    border-radius: var(--radius-lg);
  }

  .navbar-link::after {
    content: '→';
    position: absolute;
    right: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
  }

  .navbar-link:hover::after,
  .navbar-link.active::after {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar-toggle {
    display: flex;
    z-index: 1001;
  }

  .navbar-toggle.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .navbar-brand {
    font-size: 1.35rem;
  }

  .nav-user-name,
  .nav-user-arrow {
    display: none;
  }
}

/* Overlay for mobile menu */
.navbar-overlay {
  display: none;
}

@media (max-width: 992px) {
  .navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .navbar-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* Footer */
.modern-footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-light);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Section */
.modern-section {
  /* padding: 5rem 0; */
  background: transparent !important;
}

/* Main Content Wrapper */
.main-content {
  min-height: calc(100vh - 400px);
  position: relative;
}

/* Ensure all main content sections are transparent */
.main-section {
  background: transparent !important;
}

/* Content wrapper for pages */
.content-wrapper {
  background: transparent;
  padding: 2rem 0;
}

/* Make sure container doesn't block background */
.container {
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-desc-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-desc-row .section-subtitle {
  text-align: center;
}

.section-more-link {
  position: absolute;
  right: 0;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.section-more-link i {
  font-size: 0.75rem;
}

.section-more-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Game Card */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-image {
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.game-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  z-index: 10;
}

.game-rating {
  position: absolute !important;
  top: 0.75rem !important;
  right: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  max-width: calc(100% - 2rem) !important;
  padding: 0.375rem 0.75rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  z-index: 10 !important;
}

/* .stars holds the rating block (5 <i> icons) */
.game-rating .stars {
  display: inline-flex;
  align-items: center;
  color: #fbbf24;
  font-size: 0.875rem;
  line-height: 1;
}

.game-rating .stars i {
  display: inline-block;
  width: 12px;
  color: #fbbf24;
}

.game-rating .stars .star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.game-rating .rating-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.game-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.game-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.game-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-actions {
  margin-top: auto;
}

.game-play-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 0;
  position: relative;
  /* overflow: hidden removed - was breaking sticky nav positioning context */
}

.hero-section{
  padding-top: 20px!important;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
}


.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Banner */
.page-banner {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  padding: 4rem 0;
  position: relative;
  /* overflow: hidden removed - was breaking sticky nav positioning context */
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  text-align: center;
  color: var(--white);
}

.banner-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.banner-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Game Meta Info: Developer, Publish Date, Update Time */
.game-meta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0;
  gap: 0.25rem;
}

.game-developer,
.game-publish-date,
.game-update-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  margin: 0.35rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.game-developer:hover,
.game-publish-date:hover,
.game-update-time:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-developer::before {
  content: '\f2bb';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  opacity: 0.85;
}

.game-publish-date::before {
  content: '\f133';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  opacity: 0.85;
}

.game-update-time::before {
  content: '\f017';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .game-meta-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .game-developer,
  .game-publish-date,
  .game-update-time {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
}

/* =================================
   FAQ Section - Accordion Style
==================================== */
.faq-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  position: relative;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.faq-title:hover::after {
  width: 100px;
}

.faq-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 0.75rem;
  transition: transform 0.3s ease, var(--transition);
  flex-shrink: 0;
}

.faq-section-toggle i {
  transition: transform 0.3s ease;
}

.faq-section.open .faq-section-toggle i {
  transform: rotate(90deg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  background: #f8fafc;
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
  background: var(--white);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  user-select: none;
  position: relative;
}

.faq-question::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-item.active .faq-question {
  color: var(--primary);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.04) 0%, transparent 100%);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem 1.25rem;
}

/* Dark mode FAQ */
@media (prefers-color-scheme: dark) {
  .faq-section {
    background: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .faq-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .faq-item.active {
    background: rgba(255, 255, 255, 0.06);
  }

  .faq-question {
    color: var(--white);
  }

  .faq-answer {
    color: var(--text-muted);
  }

  .faq-item.active .faq-question {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, transparent 100%);
  }
}

/* Mobile FAQ */
@media (max-width: 768px) {
  .faq-section {
    padding: 1.25rem 1rem;
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .faq-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .faq-question {
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
  }

  .faq-answer {
    font-size: 0.825rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1rem 0.875rem 1rem;
  }
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  font-size: 1rem;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-lg);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* Sidebar */
.sidebar-widget {
  background: rgba(255, 255, 255, 0.85) !important;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.widget-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ===== Social Share Section ===== */
.geme-social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
  line-height: 1;
}
.geme-social-share p {
  margin: 0;
  margin-right: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.geme-social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 17px;
  background: var(--white, #fff);
  color: var(--text-secondary, #64748b);
  border: 1px solid var(--border-color, #e2e8f0);
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.geme-social-share a:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.geme-social-share a:nth-child(2):hover {
  background: #1877f2;
  border-color: #1877f2;
}
.geme-social-share a:nth-child(3):hover {
  background: #0f1419;
  border-color: #0f1419;
}
.geme-social-share a:nth-child(4):hover {
  background: #e4405f;
  border-color: #e4405f;
}
.geme-social-share a:nth-child(5):hover {
  background: #ff0000;
  border-color: #ff0000;
}
@media (max-width: 576px) {
  .geme-social-share {
    gap: 8px;
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
  .geme-social-share a {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 8px;
  }
}

/* ===== Share Copy Modal ===== */
.share-copy-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.share-copy-modal.show {
  display: flex !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.share-copy-box {
  background: var(--white, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.share-copy-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  transition: color 0.15s;
}
.share-copy-close:hover {
  color: var(--error-color, #ef4444);
}
.share-copy-title {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
}
.share-copy-desc {
  margin: 0 0 14px;
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
}
.share-copy-row {
  display: flex;
  gap: 8px;
}
.share-copy-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-primary, #1e293b);
  background: #f8fafc;
}
.share-copy-input:focus {
  outline: none;
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.share-copy-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary, #6366f1), var(--primary-light, #818cf8));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}
.share-copy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.share-copy-status {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--accent, #10b981);
  min-height: 18px;
}

/* Latest Games Widget */
.latest-games {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.latest-game-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.latest-game-item:hover {
  background: rgba(99, 102, 241, 0.05);
}

.latest-game-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.latest-game-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-game-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1rem 0;
}

.pagination-container {
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.pagination-item {
  display: flex;
  align-items: center;
}

.pagination-link {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.pagination-link:hover:not(.disabled):not(.current) {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.pagination-link.current {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  cursor: default;
  pointer-events: none;
}

.pagination-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-color: #e0e0e0;
  color: var(--text-muted);
  pointer-events: none;
}

.pagination-link.prev,
.pagination-link.next {
  padding: 0 1rem;
  min-width: 44px;
  font-size: 1.125rem;
}

.pagination-link.prev:not(.disabled):hover,
.pagination-link.next:not(.disabled):hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Text Truncate */
.text-line-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-line-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-line-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }

  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }

  .hero-title { font-size: 2rem; }
  .hero-section { padding: 4rem 0; }
  .page-banner { padding: 3rem 0; }
  .banner-title { font-size: 2rem; }
  .game-grid { grid-template-columns: 1fr; }
  .modern-section { padding: 1rem 0; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }

  .section-desc-row {
    flex-direction: column;
  }

  .section-more-link {
    position: static;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .container { padding: 0 1rem; }
  .navbar-container { padding: 0.75rem 1rem; }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.75rem; }

  .section-desc-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-more-link {
    font-size: 0.8125rem;
  }

  .section-desc-row .section-subtitle {
    text-align: center;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-bg: #0f172a;
    --white: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
  }

  .modern-navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-color);
  }

  .sidebar-widget,
  .game-card {
    background: var(--white) !important;
    border-color: var(--border-color);
  }

  .form-control {
    background: var(--dark-card);
    border-color: var(--border-color);
    color: var(--text-primary);
  }

  .search-input {
    background: var(--dark-card);
    border-color: var(--border-color);
    color: var(--text-primary);
  }

  .pagination-link {
    background: var(--dark-card);
    border-color: var(--border-color);
    color: var(--text-primary);
  }
}

/* Keep main structural elements transparent to let body gradient show through */
.container,
.modern-section,
.content-wrapper,
.main-content,
main,
section:not(.modern-navbar):not(.page-banner):not(.hero-section):not(.faq-section),
.section-header,
.row,
[class*="col-"] {
  background-color: transparent !important;
}

/* Override for specific elements that need their own background */
.sidebar-widget,
.game-card,
.hero-section,
.page-banner,
.modern-footer {
  background: unset !important;
}

.navbar-toggle span {
  background: #ffffff !important;
}

/* Apply semi-transparent backgrounds */
.sidebar-widget {
  background: rgba(255, 255, 255, 0.85) !important;
}

.game-card {
  background: rgba(255, 255, 255, 0.9) !important;
}

/* .hero-section and .page-banner get their backgrounds from the main rules above */

.modern-footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%) !important;
}

.modern-navbar {
  display: block !important;
  width: 100% !important;
  height: 72px !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
  background-color: #fff !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  will-change: transform !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .scroll-top-btn {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ===== Nav Auth Buttons ===== */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-auth-btn {
  display: block;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-login {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-login:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== Nav User (Logged In) ===== */
.nav-user {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: background var(--transition);
  user-select: none;
}

.nav-user-trigger:hover {
  background: rgba(99, 102, 241, 0.08);
}

.nav-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.nav-user-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-arrow {
  font-size: 10px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--white) !important;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.nav-user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #ef4444;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #dc2626;
}

.nav-dropdown-username {
  display: none;
  padding: 8px 14px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .nav-dropdown-username {
    display: block;
  }
  .nav-auth {
    margin-left: 0;
    gap: 6px;
  }
  .nav-auth-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .nav-user-trigger {
    gap: 6px;
    padding: 2px 6px;
  }
  .nav-user-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .nav-user-name {
    max-width: 70px;
    font-size: 12px;
  }
  .nav-user-arrow {
    font-size: 9px;
  }
  .nav-user-dropdown {
    min-width: 140px;
    right: -10px;
  }
  .nav-dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ===== Login Modal Styles ===== */
.auth-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
    padding: 2rem !important;
    width: 90% !important;
    max-width: 420px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    position: relative !important;
    z-index: 100000 !important;
    border: 1px solid rgba(254, 215, 170, 0.5) !important;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--border-color);
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    background: #cbd5e1;
    color: var(--text-primary);
    transform: rotate(90deg);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header h2 {
    font-size: var(--font-size-2xl);
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 40%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-tabs {
    display: flex;
    background: var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 1.75rem;
    gap: 0;
    border-bottom: none;
}

.auth-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    border-radius: calc(var(--radius-lg) - 4px);
    background: transparent;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    color: var(--white);
    background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--white);
    box-sizing: border-box;
    color: var(--text-primary);
    font-weight: 450;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.auth-form .form-group input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.auth-form .form-group .error-text {
    color: var(--error-color);
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
    display: none;
}

.auth-form .form-group.has-error input {
    border-color: var(--error-color);
}

.auth-form .form-group.has-error .error-text {
    display: block;
}

.auth-form .btn-auth {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 50%, #10b981 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    letter-spacing: 0.025em;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.auth-form .btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}

.auth-form .btn-auth:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.auth-form .btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-form .btn-auth.loading {
    position: relative;
    color: transparent;
}

.auth-form .btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

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

.auth-form .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.auth-form .auth-footer p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-form .auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-form .auth-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Alert Box */
.auth-modal > .alert-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: var(--font-size-sm);
    display: none;
    font-weight: 500;
}

.auth-modal > .alert-box.show {
    display: block;
}

.auth-modal > .alert-box.success {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-hover);
    border: 1px solid var(--accent);
}

.auth-modal > .alert-box.error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.auth-form .password-toggle {
    position: relative;
}

.auth-form .password-toggle input {
    padding-right: 3rem;
}

.auth-form .password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    user-select: none;
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: 4px;
}

.auth-form .password-toggle .toggle-icon:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-modal {
        margin: 0.75rem;
        padding: 1.5rem !important;
        max-width: none;
        width: calc(100% - 1.5rem) !important;
        border-radius: 12px !important;
    }
    .auth-header h2 {
        font-size: 1.5rem;
    }
    .auth-tabs {
        margin-bottom: 1.25rem;
    }
    .auth-tab {
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
    }
    .auth-form .form-group input {
        padding: 0.7rem 0.875rem;
        font-size: 0.95rem;
    }
    .auth-form .btn-auth {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ===== Comments Section ===== */
.comments-section {
  width: 100%;
  box-sizing: border-box;
  background: var(--white) !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

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

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.comment-item {
  padding: 16px;
  background: var(--bg-light) !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.comment-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.comment-star {
  margin-left: auto;
  font-size: 13px;
  color: #f39c12;
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

.comments-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.comments-empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.comments-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.load-more-comments {
  margin-top: 16px;
  text-align: center;
}

.btn-load-more {
  padding: 8px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-load-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Comment Form ===== */
.comment-form {
  background: var(--bg-light) !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.comment-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-form-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-form-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.comment-form-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.comment-form-rating {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.comment-form-rating label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 8px;
  font-weight: 500;
}

.rating-star {
  font-size: 22px;
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
}

.rating-star:hover,
.rating-star.active {
  color: #f39c12;
}

.rating-star:hover {
  transform: scale(1.2);
}

.comment-form-textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--white) !important;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
}

.comment-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-form-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.btn-comment-submit {
  padding: 8px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-comment-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.comment-login-hint {
  text-align: center;
  padding: 15px;
  background: var(--bg-light) !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.comment-login-hint a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.comment-login-hint a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .comments-section {
    padding: 16px;
  }
  .comment-item {
    padding: 12px;
  }
  .comment-form {
    padding: 12px;
  }
  .rating-star {
    font-size: 20px;
  }
}