/* ============================================================
   style.css - Games Gallery Complete Stylesheet
   ============================================================ */

/* === VARIABLES === */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5541d7;
  --accent: #fd79a8;
  --accent2: #00b894;
  --accent3: #fdcb6e;
  --dark: #0d0d1a;
  --dark2: #12122a;
  --dark3: #1a1a35;
  --card-bg: #16162e;
  --border: #2a2a4a;
  --text: #e8e8f8;
  --text-muted: #8888aa;
  --gradient: linear-gradient(135deg, #6c5ce7, #fd79a8);
  --gradient2: linear-gradient(135deg, #00b894, #6c5ce7);
  --glow: 0 0 20px rgba(108,92,231,0.4);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
  --font-game: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* === TOPBAR === */
.topbar {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  padding: 6px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-left span, .topbar-right a {
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.topbar-right a:hover { color: var(--primary); }
.topbar-right a i { font-size: 11px; }
.admin-link { color: var(--accent3) !important; font-weight: 600; }

/* === HEADER === */
.site-header {
  background: var(--dark2);
  border-bottom: 2px solid var(--primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 4px 20px rgba(108,92,231,0.2);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 46px; height: 46px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--glow);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-game); font-size: 18px; font-weight: 700; color: #fff; }
.logo-accent { font-family: var(--font-game); font-size: 18px; font-weight: 900; color: var(--primary); }
.logo-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* Search */
.search-form {
  flex: 1; max-width: 480px;
  display: flex;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.search-form:focus-within { border-color: var(--primary); box-shadow: var(--glow); }
.search-form input {
  flex: 1; padding: 10px 18px;
  background: none; border: none; color: var(--text);
  font-size: 14px; outline: none;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  padding: 10px 18px;
  background: var(--gradient);
  color: #fff; font-size: 14px;
  border-radius: 0 50px 50px 0;
}
.search-form button:hover { opacity: 0.85; }

/* Mobile Toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; margin-left: auto;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Nav */
.main-nav { background: var(--dark3); border-top: 1px solid var(--border); }
.nav-inner { overflow-x: auto; }
.nav-list { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--primary); }
.nav-list > li > a i { font-size: 12px; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 99;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  box-shadow: var(--shadow);
  padding: 8px 0;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-size: 13px; color: var(--text-muted);
}
.dropdown li a:hover { color: var(--primary); background: rgba(108,92,231,0.1); }

/* Mobile Search */
.mobile-search { display: none; padding: 10px 20px; background: var(--dark2); }
.mobile-search form { display: flex; background: var(--dark3); border: 1px solid var(--border); border-radius: 50px; overflow: hidden; }
.mobile-search input { flex:1; padding: 10px 16px; background: none; border: none; color: var(--text); font-size: 14px; outline: none; }
.mobile-search button { padding: 10px 14px; background: var(--gradient); color: #fff; border-radius: 0 50px 50px 0; }

/* === HERO BANNER === */
.hero {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a35 50%, #0d0d2a 100%);
  padding: 60px 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(108,92,231,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(253,121,168,0.1) 0%, transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,92,231,0.2);
  border: 1px solid rgba(108,92,231,0.4);
  border-radius: 50px; padding: 6px 16px;
  font-size: 12px; color: var(--primary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-game);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 16px; color: var(--text-muted); max-width: 480px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 600; transition: var(--transition);
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,92,231,0.5); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat span { font-family: var(--font-game); font-size: 24px; font-weight: 700; color: var(--primary); display: block; }
.hero-stat label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-visual { flex: 1; max-width: 480px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-game-card {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 4/3;
}
.hero-game-card:nth-child(1) { grid-column: span 2; aspect-ratio: 16/7; }
.hero-game-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-game-card:hover { transform: scale(1.03); }
.hero-game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 12px;
}
.hero-game-card-overlay h3 { font-size: 13px; font-weight: 600; }
.play-overlay {
  position: absolute; inset: 0;
  background: rgba(108,92,231,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.hero-game-card:hover .play-overlay { opacity: 1; }
.play-overlay i { font-size: 36px; color: #fff; }

/* === SECTION HEADERS === */
.section { padding: 48px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.section-title {
  font-family: var(--font-game);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.section-title i { color: var(--primary); }
.section-title::after {
  content: '';
  display: block; height: 3px; flex: 0 0 40px;
  background: var(--gradient); border-radius: 2px;
  margin-left: 8px;
}
.view-all {
  display: flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: 13px; font-weight: 600;
}
.view-all:hover { gap: 10px; }

/* === CATEGORY TABS === */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 8px 0; margin-bottom: 24px; }
.cat-tabs::-webkit-scrollbar { height: 3px; }
.cat-tabs::-webkit-scrollbar-track { background: var(--dark3); }
.cat-tabs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.cat-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px;
  background: var(--dark3); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; cursor: pointer; transition: var(--transition);
}
.cat-tab:hover, .cat-tab.active { background: var(--gradient); border-color: transparent; color: #fff; }

/* === GAME GRID === */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.game-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* === GAME CARD === */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(108,92,231,0.3);
}
.game-card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.game-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-thumb img { transform: scale(1.08); }
.game-card-overlay {
  position: absolute; inset: 0;
  background: rgba(108,92,231,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.game-card:hover .game-card-overlay { opacity: 1; }
.play-btn {
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.7); transition: var(--transition);
}
.game-card:hover .play-btn { transform: scale(1); }
.play-btn i { font-size: 20px; color: var(--primary); margin-left: 3px; }

/* Badges */
.game-badge {
  position: absolute; top: 8px; left: 8px;
  display: flex; gap: 4px;
}
.badge {
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new { background: var(--accent2); color: #fff; }
.badge-hot { background: #e17055; color: #fff; }
.badge-featured { background: var(--accent3); color: #333; }

.game-card-info { padding: 12px; }
.game-card-title {
  font-size: 14px; font-weight: 600; color: #fff;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.game-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
}
.game-card-meta span { display: flex; align-items: center; gap: 4px; }
.game-card-category {
  background: rgba(108,92,231,0.2);
  color: var(--primary);
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
}

/* === FEATURED CAROUSEL === */
.featured-slider { position: relative; overflow: hidden; }
.featured-track { display: flex; gap: 16px; transition: transform 0.4s ease; }
.featured-card {
  flex: 0 0 calc(33.333% - 11px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 220px;
}
.featured-card img { width: 100%; height: 180px; object-fit: cover; }
.featured-card-info {
  padding: 14px;
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
}
.featured-card-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.featured-card-info p { font-size: 12px; color: var(--text-muted); }

/* === SIDEBAR === */
.content-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.widget-title {
  font-family: var(--font-game); font-size: 14px; font-weight: 700;
  color: var(--primary); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.top-game-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.top-game-item:last-child { border-bottom: none; }
.top-game-rank {
  width: 24px; height: 24px;
  background: var(--dark3); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--primary);
  flex-shrink: 0;
}
.top-game-thumb { width: 50px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.top-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-game-info { flex: 1; min-width: 0; }
.top-game-info a { font-size: 13px; font-weight: 500; color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-game-info span { font-size: 11px; color: var(--text-muted); }

/* Category Widget */
.cat-widget-list li { border-bottom: 1px solid var(--border); }
.cat-widget-list li:last-child { border-bottom: none; }
.cat-widget-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 13px; color: var(--text-muted);
}
.cat-widget-list a:hover { color: var(--primary); }
.cat-widget-list .count {
  background: var(--dark3); border-radius: 4px;
  padding: 2px 8px; font-size: 11px;
}

/* Ad widget */
.ad-widget { text-align: center; }
.ad-label { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }

/* === GAME SINGLE PAGE === */
.game-single { padding: 30px 0; }
.game-player-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.game-player-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}
.game-player-header h1 { font-family: var(--font-game); font-size: 18px; }
.game-player-actions { display: flex; gap: 8px; }
.action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  background: var(--dark3); border: 1px solid var(--border);
  color: var(--text-muted); transition: var(--transition);
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.liked { color: var(--accent); border-color: var(--accent); }
.action-btn.fullscreen-btn:hover { background: var(--gradient); border-color: transparent; color: #fff; }

.game-iframe-wrap {
  position: relative; background: #000;
  width: 100%; padding-top: 56.25%; /* 16:9 */
}
.game-iframe-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.game-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--dark2);
  font-size: 14px; color: var(--text-muted); gap: 12px;
}
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Game Info Box */
.game-info-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; margin-bottom: 24px;
}
.game-info-box h2 { font-family: var(--font-game); font-size: 16px; margin-bottom: 10px; }
.game-info-box p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  background: rgba(108,92,231,0.15);
  border: 1px solid rgba(108,92,231,0.3);
  color: var(--primary); padding: 4px 12px;
  border-radius: 50px; font-size: 12px;
}
.tag:hover { background: var(--primary); color: #fff; }

/* Game Meta Strip */
.game-meta-strip {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--border);
  margin-top: 12px;
}
.game-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.game-meta-item i { color: var(--primary); font-size: 14px; }

/* === COMMENTS === */
.comments-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.comments-section h2 { font-family: var(--font-game); font-size: 16px; margin-bottom: 20px; color: var(--primary); }
.comment-form { margin-bottom: 28px; }
.comment-form textarea {
  width: 100%; padding: 14px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; font-family: var(--font-body);
  resize: vertical; min-height: 100px; outline: none;
  transition: var(--transition);
}
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form .btn { margin-top: 10px; }
.comment-item {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; color: var(--text-muted); }

/* === AUTH PAGES === */
.auth-page {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at center, #1a1a35 0%, var(--dark) 70%);
}
.auth-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow);
}
.auth-box h2 { font-family: var(--font-game); font-size: 22px; margin-bottom: 6px; }
.auth-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; font-family: var(--font-body);
  outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,92,231,0.15); }
.form-group input[type="submit"], .form-group button[type="submit"] { background: var(--gradient); color: #fff; font-weight: 600; cursor: pointer; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.input-icon input { padding-left: 40px; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(231,76,60,0.15); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; }
.alert-success { background: rgba(0,184,148,0.15); border: 1px solid rgba(0,184,148,0.3); color: var(--accent2); }
.auth-links { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-links a { color: var(--primary); font-weight: 600; }

/* === BREADCRUMBS === */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  padding: 14px 0;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); }

/* === PAGINATION === */
.pagination {
  display: flex; gap: 6px; justify-content: center;
  flex-wrap: wrap; margin-top: 32px;
}
.page-btn {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* === CATEGORY PAGE === */
.page-hero {
  padding: 40px 0;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-hero h1 { font-family: var(--font-game); font-size: clamp(22px, 3vw, 36px); margin-bottom: 8px; }
.page-hero h1 i { color: var(--primary); margin-right: 10px; }
.page-hero p { color: var(--text-muted); font-size: 15px; }

/* === STATIC PAGES (About, Privacy, etc.) === */
.static-page { padding: 40px 0 60px; max-width: 900px; margin: 0 auto; }
.static-page h1 { font-family: var(--font-game); font-size: 28px; margin-bottom: 8px; }
.static-page .last-updated { color: var(--text-muted); font-size: 13px; margin-bottom: 30px; }
.static-page h2 { font-size: 18px; font-weight: 700; color: var(--primary); margin: 28px 0 12px; }
.static-page p, .static-page li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }
.static-page ul { padding-left: 20px; list-style: disc; }
.static-page a { color: var(--primary); }
.static-page a:hover { text-decoration: underline; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(108,92,231,0.2); display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary); flex-shrink: 0;
}
.contact-info-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.contact-info-item p { font-size: 13px; color: var(--text-muted); }

/* === ADMIN STYLES === */
.admin-body {
  background: #0a0a18;
  display: flex; min-height: 100vh;
}
.admin-sidebar {
  width: 250px; background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; z-index: 100;
  transition: var(--transition);
}
.admin-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-game); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.admin-logo i { color: var(--primary); font-size: 20px; }
.admin-logo span { color: var(--primary); }
.admin-nav { padding: 16px 0; flex: 1; }
.admin-nav-section { padding: 8px 20px 4px; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--primary); background: rgba(108,92,231,0.08);
  border-left-color: var(--primary);
}
.admin-nav a i { width: 18px; text-align: center; font-size: 14px; }
.admin-content { flex: 1; margin-left: 250px; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--dark2); border-bottom: 1px solid var(--border);
  padding: 14px 24px; display: flex;
  align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h2 { font-family: var(--font-game); font-size: 16px; }
.admin-main { padding: 24px; flex: 1; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-icon.purple { background: rgba(108,92,231,0.2); color: var(--primary); }
.stat-icon.pink { background: rgba(253,121,168,0.2); color: var(--accent); }
.stat-icon.green { background: rgba(0,184,148,0.2); color: var(--accent2); }
.stat-icon.yellow { background: rgba(253,203,110,0.2); color: var(--accent3); }
.stat-info h3 { font-size: 26px; font-weight: 700; color: #fff; line-height: 1; }
.stat-info p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Admin Table */
.admin-table-wrap {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.admin-table-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.admin-table-header h3 { font-size: 15px; font-weight: 600; }
table.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); background: var(--dark3); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(108,92,231,0.05); }
.admin-table img { width: 50px; height: 38px; object-fit: cover; border-radius: 6px; }
.status-badge { padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.status-active { background: rgba(0,184,148,0.15); color: var(--accent2); }
.status-inactive { background: rgba(231,76,60,0.15); color: #e74c3c; }
.tbl-actions { display: flex; gap: 6px; }
.tbl-btn {
  padding: 5px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; transition: var(--transition);
}
.tbl-edit { background: rgba(108,92,231,0.15); color: var(--primary); }
.tbl-edit:hover { background: var(--primary); color: #fff; }
.tbl-delete { background: rgba(231,76,60,0.15); color: #e74c3c; }
.tbl-delete:hover { background: #e74c3c; color: #fff; }
.tbl-view { background: rgba(0,184,148,0.15); color: var(--accent2); }

/* Admin Form */
.admin-form-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.admin-form-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-size: 14px; font-family: var(--font-body); outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.form-group select option { background: var(--dark2); }
.toggle-switch { display: flex; align-items: center; gap: 10px; }
.toggle-switch input { display: none; }
.toggle-switch .slider {
  width: 44px; height: 24px; background: var(--dark3);
  border: 1px solid var(--border); border-radius: 50px;
  position: relative; cursor: pointer; transition: var(--transition);
}
.toggle-switch .slider::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; background: var(--text-muted);
  border-radius: 50%; transition: var(--transition);
}
.toggle-switch input:checked + .slider { background: var(--primary); border-color: var(--primary); }
.toggle-switch input:checked + .slider::after { transform: translateX(20px); background: #fff; }

/* === FOOTER === */
.site-footer { background: var(--dark2); border-top: 1px solid var(--border); margin-top: 60px; }
.footer-top { padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-game); font-size: 18px;
  margin-bottom: 12px;
}
.footer-logo i { color: var(--primary); font-size: 22px; }
.footer-logo b { color: var(--primary); }
.footer-col > p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--dark3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted);
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h4 {
  font-family: var(--font-game); font-size: 13px; color: var(--primary);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 2px; }
.footer-col ul a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); padding: 5px 0;
}
.footer-col ul a:hover { color: var(--primary); }
.footer-col ul a i { font-size: 11px; width: 14px; }
.footer-stats { display: flex; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.footer-stats .stat span { font-family: var(--font-game); font-size: 20px; font-weight: 700; color: var(--primary); display: block; }
.footer-stats .stat label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--glow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* === PROFILE === */
.profile-header {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--primary); }
.profile-info h2 { font-family: var(--font-game); font-size: 20px; }
.profile-info p { color: var(--text-muted); font-size: 14px; }
.profile-stats { display: flex; gap: 24px; margin-top: 8px; }
.profile-stats span { font-size: 13px; color: var(--text-muted); }
.profile-stats strong { color: var(--primary); }

/* === 404 === */
.not-found {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px;
}
.not-found .big-icon { font-size: 80px; color: var(--primary); opacity: 0.4; margin-bottom: 20px; }
.not-found h1 { font-family: var(--font-game); font-size: 40px; margin-bottom: 12px; }
.not-found p { color: var(--text-muted); max-width: 400px; margin: 0 auto 24px; }

/* === AD BANNER === */
.ad-banner { padding: 10px 0; text-align: center; }
.ad-banner-label { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; letter-spacing: 1px; }

/* === SCROLL BAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-visual { max-width: 360px; }
  .featured-card { flex: 0 0 calc(50% - 8px); }
  .admin-sidebar { transform: translateX(-250px); }
  .admin-sidebar.open { transform: none; }
  .admin-content { margin-left: 0; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .search-form { display: none; }
  .mobile-search { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li > a { padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .dropdown { position: static; display: none; box-shadow: none; padding-left: 16px; }
  .hero-inner { flex-direction: column; }
  .hero-visual { display: none; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .featured-card { flex: 0 0 calc(100% - 0px); }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 24px; }
  .auth-box { padding: 24px; }
  .admin-stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADDITIONAL / EXTENDED STYLES
   ============================================================ */

/* === NOTIFICATIONS / TOAST === */
.toast-container {
  position: fixed; bottom: 80px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 320px;
  box-shadow: var(--shadow); animation: slideIn 0.3s ease;
}
.toast.success { border-color: var(--accent2); }
.toast.error   { border-color: #e74c3c; }
.toast i { font-size: 16px; }
.toast.success i { color: var(--accent2); }
.toast.error   i { color: #e74c3c; }
@keyframes slideIn { from { transform: translateX(100%); opacity:0; } to { transform: none; opacity:1; } }

/* === GAME DETAIL RATING BAR === */
.rating-bar { display: flex; gap: 4px; align-items: center; }
.rating-star { color: var(--accent3); font-size: 14px; }
.rating-star.empty { color: var(--border); }

/* === SKELETON LOADING === */
.skeleton {
  background: linear-gradient(90deg, var(--dark3) 25%, var(--dark2) 50%, var(--dark3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { aspect-ratio: 4/3; }
.skeleton-text { height: 14px; margin-top: 8px; }
.skeleton-text.short { width: 60%; }

/* === SEARCH PAGE FILTER BAR === */
.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.filter-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* === COOKIE CONSENT === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--dark2); border-top: 2px solid var(--primary);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.cookie-banner p { font-size: 13px; color: var(--text-muted); margin: 0; }
.cookie-banner a { color: var(--primary); }
.cookie-banner .btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 18px; border-radius: 50px; font-size: 13px;
  font-weight: 600; cursor: pointer; border: none; transition: var(--transition);
}
.cookie-btn.accept { background: var(--gradient); color: #fff; }
.cookie-btn.decline { background: var(--dark3); border: 1px solid var(--border); color: var(--text-muted); }

/* === USER MENU DROPDOWN === */
.user-menu { position: relative; }
.user-avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--primary); overflow: hidden; cursor: pointer;
}
.user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 180px;
  box-shadow: var(--shadow); display: none; z-index: 99;
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.user-dropdown a:last-child { border-bottom: none; }
.user-dropdown a:hover { color: var(--primary); background: rgba(108,92,231,0.06); }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; max-width: 480px; width: 90%;
  transform: scale(0.9); transition: var(--transition);
}
.modal-overlay.open .modal-box { transform: none; }
.modal-title { font-family: var(--font-game); font-size: 18px; margin-bottom: 12px; }
.modal-close { float: right; background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }

/* === INLINE AD SPACING === */
.ad-between-sections { padding: 8px 0; }

/* === GAME PAGE TABS === */
.game-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.game-tab {
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; transition: var(--transition);
}
.game-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--gradient); z-index: 99999;
  width: 0%; transition: width 0.1s linear;
}

/* === RESPONSIVE EXTRAS === */
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-banner .btns { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats { justify-content: center; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .game-player-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .section { padding: 28px 0; }
}

/* === PRINT STYLES === */
@media print {
  .site-header, .site-footer, .sidebar, .back-to-top, .admin-sidebar { display: none !important; }
  body { background: #fff; color: #000; }
  .static-page { max-width: 100%; }
}
