/* ==========================================
   DESIGN SYSTEM & THEME CONFIGURATION (style.css)
   ========================================== */

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

:root {
  /* Colors */
  --cyan-neon: #00E5FF;
  --cyan-dim: #00BCD4;
  --blue-electric: #0288D1;
  --bg-dark: #0B1220;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-surface: #070C16;
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  
  /* Borders */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-neon: rgba(0, 229, 255, 0.18);
  --border-neon-active: rgba(0, 229, 255, 0.65);

  /* Glows */
  --glow-cyan: 0 0 15px rgba(0, 229, 255, 0.25);
  --glow-cyan-strong: 0 0 25px rgba(0, 229, 255, 0.5);
  --glow-text: 0 0 10px rgba(0, 229, 255, 0.6), 0 0 20px rgba(2, 136, 209, 0.3);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* Light Theme Overrides */
html[data-theme="light"] {
  --bg-dark: #FFFFFF;
  --bg-card: rgba(248, 250, 252, 0.85);
  --bg-surface: #F1F5F9;
  --text-primary: #111111;
  --text-secondary: #475569;
  
  --border-color: rgba(15, 23, 42, 0.1);
  --border-neon: rgba(0, 131, 143, 0.2);
  --border-neon-active: rgba(0, 131, 143, 0.5);

  --glow-cyan: 0 0 12px rgba(0, 131, 143, 0.12);
  --glow-cyan-strong: 0 0 20px rgba(0, 131, 143, 0.25);
  --glow-text: none;
  
  --cyan-neon: #00838F;
  --cyan-dim: #0097A7;
  --blue-electric: #0277BD;
}

/* Light Mode Custom Overrides for Typography, Inputs, Modals, Cards, and Tables */
html[data-theme="light"] .stat-number,
html[data-theme="light"] .section-title,
html[data-theme="light"] .plugin-name,
html[data-theme="light"] .project-title,
html[data-theme="light"] .announce-title,
html[data-theme="light"] .discord-server-title,
html[data-theme="light"] .discord-metric-num,
html[data-theme="light"] .about-bio-title,
html[data-theme="light"] .skill-name,
html[data-theme="light"] .timeline-title,
html[data-theme="light"] .timeline-item-title,
html[data-theme="light"] .form-label,
html[data-theme="light"] .footer-brand span,
html[data-theme="light"] .modal-header-nav h3,
html[data-theme="light"] .modal-section-title,
html[data-theme="light"] .toast-message,
html[data-theme="light"] .youtube-card-title,
html[data-theme="light"] .pillar-title,
html[data-theme="light"] .commission-title,
html[data-theme="light"] .download-item-title,
html[data-theme="light"] .spec-card-title,
html[data-theme="light"] .cmd-name,
html[data-theme="light"] .perm-name {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .tab-btn:hover {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .close-btn:hover {
  color: var(--text-primary) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .hero-title span {
  background: linear-gradient(135deg, #111111 30%, var(--cyan-neon) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(0, 131, 143, 0.1)) !important;
}

html[data-theme="light"] .form-input-wrapper input,
html[data-theme="light"] .form-input-wrapper select,
html[data-theme="light"] .form-group textarea,
html[data-theme="light"] .search-input-wrapper input {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .form-input-wrapper input:focus,
html[data-theme="light"] .form-input-wrapper select:focus,
html[data-theme="light"] .form-group textarea:focus,
html[data-theme="light"] .search-input-wrapper input:focus {
  border-color: var(--cyan-neon) !important;
  box-shadow: 0 0 10px rgba(0, 131, 143, 0.15) !important;
}

html[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

html[data-theme="light"] header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 5px 25px rgba(15, 23, 42, 0.05) !important;
  border-bottom-color: var(--border-neon) !important;
}

html[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid var(--border-color) !important;
}

html[data-theme="light"] .project-tags span,
html[data-theme="light"] .skill-progress-bar,
html[data-theme="light"] .close-btn:hover {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .timeline-container {
  border-left-color: var(--border-color) !important;
}

html[data-theme="light"] .timeline-divider {
  background-color: var(--border-color) !important;
}

html[data-theme="light"] .support-channel-item {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .youtube-card {
  background: var(--bg-card) !important;
}

html[data-theme="light"] .youtube-card-body {
  background: rgba(248, 250, 252, 0.8) !important;
  border-top: 1px solid var(--border-color) !important;
}

html[data-theme="light"] .youtube-card-date {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .youtube-skeleton {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.06) 100%) !important;
}

html[data-theme="light"] .modal-backdrop {
  background-color: rgba(15, 23, 42, 0.4) !important;
}

html[data-theme="light"] .modal-window {
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="light"] .modal-header-nav,
html[data-theme="light"] .modal-footer {
  background-color: rgba(15, 23, 42, 0.02) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .cmd-item,
html[data-theme="light"] .perm-list-box {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .matrix-table-wrapper {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .matrix-table th {
  background-color: rgba(0, 131, 143, 0.06) !important;
}

html[data-theme="light"] .matrix-table th, 
html[data-theme="light"] .matrix-table td {
  border-bottom: 1px solid var(--border-color) !important;
}

html[data-theme="light"] .github-dot-mock {
  background-color: #ebedf0 !important;
}
html[data-theme="light"] .github-dot-mock.level-1 { background-color: #9be9a8 !important; }
html[data-theme="light"] .github-dot-mock.level-2 { background-color: #40c463 !important; }
html[data-theme="light"] .github-dot-mock.level-3 { background-color: #30a14e !important; }
html[data-theme="light"] .github-dot-mock.level-4 { background-color: #216e39 !important; }

html[data-theme="light"] .contact-card,
html[data-theme="light"] .support-widget-card,
html[data-theme="light"] .discord-widget-card,
html[data-theme="light"] .about-card,
html[data-theme="light"] .plugin-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .utility-card,
html[data-theme="light"] .download-card,
html[data-theme="light"] .stat-card {
  background: var(--bg-card) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .discord-widget-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(241, 245, 249, 0.8) 100%) !important;
}

/* Theme Switcher Button Styles */
.theme-switcher-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
  outline: none;
}

[data-theme="light"] .theme-switcher-btn {
  background: rgba(0, 0, 0, 0.05);
}

.theme-switcher-btn:hover {
  border-color: var(--cyan-neon);
  box-shadow: var(--glow-cyan);
  transform: scale(1.05);
}

.theme-switcher-btn svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

.theme-switcher-btn:hover svg {
  transform: rotate(15deg);
}

/* Hide inactive icons dynamically based on theme-mode state */
html[data-theme-mode="light"] .theme-switcher-btn .theme-icon-light { display: block !important; }
html[data-theme-mode="light"] .theme-switcher-btn .theme-icon-dark { display: none !important; }
html[data-theme-mode="light"] .theme-switcher-btn .theme-icon-auto { display: none !important; }

html[data-theme-mode="dark"] .theme-switcher-btn .theme-icon-light { display: none !important; }
html[data-theme-mode="dark"] .theme-switcher-btn .theme-icon-dark { display: block !important; }
html[data-theme-mode="dark"] .theme-switcher-btn .theme-icon-auto { display: none !important; }

html[data-theme-mode="auto"] .theme-switcher-btn .theme-icon-light { display: none !important; }
html[data-theme-mode="auto"] .theme-switcher-btn .theme-icon-dark { display: none !important; }
html[data-theme-mode="auto"] .theme-switcher-btn .theme-icon-auto { display: block !important; }

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-neon) var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.15);
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-neon);
  box-shadow: var(--glow-cyan);
}

/* Hide default cursor on desktop screens */
@media (min-width: 1024px) {
  html, body {
    cursor: none;
  }
  a, button, select, input, textarea, .glow-button, .close-btn {
    cursor: none;
  }
}

/* Custom Cursor */
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--cyan-neon);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  display: none;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan-neon);
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  display: none;
  mix-blend-mode: difference;
}

@media (min-width: 1024px) {
  .custom-cursor-ring, .custom-cursor-dot {
    display: block;
  }
}

/* Loader Screen */
#loading-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 300px;
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.loader-logo-wrapper {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: pulseLogo 2s ease-in-out infinite;
}

.loader-logo-wrapper img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  }
}

.loader-text-wrapper {
  text-align: center;
}

.loader-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cyan-neon);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: var(--glow-text);
}

.loader-status {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.loader-progress-bg {
  width: 100%;
  height: 4px;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-electric), var(--cyan-neon));
  box-shadow: 0 0 8px var(--cyan-neon);
  transition: width 0.1s ease-out;
}

.loader-percentage {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--cyan-neon);
  font-weight: bold;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

header.scrolled {
  background: rgba(13, 17, 23, 0.95);
  border-bottom-color: var(--border-neon);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  height: 64px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.3));
}

.logo-brand span {
  background: linear-gradient(90deg, #fff, var(--cyan-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--cyan-neon);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a.active::after {
  width: 50%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan-neon);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.nav-cta {
  display: inline-flex;
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================
   GLOBAL UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

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

.glow-button {
  background: transparent;
  color: var(--cyan-neon);
  border: 1px solid var(--cyan-neon);
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-size: 0.75rem;
  outline: none;
}

.glow-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: 0.5s;
}

.glow-button:hover::before {
  left: 100%;
}

.glow-button:hover {
  background: var(--cyan-neon);
  color: #000000;
  box-shadow: var(--glow-cyan-strong);
  transform: translateY(-2px);
}

.glow-button.solid {
  background: linear-gradient(90deg, var(--blue-electric), var(--cyan-neon));
  color: #000000;
  border: none;
  box-shadow: var(--glow-cyan);
}

.glow-button.solid:hover {
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan-neon));
  box-shadow: var(--glow-cyan-strong);
}

/* Page Tab Transition Router */
.tab-content {
  display: none;
  min-height: calc(100vh - 70px);
  padding-top: 70px;
  position: relative;
}

.tab-content.active {
  display: block;
  animation: viewFadeIn var(--transition-slow) forwards cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==========================================
   HOMEPAGE (Hero View)
   ========================================== */
#home-view {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 0;
}

#canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-radial-glow1 {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-radial-glow2 {
  position: absolute;
  bottom: 20%;
  right: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 136, 209, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 5;
  padding: 100px 0;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--cyan-neon);
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.05);
}

.tagline-dot {
  width: 6px;
  height: 6px;
  background-color: var(--cyan-neon);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.15));
}

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--cyan-neon);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-graphics-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  width: 100%;
}

.hero-halo-ring {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.15);
  box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.05);
  pointer-events: none;
  z-index: 1;
}

.floating-crown-container {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 90px;
  height: 90px;
  z-index: 10;
  animation: floatLogo 5s ease-in-out infinite;
}

.floating-crown-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.4));
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}

.skin-parallax-container {
  position: relative;
  width: 280px;
  height: 420px;
  z-index: 5;
  perspective: 1000px;
  transition: transform 0.1s ease-out;
}

.skin-render-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: floatSkin 6s ease-in-out infinite;
}

.skin-render-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.25));
}

@keyframes floatSkin {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.skin-ground-shadow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(10px);
  border-radius: 50%;
  pointer-events: none;
}

.mini-box-decor {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-weight: bold;
  color: var(--cyan-neon);
  box-shadow: var(--glow-cyan);
  font-size: 0.65rem;
  pointer-events: none;
}

.decor-dev {
  right: 15%;
  bottom: 20%;
  width: 48px;
  height: 48px;
  animation: floatSkin 7s ease-in-out infinite;
}

.decor-mc {
  left: 10%;
  bottom: 30%;
  width: 40px;
  height: 40px;
  animation: floatSkin 5s ease-in-out infinite;
}

/* ==========================================
   STATISTICS SECTION
   ========================================== */
.stats-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(0, 229, 255, 0.05);
  border-bottom: 1px solid rgba(2, 136, 209, 0.05);
  background-color: var(--bg-surface);
}

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

.stat-card {
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.75rem;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 12px;
}

/* ==========================================
   SECTION HEADER UTILITY
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-neon);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
}

/* ==========================================
   PLUGINS SECTION
   ========================================== */
.plugins-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.plugins-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .plugins-controls {
    flex-direction: row;
  }
}

.category-tabs {
  display: flex;
  padding: 4px;
  border-radius: 12px;
  background-color: rgba(22, 27, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  background-color: var(--cyan-neon);
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-input-wrapper input {
  width: 100%;
  background: rgba(22, 27, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px 12px 42px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-normal);
}

.search-input-wrapper input:focus {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.plugin-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plugin-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.plugin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--cyan-neon);
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plugin-dl-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.plugin-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

.plugin-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--cyan-neon);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.plugin-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 16px;
  flex-grow: 1;
}

.plugin-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.plugin-card-footer .glow-button {
  padding: 10px 16px;
  font-size: 0.7rem;
  justify-content: center;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
  background-color: var(--bg-surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 30px;
}

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

.project-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 24px;
}

.project-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-category {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan-neon);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.project-tags span {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.project-links a:hover {
  color: var(--cyan-neon);
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */
.community-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

@media (max-width: 992px) {
  .community-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.announcements-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.announcement-card {
  padding: 24px;
  display: flex;
  gap: 20px;
}

.announce-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.announce-content {
  flex-grow: 1;
}

.announce-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.announce-tag {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan-neon);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.announce-date {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.announce-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 8px;
}

.announce-snippet {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 6px;
}

.discord-widget-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(13, 17, 23, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

.discord-logo-glow {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background-color: #5865F2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.45);
  margin-bottom: 24px;
  animation: floatSkin 5s ease-in-out infinite;
}

.discord-server-title {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
}

.discord-server-invite {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.discord-metrics {
  display: flex;
  gap: 30px;
  width: 100%;
  justify-content: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.discord-val-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.discord-dot.online {
  background-color: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
  animation: pulseDot 1.5s infinite;
}

.discord-dot.members {
  background-color: var(--text-secondary);
}

.discord-metric-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  line-height: 1;
}

.discord-metric-lbl {
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}

.discord-widget-card .glow-button {
  width: 100%;
  justify-content: center;
  margin-top: 36px;
}

/* ==========================================
   ABOUT AKASH PLAYZ SECTION
   ========================================== */
.about-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
  background-color: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-bio-side {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-bio-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

.about-bio-para {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.75rem;
}

.skill-name {
  font-weight: bold;
  color: #ffffff;
}

.skill-percentage {
  color: var(--cyan-neon);
  font-weight: bold;
}

.skill-progress-bg {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-electric), var(--cyan-neon));
  box-shadow: 0 0 8px var(--cyan-neon);
  border-radius: 4px;
  width: 0%; /* Animate on tab activation */
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-timeline-side {
  display: flex;
  flex-direction: column;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 30px;
}

.timeline-container {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 24px;
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--bg-dark);
  border: 2.5px solid var(--cyan-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot-inner {
  width: 5px;
  height: 5px;
  background-color: var(--cyan-neon);
  border-radius: 50%;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--cyan-neon);
  line-height: 1;
}

.timeline-divider {
  width: 16px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 8px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.contact-card {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input-wrapper {
  position: relative;
}

.form-input-wrapper input,
.form-input-wrapper select,
.form-group textarea {
  width: 100%;
  background: rgba(22, 27, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px 14px 44px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-normal);
}

.form-group textarea {
  padding: 14px 16px;
  resize: none;
}

.form-input-wrapper input:focus,
.form-input-wrapper select:focus,
.form-group textarea:focus {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.form-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--text-secondary);
  pointer-events: none;
}

.form-input-wrapper select {
  appearance: none;
  cursor: pointer;
}

.form-input-wrapper select option {
  background-color: var(--bg-surface);
}

.status-alert {
  padding: 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.status-alert.success {
  background: rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.25);
  color: #00ff66;
}

.status-alert.sending {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.25);
  color: var(--cyan-neon);
}

.contact-form button[type="submit"] {
  width: 100%;
  justify-content: center;
  padding: 14px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ==========================================
   FOOTER SECTION
   ========================================== */
footer {
  background-color: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 48px 0;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.05);
  transition: all var(--transition-fast);
}

.footer-logo-box:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: var(--glow-cyan);
}

.footer-logo-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.2));
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-credits {
  text-align: center;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-disclaimer {
  font-size: 0.6rem;
  color: rgba(139, 148, 158, 0.4);
  margin-top: 4px;
}

.footer-social-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-socials a:hover {
  color: var(--cyan-neon);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

.scroll-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scroll-top-btn:hover {
  color: var(--cyan-neon);
  border-color: rgba(0, 229, 255, 0.3);
}

/* ==========================================
   DOCUMENTATION MODAL OVERLAY
   ========================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  width: 100%;
  max-width: 850px;
  max-height: 85vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-neon-active);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.25);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(15px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-header-nav {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(13, 17, 23, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-nav h3 {
  font-size: 1.5rem;
  font-weight: 850;
  text-transform: uppercase;
  color: #ffffff;
}

.modal-header-nav h3 span {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan-neon);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

.modal-header-nav p {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.close-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.modal-body-scroll {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .modal-body-scroll {
    grid-template-columns: 1fr;
  }
}

.modal-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-features-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

.feat-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--cyan-neon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-code-wrapper {
  margin-top: 24px;
}

.code-block-box {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

.code-block-box pre {
  font-family: monospace;
  font-size: 0.75rem;
  color: #79c0ff;
  line-height: 1.6;
  user-select: all;
  -webkit-user-select: all;
}

.command-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmd-item {
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
}

.cmd-name {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-neon);
}

.cmd-desc {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 4px;
}

.perm-list-box {
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perm-item {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.75rem;
  gap: 10px;
}

.perm-name {
  color: var(--cyan-neon);
  font-weight: bold;
  user-select: all;
  -webkit-user-select: all;
}

.perm-desc {
  color: var(--text-secondary);
  text-align: right;
}

.modal-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(13, 17, 23, 0.5);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Alerts */
.toast-box {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-message {
  pointer-events: all;
  background: var(--bg-surface);
  border-left: 4px solid var(--cyan-neon);
  border-radius: 6px;
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 229, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: bold;
  animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: all 0.4s ease;
}

.toast-message.fade-out {
  opacity: 0;
  transform: translateX(-30px);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0;
  }
  
  .hero-text-side {
    align-items: center;
  }
  
  .hero-desc {
    max-width: 100%;
  }
  
  .hero-btn-group {
    justify-content: center;
  }
  
  .hero-graphics-side {
    min-height: 400px;
  }
  
  .hero-halo-ring {
    width: 320px;
    height: 320px;
  }
  
  .floating-crown-container {
    width: 72px;
    height: 72px;
  }
  
  .skin-parallax-container {
    width: 220px;
    height: 330px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: left var(--transition-normal);
  }
  
  .nav-links.open {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.25rem;
    padding: 10px 30px;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
}

/* ==========================================
   MULTI-PAGE ADDITIONS & PAGES RICH STYLING
   ========================================== */

/* 1. Core Pillars (Home Page) */
.pillars-section {
  padding: 80px 0;
  width: 100%;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.pillar-card {
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-neon), transparent);
}
.pillar-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  color: var(--cyan-neon);
  box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.05);
}
.pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.pillar-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 2. Plugin FAQ & Commission (Plugins Page) */
.faq-section {
  padding: 60px 0 100px 0;
  width: 100%;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  padding: 24px;
}
.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan-neon);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.commission-card {
  margin-top: 40px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.8), rgba(2, 136, 209, 0.08));
}
.commission-info {
  max-width: 60%;
}
.commission-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .commission-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .commission-info {
    max-width: 100%;
  }
}

/* 3. Downloads Grid & Compatibility (Downloads Page) */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  min-height: 220px;
}
.download-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.download-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-neon);
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.05);
}
.download-item-title {
  font-size: 1.15rem;
  font-weight: 700;
}
.download-item-desc {
  font-size: 0.8rem;
  color: var(--cyan-neon);
  font-family: monospace;
}
.download-card-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}
.download-card-action {
  display: flex;
  justify-content: flex-start;
}
.matrix-section {
  padding: 60px 0 100px 0;
  width: 100%;
}
.matrix-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-neon);
  background: rgba(13, 17, 23, 0.5);
  backdrop-filter: blur(8px);
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}
.matrix-table th, .matrix-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.matrix-table th {
  background-color: rgba(0, 229, 255, 0.05);
  color: var(--cyan-neon);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.matrix-table tr:last-child td {
  border-bottom: none;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pill.supported {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan-neon);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* 4. Open Source Utilities (Projects Page) */
.utilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.utility-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}
.utility-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.utility-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(2, 136, 209, 0.04);
  border: 1px solid rgba(2, 136, 209, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-neon);
}
.utility-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.utility-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.github-activity-box {
  margin-top: 60px;
  padding: 30px;
  text-align: center;
}
.github-activity-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.25rem;
}
.github-grid-mock {
  display: grid;
  grid-template-columns: repeat(40, 1fr);
  gap: 3px;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}
.github-dot-mock {
  aspect-ratio: 1;
  background-color: #161b22;
  border-radius: 2px;
  transition: background-color 0.3s;
}
.github-dot-mock.level-1 { background-color: #0e4429; }
.github-dot-mock.level-2 { background-color: #006d32; }
.github-dot-mock.level-3 { background-color: #26a641; }
.github-dot-mock.level-4 { background-color: #39d353; }

/* 5. Developer Setup Specs (About Page) */
.specs-section {
  padding: 60px 0 100px 0;
  width: 100%;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.spec-card {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.spec-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-neon);
  flex-shrink: 0;
}
.spec-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-neon);
  margin-bottom: 4px;
  font-family: monospace;
}
.spec-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.spec-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 6. Support Channels Widget (Contact Page) */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
.support-widget-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.support-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.support-status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan-neon);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}
.support-channel-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.support-channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-neon);
  flex-shrink: 0;
}
.support-channel-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.support-channel-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 7. YouTube Video Feed Section */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.youtube-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  height: 100%;
}

.youtube-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
}

.youtube-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.youtube-thumb-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.youtube-card:hover .youtube-thumb-wrapper img {
  transform: scale(1.05);
}

.youtube-thumb-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 229, 255, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
}

.youtube-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.youtube-play-overlay svg {
  color: #ff0055;
  filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.6));
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.youtube-card:hover .youtube-play-overlay {
  opacity: 1;
}

.youtube-card:hover .youtube-play-overlay svg {
  transform: scale(1);
}

.youtube-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: rgba(10, 15, 30, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.youtube-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px 0;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.8em;
}

.youtube-card-date {
  font-size: 0.75rem;
  color: #a0aec0;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}



/* ==========================================
   GAMING HUB CUSTOM STYLESHEET (games.css)
   ========================================== */

/* 1. Hero Section Grid & Glows */
.games-hero {
  position: relative;
  padding: 80px 0 60px 0;
  background-color: #050811;
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  overflow: hidden;
}

.hero-radial-glow1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-radial-glow2 {
  position: absolute;
  bottom: -10%;
  right: 15%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-game-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Floating Animations */
.floating-icons-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.float-icon {
  position: absolute;
  color: rgba(0, 229, 255, 0.15);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

.float-icon.i1 { top: 10%; left: -10%; animation: floatGamer 6s ease-in-out infinite; }
.float-icon.i2 { top: 70%; left: -5%; animation: floatGamer 8s ease-in-out infinite 1s; }
.float-icon.i3 { top: 20%; right: -8%; animation: floatGamer 7s ease-in-out infinite 0.5s; }
.float-icon.i4 { top: 65%; right: -5%; animation: floatGamer 9s ease-in-out infinite 1.5s; }

@keyframes floatGamer {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
}

/* 2. Trending Slider Marquee */
.trending-slider-container {
  display: flex;
  background: rgba(10, 15, 30, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 44px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.trending-tag {
  background: #00E5FF;
  color: #020408;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 5px 0 15px rgba(0, 229, 255, 0.3);
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s;
}

.ticker-item:hover {
  color: #00E5FF;
}

.ticker-item span {
  color: #00E5FF;
  margin-left: 6px;
  font-weight: bold;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 3. Main Dashboard Layout */
.gaming-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .gaming-layout {
    grid-template-columns: 1fr;
  }
}

/* 4. Search and Categories Tab Controls */
.games-controls {
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
}

.search-box-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.search-box-wrapper input {
  width: 100%;
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px 14px 48px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-normal);
}

.search-box-wrapper input:focus {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
  background: rgba(22, 27, 34, 0.95);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #0B0E14;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #cbd5e1;
  transition: all 0.1s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.suggestion-item:hover {
  background: rgba(0, 229, 255, 0.08);
  color: #00E5FF;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 5. Games Grid & Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.game-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}

.game-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0D1117;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.game-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-thumbnail-img {
  transform: scale(1.08);
}

.online-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 229, 255, 0.95);
  color: #020408;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: monospace;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #8b949e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.favorite-btn:hover {
  transform: scale(1.1);
  color: #FF0055;
  border-color: #FF0055;
  background: rgba(255, 0, 85, 0.08);
}

.favorite-btn.active {
  color: #FF0055;
  background: rgba(255, 0, 85, 0.15);
  border-color: #FF0055;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

.game-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-category-tag {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #00E5FF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.game-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #ffffff;
}

.game-rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.75rem;
  color: #8b949e;
}

.game-stars {
  color: #FFC107;
  letter-spacing: 1px;
}

.play-action-icon {
  background: transparent;
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.game-card:hover .play-action-icon {
  background: var(--cyan-neon);
  color: #020408;
  box-shadow: 0 0 10px var(--cyan-neon);
}

/* Skeletons */
.game-skeleton-card {
  height: 240px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.game-skeleton-card::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: skeleton-slide 1.5s infinite;
}

@keyframes skeleton-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 6. Multiplayer Grid */
.multiplayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.multi-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.multi-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.multi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00E5FF;
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.08);
}

.multi-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.multi-card-header p {
  font-size: 0.75rem;
  color: #8b949e;
  font-family: monospace;
}

.multi-actions {
  display: flex;
  gap: 8px;
}

.multi-actions button {
  flex: 1;
}

/* 7. Sidebar Widgets styling */
.gaming-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget-header {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.widget-icon {
  color: #00E5FF;
  width: 18px;
  height: 18px;
}

.widget-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* User profile dashboard widget */
.user-profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid #00E5FF;
  background: #020408;
  padding: 4px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-meta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.user-title {
  font-size: 0.75rem;
  color: #00E5FF;
  font-family: monospace;
}

.level-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.level-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.xp-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2196F3, #00E5FF);
  border-radius: 4px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px #00E5FF;
}

.economy-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-icon { color: #FFC107; }
.xp-icon { color: #00E5FF; }

.metric-lbl {
  font-size: 0.6rem;
  font-family: monospace;
  color: #8b949e;
}

.metric-val {
  font-size: 0.95rem;
  font-weight: bold;
  color: #ffffff;
}

.dashboard-buttons {
  display: flex;
  gap: 8px;
}

.dashboard-buttons button {
  flex: 1;
}

/* Daily Challenge Widget */
.challenge-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
}

.challenge-reward {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 10px;
}

.reward-tag {
  color: #00E5FF;
  font-weight: bold;
  font-family: monospace;
}

/* Leaderboard list box */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leader-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
}

.leader-rank {
  font-family: monospace;
  font-weight: bold;
  font-size: 0.95rem;
  width: 24px;
  text-align: center;
}

.leader-rank.r1 { color: #FFC107; text-shadow: 0 0 8px rgba(255,193,7,0.5); }
.leader-rank.r2 { color: #cbd5e1; }
.leader-rank.r3 { color: #CD7F32; }

.leader-username {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  flex-grow: 1;
}

.leader-score {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: bold;
  color: #00E5FF;
}

/* Achievements widget box */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.badge-item {
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.badge-item.unlocked {
  background: rgba(0, 229, 255, 0.05);
  border: 1.5px solid #00E5FF;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  animation: pulseDot 2s infinite;
}

.badge-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #0b0e14;
  border: 1px solid #00E5FF;
  color: #ffffff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.badge-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 8. Details Modal additions */
.inline-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .inline-grid-2 {
    grid-template-columns: 1fr;
  }
}

.detail-thumbnail-box {
  width: 100%;
  aspect-ratio: 16/10;
  background: #020408;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.detail-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta-metrics {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-pill {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: monospace;
  color: #00E5FF;
}

.detail-description-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.control-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-list li {
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: 6px;
}

.control-list li span:first-child {
  color: #cbd5e1;
  font-weight: 600;
}

.control-list li span:last-child {
  font-family: monospace;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #00E5FF;
  font-size: 0.75rem;
}

/* 9. Lucky Spin Wheel Sector drawing */
.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wheel-outer-box {
  position: relative;
  width: 280px;
  height: 280px;
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: #FF0055;
  font-size: 1.5rem;
  z-index: 120;
  text-shadow: 0 0 8px #FF0055;
}

.wheel-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid rgba(0, 229, 255, 0.4);
  background: #020408;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.15);
  transition: transform 4s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.wheel-sector {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  overflow: hidden;
  top: 0; left: 0;
  border-right: 1px solid rgba(0, 229, 255, 0.15);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.sector-inner {
  position: absolute;
  left: 30px;
  top: 30px;
  transform: rotate(22.5deg);
  width: 80px;
  color: #cbd5e1;
  font-size: 0.6rem;
  font-weight: bold;
  font-family: monospace;
  text-transform: uppercase;
  text-align: center;
}

.wheel-sector:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.wheel-sector:nth-child(7) .sector-inner {
  color: #FFC107;
  font-weight: 900;
}

/* 10. Play Cabinet Backdrop & Viewport */
.play-cabinet-backdrop {
  position: fixed;
  inset: 0;
  background-color: #020408;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.play-cabinet-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cabinet-container {
  width: 100%;
  max-width: 960px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid #00E5FF;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
}

.cabinet-header {
  padding: 12px 24px;
  background: rgba(7, 12, 24, 0.95);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cabinet-game-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #00E5FF;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.title-gamepad-icon {
  width: 20px;
  height: 20px;
}

.cabinet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  outline: none;
}

.cab-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: #00E5FF;
  color: #00E5FF;
}

.cab-btn.exit {
  width: auto;
  padding: 0 16px;
  gap: 6px;
  background: rgba(255, 0, 85, 0.1);
  border-color: rgba(255, 0, 85, 0.3);
  color: #FF0055;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.cab-btn.exit:hover {
  background: #FF0055;
  color: #020408;
  box-shadow: 0 0 15px #FF0055;
}

.cabinet-viewport {
  flex-grow: 1;
  background: #020408;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #020408;
}

/* Light Theme Additions for Gaming Hub */
html[data-theme="light"] .games-hero {
  background-color: #f8fafc;
  border-bottom-color: rgba(0, 131, 143, 0.15);
}
html[data-theme="light"] .float-icon {
  color: rgba(0, 131, 143, 0.15);
}
html[data-theme="light"] .trending-slider-container {
  background: #f1f5f9;
}
html[data-theme="light"] .ticker-item {
  color: #475569;
}
html[data-theme="light"] .ticker-item:hover {
  color: #00838F;
}
html[data-theme="light"] .ticker-item span {
  color: #00838F;
}
html[data-theme="light"] .game-card-title {
  color: #111111;
}
html[data-theme="light"] .cell {
  background-color: #f1f5f9;
  border: 1px solid rgba(0, 131, 143, 0.1);
}
html[data-theme="light"] .cell:hover {
  background-color: rgba(0, 131, 143, 0.08);
}
html[data-theme="light"] .wheel-circle {
  background: #f8fafc;
}
html[data-theme="light"] .wheel-sector:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}
html[data-theme="light"] .sector-inner {
  color: #475569;
}
html[data-theme="light"] .search-suggestions {
  background: #ffffff;
  border-color: var(--border-color);
}
html[data-theme="light"] .suggestion-item {
  color: #475569;
}
html[data-theme="light"] .suggestion-item:hover {
  background: rgba(0, 131, 143, 0.08);
  color: #00838F;
}
html[data-theme="light"] .online-tag {
  background: rgba(0, 131, 143, 0.95);
  color: #ffffff;
}
html[data-theme="light"] .game-thumbnail-wrapper {
  background: #f1f5f9;
}
html[data-theme="light"] .game-skeleton-card {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .leader-item {
  background: rgba(15, 23, 42, 0.01);
  border-color: rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .leader-username {
  color: #475569;
}
html[data-theme="light"] .badge-item {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .badge-item.unlocked {
  background: rgba(0, 131, 143, 0.05);
  border-color: #00838F;
}
html[data-theme="light"] .badge-item::after {
  background: #ffffff;
  border-color: #00838F;
  color: #111111;
}
html[data-theme="light"] .xp-bar-bg {
  background: rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .avatar-wrapper {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 131, 143, 0.15);
  border-color: #00838F;
}
html[data-theme="light"] .metric-box {
  background: rgba(15, 23, 42, 0.01);
  border-color: rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .control-list li {
  border-bottom-color: rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .control-list li span:first-child {
  color: #475569;
}
html[data-theme="light"] .control-list li span:last-child {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #00838F;
}
html[data-theme="light"] .detail-thumbnail-box {
  background: #f1f5f9;
}
html[data-theme="light"] .cab-btn {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}
html[data-theme="light"] .cab-btn:hover {
  background: rgba(0, 131, 143, 0.1);
  border-color: #00838F;
  color: #00838F;
}
html[data-theme="light"] .cabinet-header {
  background: #ffffff;
  border-bottom-color: rgba(0, 131, 143, 0.15);
}
html[data-theme="light"] .cabinet-container {
  background: #ffffff;
  border-color: #00838F;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* PRE-GAME LOBBY SELECTION ACCENTS */
.cabinet-lobby-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}
.cabinet-lobby-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.lobby-card {
  width: 92%;
  max-width: 400px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,229,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lobby-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan-neon);
  text-shadow: 0 0 10px rgba(0,229,255,0.3);
  margin-bottom: 8px;
}
.lobby-settings {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.lobby-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lobby-form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
}
.lobby-options {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}
.lobby-opt-btn {
  flex: 1;
  min-width: 80px;
  background: #111d35;
  color: #8b949e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lobby-opt-btn:hover {
  border-color: rgba(0, 229, 255, 0.3);
  color: #fff;
}
.lobby-opt-btn.active {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  box-shadow: 0 0 10px rgba(0,229,255,0.15);
}

html[data-theme="light"] .cabinet-lobby-overlay {
  background: rgba(241, 245, 249, 0.95);
}
html[data-theme="light"] .lobby-card {
  background: #ffffff;
  border-color: rgba(0, 131, 143, 0.2);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .lobby-opt-btn {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.05);
  color: #475569;
}
html[data-theme="light"] .lobby-opt-btn.active {
  background: rgba(0, 131, 143, 0.08);
  border-color: #00838F;
  color: #00838F;
}



/* ==========================================
   PREMIUM STORE, RANKS, & PAYMENTS STYLE RULES
   ========================================== */

/* Premium Ranks Tags */
.premium-rank-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 5px rgba(255,255,255,0.05);
}

.premium-rank-tag.rookie { background: rgba(139, 148, 158, 0.15); color: #8b949e; border: 1px solid #8b949e; }
.premium-rank-tag.vip { background: rgba(0, 230, 118, 0.15); color: #00E676; border: 1px solid #00E676; }
.premium-rank-tag.vip-plus { background: rgba(0, 229, 255, 0.15); color: #00E5FF; border: 1px solid #00E5FF; }
.premium-rank-tag.mvp { background: rgba(33, 150, 243, 0.15); color: #2196F3; border: 1px solid #2196F3; }
.premium-rank-tag.mvp-plus { background: rgba(255, 215, 0, 0.15); color: #FFD740; border: 1px solid #FFD740; text-shadow: 0 0 5px rgba(255, 215, 0, 0.4); }
.premium-rank-tag.elite { background: rgba(255, 145, 0, 0.15); color: #FF9100; border: 1px solid #FF9100; }
.premium-rank-tag.legend { background: rgba(255, 23, 68, 0.15); color: #FF1744; border: 1px solid #FF1744; box-shadow: 0 0 8px rgba(255, 23, 68, 0.3); }
.premium-rank-tag.titan {
  background: linear-gradient(90deg, rgba(255,23,68,0.2), rgba(213,0,249,0.2));
  color: #FF1744;
  border: 1px solid #FF1744;
  box-shadow: 0 0 10px rgba(213, 0, 249, 0.4);
}
.premium-rank-tag.immortal {
  background: linear-gradient(90deg, rgba(0,229,255,0.2), rgba(255,215,0,0.2));
  color: #00E5FF;
  border: 1px solid #FFD740;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  animation: pulseRank 2s infinite alternate;
}
.premium-rank-tag.celestial {
  background: linear-gradient(45deg, #FF1744, #00E5FF, #D500F9);
  background-size: 200% 200%;
  color: #ffffff;
  border: 1px solid #ffffff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
  animation: gradientShift 3s ease infinite;
}

@keyframes pulseRank {
  0% { transform: scale(1); box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* User Name Color Classes */
.name-rookie { color: #fff; }
.name-vip { color: #00E676; font-weight:bold; }
.name-vip-plus { color: #00E5FF; font-weight:bold; }
.name-mvp { color: #2196F3; font-weight:bold; }
.name-mvp-plus { color: #FFD740; font-weight:bold; text-shadow: 0 0 4px rgba(255,215,0,0.3); }
.name-elite { color: #FF9100; font-weight:bold; }
.name-legend { color: #FF1744; font-weight:bold; text-shadow: 0 0 6px rgba(255,23,68,0.4); }
.name-titan { color: #e040fb; font-weight:bold; text-shadow: 0 0 8px rgba(224,64,251,0.5); }
.name-immortal { color: #00E5FF; font-weight:bold; text-shadow: 0 0 10px rgba(0,229,255,0.6); }
.name-celestial {
  background: linear-gradient(90deg, #ff0055, #00e5ff, #ff0055);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s linear infinite;
  font-weight: 800;
}

/* Premium Chat Badges */
.chat-tag {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 6px;
}

/* Store Tabs buttons */
.store-tab-btn, .shop-tab-btn {
  transition: all 0.3s ease;
}
.store-tab-btn:hover, .shop-tab-btn:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.02);
}

/* Store Product Cards */
.store-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.25s ease;
}
.store-card:hover {
  border-color: #FFD740;
  background: rgba(255,215,0,0.02);
  transform: translateY(-3px);
}
.store-card.rank-card:hover {
  border-color: var(--cyan-neon);
  background: rgba(0,229,255,0.02);
}
.store-card .badge-discount {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff0055;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(255,0,85,0.4);
}
.store-card .badge-value {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #00E676;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* Payment gateway checkout buttons styling */
.pay-method-btn {
  transition: all 0.2s ease;
}
.pay-method-btn:hover {
  border-color: rgba(255,255,255,0.2) !important;
  background: rgba(255,255,255,0.06) !important;
}
.pay-method-btn.active {
  border-color: #00E5FF !important;
  background: rgba(0, 229, 255, 0.08) !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* History table rows styling */
#invoice-history-rows tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.2s ease;
}
#invoice-history-rows tr:hover {
  background: rgba(255,255,255,0.01);
}

/* Cosmetic item card premium shop */
.cosmetic-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
}
.cosmetic-card:hover {
  border-color: var(--cyan-neon);
  background: rgba(0,229,255,0.02);
  transform: translateY(-2px);
}
.cosmetic-preview-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  background: rgba(0,0,0,0.2);
}

/* Sidebar Tab buttons styling */
.challenge-tab {
  transition: all 0.2s ease;
}
.challenge-tab:hover {
  color: #fff !important;
}

/* Missions item list widgets */
.mission-item-widget {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mission-item-widget .mission-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.mission-item-widget .mission-title {
  color: #fff;
  font-weight: bold;
}
.mission-item-widget .mission-reward {
  color: #FFD740;
  font-weight: bold;
  font-family: monospace;
  font-size: 0.7rem;
}

/* Leaderboards rows styling */
.global-leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.global-leader-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.global-leader-row.user-highlight {
  background: rgba(0, 229, 255, 0.05);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}
.global-leader-rank {
  font-family: monospace;
  font-weight: bold;
  font-size: 0.9rem;
  width: 25px;
}

/* Supporter Badge Icon Classes */
.supporter-badge {
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-weight: 800;
  text-transform: uppercase;
}
.supporter-badge.bronze { background: rgba(205, 127, 50, 0.2); color: #CD7F32; border: 1px solid #CD7F32; }
.supporter-badge.silver { background: rgba(192, 192, 192, 0.2); color: #C0C0C0; border: 1px solid #C0C0C0; }
.supporter-badge.gold { background: rgba(255, 215, 0, 0.2); color: #FFD740; border: 1px solid #FFD740; }
.supporter-badge.diamond { background: rgba(0, 229, 255, 0.2); color: #00E5FF; border: 1px solid #00E5FF; }
.supporter-badge.elite { background: rgba(224, 64, 251, 0.2); color: #e040fb; border: 1px solid #e040fb; }
.supporter-badge.ultimate { background: linear-gradient(90deg, rgba(255,0,85,0.2), rgba(0,229,255,0.2)); color: #ff0055; border: 1px solid #ff0055; }

/* Hall of Fame plaque layout */
.hof-podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: monospace;
  width: 90px;
}
.hof-avatar-frame {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 6px;
  position: relative;
}
.hof-podium-item.p1 .hof-avatar-frame { border-color: #FFD740; box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.hof-podium-item.p2 .hof-avatar-frame { border-color: #C0C0C0; }
.hof-podium-item.p3 .hof-avatar-frame { border-color: #CD7F32; }

/* Tournament Bracket Matches Nodes */
.matchup-node {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
}
.matchup-node.active-match {
  border-color: #ff0055;
  background: rgba(255, 0, 85, 0.04);
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.2);
}
.matchup-node.completed-match {
  border-color: #00E676;
  color: #fff;
}

/* Purchased Avatar Frames */
#dash-avatar-wrapper.frame-neon_cyan { border: 3px solid #00E5FF !important; box-shadow: 0 0 10px #00E5FF !important; }
#dash-avatar-wrapper.frame-gold_master { border: 3px solid #FFD740 !important; box-shadow: 0 0 15px #FFD740 !important; }
#dash-avatar-wrapper.frame-legendary_ruby { border: 3px dashed #ff0055 !important; box-shadow: 0 0 20px #ff0055 !important; }
#dash-avatar-wrapper.frame-silver_spin { border: 3px solid #C0C0C0 !important; box-shadow: 0 0 8px #C0C0C0 !important; }

/* Glitch profile background animation effect */
.glitch-profile-active {
  position: relative;
  overflow: hidden;
}
.glitch-profile-active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255,0,85,0.05) 0%, transparent 80%);
  pointer-events: none;
  animation: glitchBackground 4s infinite linear;
  z-index: 0;
}
@keyframes glitchBackground {
  0% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.1) translate(-2px, 2px); }
  66% { transform: scale(0.9) translate(2px, -2px); }
  100% { transform: scale(1) translate(0, 0); }
}

/* Custom premium store themes */
body[data-active-theme="matrix"] {
  --bg-color: #050d06;
  --bg-surface: #0a180c;
  --border-neon: #00E676;
  --border-neon-active: #00FF87;
  --cyan-neon: #00E676;
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 230, 118, 0.08) 0%, transparent 80%);
}
body[data-active-theme="synthwave"] {
  --bg-color: #120324;
  --bg-surface: #21083e;
  --border-neon: #e040fb;
  --border-neon-active: #f50057;
  --cyan-neon: #e040fb;
  background-image: radial-gradient(circle at 50% 50%, rgba(224, 64, 251, 0.1) 0%, transparent 80%);
}
body[data-active-theme="crimson"] {
  --bg-color: #150208;
  --bg-surface: #270612;
  --border-neon: #ff0055;
  --border-neon-active: #ff3366;
  --cyan-neon: #ff0055;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 0, 85, 0.12) 0%, transparent 80%);
}
body[data-active-theme="sunset"] {
  --bg-color: #1a0f02;
  --bg-surface: #2d1c07;
  --border-neon: #ff9100;
  --border-neon-active: #ffd740;
  --cyan-neon: #ff9100;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 145, 0, 0.1) 0%, transparent 80%);
}

/* ==========================================
   MOBILE-FIRST RESPONSIVE GAMES HUB REDESIGN
   ========================================== */

/* Typography & General Resets for Mobile & Tablet */
@media (max-width: 1024px) {
  /* Layout Grid stacking */
  .gaming-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
  }
  
  .gaming-main-content {
    width: 100% !important;
  }
  
  .gaming-sidebar {
    width: 100% !important;
    margin-top: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .sidebar-widget {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 14px !important;
    margin-top: 0 !important;
    box-shadow: none !important; /* Reduce shadow overhead */
  }

  /* Compact dashboard buttons for mobile usage */
  .dashboard-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .dashboard-buttons button,
  .dashboard-buttons a {
    grid-column: span 2 !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  /* Multiplayer cards layout */
  .multiplayer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .multi-card {
    padding: 16px !important;
    box-shadow: none !important;
  }
  
  .multi-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .multi-actions button {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Premium Store CTAs banner */
  .store-cta-section {
    grid-column: span 1 !important;
    margin-top: 24px !important;
  }
  
  .store-cta-section .glow-card {
    padding: 20px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }
}

/* Tablet Layout overrides (2 cards per row) */
@media (min-width: 769px) and (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

/* Mobile Layout overrides (1 card per row + layout spacing) */
@media (max-width: 768px) {
  /* Hero Banner Redesign */
  .games-hero {
    padding: 40px 20px 30px 20px !important;
    text-align: center !important;
    background-size: 20px 20px !important; /* Smaller grid */
  }
  
  .hero-game-content {
    max-width: 100% !important;
  }
  
  .hero-title {
    font-size: clamp(28px, 6vw, 36px) !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }
  
  .hero-desc {
    font-size: 14px !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
  }
  
  .hero-actions {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 24px !important;
    width: 100% !important;
  }
  
  .hero-actions .glow-button {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }

  /* Trending Games list horizontal swipe */
  .trending-slider-container {
    height: 52px !important;
  }
  
  .ticker-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  
  .ticker-wrap::-webkit-scrollbar {
    display: none !important;
  }
  
  .ticker {
    animation: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    width: max-content !important;
  }
  
  .ticker-item {
    flex-shrink: 0 !important;
    padding: 4px 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }

  /* Search Bar Optimization */
  .games-controls {
    position: sticky !important;
    top: 70px !important;
    z-index: 1000 !important;
    background: rgba(11, 14, 20, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(0, 229, 255, 0.15) !important;
  }
  
  .search-box-wrapper input {
    height: 48px !important;
    padding: 12px 16px 12px 44px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  
  .search-box-icon {
    width: 16px !important;
    height: 16px !important;
    left: 16px !important;
  }

  /* Game Categories horizontal chips style */
  .category-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    margin-top: 4px !important;
  }
  
  .category-tabs::-webkit-scrollbar {
    display: none !important;
  }
  
  .category-tabs .tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0 16px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .category-tabs .tab-btn.active {
    background-color: var(--cyan-neon) !important;
    color: #000000 !important;
    border-color: var(--cyan-neon) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3) !important;
  }

  /* Games Grid setup - 1 card per row */
  .games-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }
  
  /* Game Cards design styling */
  .game-card {
    border-radius: 14px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
  }
  
  .game-thumbnail-wrapper {
    aspect-ratio: 16 / 9 !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
  }
  
  .game-card-body {
    padding: 14px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  
  .game-card-title {
    font-size: clamp(15px, 4vw, 16px) !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  .game-category-tag {
    font-size: 12px !important;
  }
  
  .game-rating-row {
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  
  .play-game-btn {
    height: 48px !important;
    width: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
  }
  
  .play-action-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
  }
  
  .favorite-btn {
    width: 44px !important;
    height: 44px !important;
  }

  /* User Profile dashboard Card */
  .user-profile-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    align-items: center !important;
  }
  
  .avatar-wrapper {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
    padding: 4px !important;
  }
  
  .user-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .user-meta h3 {
    font-size: 16px !important;
    justify-content: center !important;
  }
  
  .level-progress-wrapper {
    width: 100% !important;
  }
  
  .level-info {
    font-size: 12px !important;
  }
  
  .xp-bar-bg {
    height: 10px !important;
  }
}

/* Maximize Play Cabinet Space on Mobile */
@media (max-width: 768px) {
  .play-cabinet-backdrop {
    padding: 0 !important;
  }
  
  .cabinet-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
  }
  
  .cabinet-header {
    padding: 8px 12px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }
  
  .cabinet-game-title {
    font-size: 0.9rem !important;
  }
  
  .cabinet-actions {
    gap: 4px !important;
  }
  
  .cab-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
  }
  
  .cab-btn.exit {
    padding: 0 8px !important;
    font-size: 0.65rem !important;
  }
}

/* Compact Modals for Mobile devices */
@media (max-width: 640px) {
  .modal-window {
    width: 95% !important;
    max-height: 90vh !important;
    border-radius: 12px !important;
  }
  
  .modal-header-nav {
    padding: 16px !important;
  }
  
  .modal-header-nav h3 {
    font-size: 1.15rem !important;
  }
  
  .modal-body-scroll {
    padding: 16px !important;
    gap: 16px !important;
  }
}


