:root {
  --bg-base:     #0d0d0f;
  --bg-card:     #161619;
  --bg-hover:    #1e1e23;
  --bg-input:    #111115;
  --bg-nav:      #0a0a0c;
  --accent:      #d81010;
  --accent-dark: #d40b00;
  --accent2:     #ff6b35;
  --gold:        #f5a623;
  --text-hi:     #f0f0f0;
  --text-mid:    #a0a0b0;
  --text-low:    #55556a;
  --border:      #2a2a35;
  --border-hi:   #3a3a4a;
  --green:       #3ddc84;
  --red:         #e84040;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 4px 24px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-hi);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 2px solid var(--accent);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-hi);
  white-space: nowrap;
  letter-spacing: 0.08em;
}

.logo-bracket { color: var(--accent); }
.logo-text { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--text-hi); letter-spacing: 0.08em; font-size: 14px; }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-hi); }

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

#navUsername {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-mid);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text-hi); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.85; }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.full { width: 100%; justify-content: center; }

/* ============ MAIN LAYOUT ============ */
main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 24px;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #1a0a0a 0%, #0d0d0f 60%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(232,55,42,0.12) 0%, transparent 70%);
}

.hero-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--text-hi);
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ SECTION HEADERS ============ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

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

.card-body { padding: 16px; }

.card-platform {
  font-size: 11px;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 8px;
  line-height: 1.2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.card-genre {
  font-size: 11px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ SCORE BADGE ============ */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid;
  flex-shrink: 0;
}

.score-badge.great  { background: rgba(61,220,132,0.12); border-color: var(--green); color: var(--green); }
.score-badge.good   { background: rgba(245,166,35,0.12); border-color: var(--gold); color: var(--gold); }
.score-badge.ok     { background: rgba(255,107,53,0.12); border-color: var(--accent2); color: var(--accent2); }
.score-badge.bad    { background: rgba(232,64,64,0.12); border-color: var(--red); color: var(--red); }
.score-badge.none   { background: var(--bg-hover); border-color: var(--border); color: var(--text-low); }

.score-badge-lg {
  width: 72px;
  height: 72px;
  font-size: 32px;
  border-radius: 10px;
  border-width: 3px;
}

/* ============ GRID LAYOUTS ============ */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ============ REVIEW CARD ============ */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
  cursor: pointer;
}
.review-card:hover { border-color: var(--border-hi); }

.review-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-card-info { flex: 1; }

.review-game-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.review-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 4px;
}

.review-body-preview {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-low);
}

/* ============ FULL REVIEW PAGE ============ */
.review-page { max-width: 860px; margin: 0 auto; }

.review-header {
  margin-bottom: 28px;
}

.review-page-game {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  cursor: pointer;
}
.review-page-game:hover { text-decoration: underline; }

.review-page-title {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.review-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.review-author { font-size: 13px; color: var(--text-mid); }
.review-author strong { color: var(--text-hi); }

.review-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  white-space: pre-line;
  margin-bottom: 32px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.pros-box, .cons-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.pros-box { border-top: 3px solid var(--green); }
.cons-box { border-top: 3px solid var(--red); }

.pros-box h4 { color: var(--green); margin-bottom: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.cons-box h4 { color: var(--red); margin-bottom: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }

.pros-cons ul { list-style: none; }
.pros-cons ul li { font-size: 13px; color: var(--text-mid); padding: 3px 0; }
.pros-box ul li::before { content: '+ '; color: var(--green); font-weight: 700; }
.cons-box ul li::before { content: '− '; color: var(--red); font-weight: 700; }

/* ============ COMMENTS ============ */
.comments-section { margin-top: 40px; }
.comment {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.comment-author { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.comment-body { font-size: 14px; color: var(--text-mid); line-height: 1.5; }
.comment-date { font-size: 11px; color: var(--text-low); margin-top: 6px; }

.comment-form { margin-top: 20px; }
.comment-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-hi);
  padding: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  min-height: 90px;
  margin-bottom: 10px;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }

/* ============ GAME PAGE ============ */
.game-page-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.game-cover-lg {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 3/4;
  background: var(--bg-hover);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  border: 1px solid var(--border);
  overflow: hidden;
}

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

.game-page-info { flex: 1; }
.game-page-title {
  font-size: 42px;
  line-height: 1.05;
  margin-bottom: 8px;
}
.game-page-sub { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; }

.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.game-score-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.game-score-label { font-size: 14px; color: var(--text-low); }
.game-review-count { font-size: 13px; color: var(--text-low); }

/* ============ FILTERS ============ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-bar select, .filter-bar input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-hi);
  padding: 8px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--accent); }
.filter-bar select option { background: var(--bg-card); }

/* ============ SEARCH ============ */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.search-box input {
  flex: 1;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-hi);
  padding: 12px 18px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-low); }

/* ============ FORMS ============ */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-hi);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 100px; }

.score-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.score-input-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.score-display {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  min-width: 50px;
  text-align: center;
}

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: slideUp 0.2s ease;
}

.modal h2 {
  font-size: 26px;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--text-low);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text-hi); }

.modal-footer-text { margin-top: 16px; font-size: 13px; color: var(--text-low); text-align: center; }
.modal-footer-text a { color: var(--accent); }

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

/* ============ ALERTS ============ */
.alert {
  background: rgba(232,55,42,0.12);
  border: 1px solid rgba(232,55,42,0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: #ff7a70;
  margin-bottom: 16px;
}
.alert.success {
  background: rgba(61,220,132,0.1);
  border-color: rgba(61,220,132,0.3);
  color: var(--green);
}

/* ============ ADMIN ============ */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.admin-tab {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--text-low);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.admin-tab:hover { color: var(--text-hi); }
.admin-tab.active { color: var(--accent); border-color: var(--accent); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-low);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg-hover); }
.data-table td:first-child { color: var(--text-hi); font-weight: 500; }

/* ============ STATS BAR ============ */
.stats-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  flex: 1;
  min-width: 140px;
}
.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-low); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ============ BACK BUTTON ============ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-low);
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.back-btn:hover { color: var(--accent); }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-low);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; color: var(--text-mid); }
.empty-state p { font-size: 14px; }

/* ============ PAGINATION / UTILITIES ============ */
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; }

/* ============ SCORE RING (big) ============ */
.score-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.score-ring-label { font-size: 11px; color: var(--text-low); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============ WRITE REVIEW PAGE ============ */
.write-review-page { max-width: 700px; margin: 0 auto; }
.write-review-page h1 { font-size: 32px; margin-bottom: 24px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-low);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 34px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .game-page-header { flex-direction: column; }
  .game-cover-lg { width: 100%; min-width: auto; aspect-ratio: 16/9; }
  .pros-cons { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ============ ARABIC / RTL SUPPORT ============ */

/* Arabic font for RTL mode */
[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .logo,
[dir="rtl"] .section-title,
[dir="rtl"] .card-title,
[dir="rtl"] .review-title,
[dir="rtl"] .game-page-title,
[dir="rtl"] .review-page-title {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}

/* Flip layout direction */
[dir="rtl"] .nav-inner       { flex-direction: row-reverse; }
[dir="rtl"] .nav-links       { flex-direction: row-reverse; }
[dir="rtl"] .nav-auth        { flex-direction: row-reverse; }
[dir="rtl"] .nav-user        { flex-direction: row-reverse; }
[dir="rtl"] .hero-actions    { flex-direction: row-reverse; }
[dir="rtl"] .section-header  { flex-direction: row-reverse; }
[dir="rtl"] .filter-bar      { flex-direction: row-reverse; }
[dir="rtl"] .game-page-header{ flex-direction: row-reverse; }
[dir="rtl"] .game-score-row  { flex-direction: row-reverse; }
[dir="rtl"] .game-tags       { flex-direction: row-reverse; }
[dir="rtl"] .review-card-top { flex-direction: row-reverse; }
[dir="rtl"] .review-card-footer { flex-direction: row-reverse; }
[dir="rtl"] .review-meta-bar { flex-direction: row-reverse; }
[dir="rtl"] .hero-actions    { flex-direction: row; }
[dir="rtl"] .card-meta       { flex-direction: row-reverse; }
[dir="rtl"] .pros-cons       { direction: rtl; }
[dir="rtl"] .admin-tabs      { flex-direction: row-reverse; }
[dir="rtl"] .stats-bar       { flex-direction: row-reverse; }
[dir="rtl"] .footer-inner    { flex-direction: row-reverse; }
[dir="rtl"] .modal-footer-text { direction: rtl; }
[dir="rtl"] .score-input-row { flex-direction: row-reverse; }

/* Section title bar flips to right side */
[dir="rtl"] .section-title::before {
  order: 1;
  margin-left: 10px;
  margin-right: 0;
}

/* Back button arrow flips */
[dir="rtl"] .back-btn { flex-direction: row-reverse; }

/* Table text alignment for RTL */
[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td { text-align: right; }

/* Comment actions align left in RTL */
[dir="rtl"] .comment-date   { text-align: right; }

/* Review page: margin-left:auto becomes margin-right:auto */
[dir="rtl"] .review-meta-bar > div:last-child {
  margin-left: 0;
  margin-right: auto;
}

/* Game page info actions */
[dir="rtl"] .game-page-info > div[style*="margin-top:20px"] {
  flex-direction: row-reverse;
}

/* Write review / form pages */
[dir="rtl"] .write-review-page { direction: rtl; }
[dir="rtl"] .form-group label  { text-align: right; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea,
[dir="rtl"] .form-group select { text-align: right; direction: rtl; }

/* Hero section */
[dir="rtl"] .hero { border-left: none; border-right: 4px solid var(--accent); text-align: right; }
[dir="rtl"] .hero p { text-align: right; }

/* Pros / Cons lists */
[dir="rtl"] .pros-box ul li::before { content: '+ '; }
[dir="rtl"] .cons-box ul li::before { content: '− '; }

/* ============ LANGUAGE TOGGLE BUTTON ============ */
.lang-toggle {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-width: 42px;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ============ IMAGE UPLOAD ============ */
.image-upload-area {
  border: 2px dashed var(--border-hi);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-input);
}
.image-upload-area:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}
.image-upload-icon { font-size: 28px; margin-bottom: 6px; }
.image-upload-text { font-size: 13px; color: var(--text-low); }

.image-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.image-preview-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.image-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview-thumb button {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.image-preview-thumb button:hover { background: var(--accent); }

/* ============ REVIEW SCREENSHOTS ============ */
.review-images-section { margin-bottom: 28px; }
.review-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.review-screenshot {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.review-screenshot:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

[dir="rtl"] .image-preview-thumb button { right: auto; left: 3px; }

/* ============ REVIEW SLIDER ============ */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.slider-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  padding: 4px 2px;
}

.slider-track .review-card {
  min-width: calc(33.333% - 14px);
  flex-shrink: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .slider-track .review-card { min-width: calc(50% - 10px); }
}
@media (max-width: 600px) {
  .slider-track .review-card { min-width: 100%; }
}

.slider-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  color: var(--text-hi);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  z-index: 2;
  padding: 0 0 2px 0;
}
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}
.slider-arrow-left  { margin-right: 12px; }
.slider-arrow-right { margin-left: 12px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hi);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.slider-dot:hover { background: var(--text-mid); }

[dir="rtl"] .slider-arrow-left  { margin-right: 0; margin-left: 12px; }
[dir="rtl"] .slider-arrow-right { margin-left: 0; margin-right: 12px; }

/* ============ IMAGE UPLOAD ============ */
.image-upload-area {
  border: 2px dashed var(--border-hi);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-input);
}
.image-upload-area:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}
.image-upload-icon { font-size: 28px; margin-bottom: 6px; }
.image-upload-text { font-size: 13px; color: var(--text-low); }

.image-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.image-preview-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.image-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview-thumb button {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.image-preview-thumb button:hover { background: var(--accent); }

/* ============ REVIEW SCREENSHOTS ============ */
.review-images-section { margin-bottom: 28px; }
.review-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.review-screenshot {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.review-screenshot:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

[dir="rtl"] .image-preview-thumb button { right: auto; left: 3px; }

/* ============ REVIEW SLIDER ============ */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.slider-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  padding: 4px 2px;
}

.slider-track .review-card {
  min-width: calc(33.333% - 14px);
  flex-shrink: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .slider-track .review-card { min-width: calc(50% - 10px); }
}
@media (max-width: 600px) {
  .slider-track .review-card { min-width: 100%; }
}

.slider-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  color: var(--text-hi);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  z-index: 2;
  padding: 0 0 2px 0;
}
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}
.slider-arrow-left  { margin-right: 12px; }
.slider-arrow-right { margin-left: 12px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hi);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.slider-dot:hover { background: var(--text-mid); }

[dir="rtl"] .slider-arrow-left  { margin-right: 0; margin-left: 12px; }
[dir="rtl"] .slider-arrow-right { margin-left: 0; margin-right: 12px; }

/* ============ SLIDER COVER CARD ============ */
.slider-card {
  min-width: calc(33.333% - 14px);
  flex-shrink: 0;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.slider-card:hover { border-color: var(--accent); transform: translateY(-3px); }

@media (max-width: 900px) { .slider-card { min-width: calc(50% - 10px); } }
@media (max-width: 600px) { .slider-card { min-width: 100%; } }

.slider-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  overflow: hidden;
}
.slider-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.slider-card:hover .slider-card-cover img { transform: scale(1.05); }

.slider-card-no-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.slider-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  pointer-events: none;
}

.slider-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid;
  backdrop-filter: blur(4px);
}
.slider-card-badge.great  { background: rgba(61,220,132,0.2); border-color: var(--green); color: var(--green); }
.slider-card-badge.good   { background: rgba(245,166,35,0.2); border-color: var(--gold); color: var(--gold); }
.slider-card-badge.ok     { background: rgba(255,107,53,0.2); border-color: var(--accent2); color: var(--accent2); }
.slider-card-badge.bad    { background: rgba(232,64,64,0.2); border-color: var(--red); color: var(--red); }
.slider-card-badge.none   { background: rgba(0,0,0,0.4); border-color: var(--border-hi); color: var(--text-low); }

[dir="rtl"] .slider-card-badge { right: auto; left: 10px; }

.slider-card-body { padding: 14px 16px; }

.slider-card-game {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 4px;
}
.slider-card-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 8px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slider-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-low);
}

/* ============ SLIDER COVER CARD (portrait style) ============ */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.slider-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
}

/* Portrait card — full bleed image, text overlaid */
.slider-card {
  min-width: calc(25% - 12px);
  width: calc(25% - 12px);
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.slider-card:hover { transform: translateY(-4px); border-color: var(--accent); }

@media (max-width: 1024px) { .slider-card { min-width: calc(33.333% - 11px); width: calc(33.333% - 11px); } }
@media (max-width: 700px)  { .slider-card { min-width: calc(50% - 8px); width: calc(50% - 8px); } }
@media (max-width: 480px)  { .slider-card { min-width: calc(85% - 8px); width: calc(85% - 8px); } }

.slider-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.slider-card:hover .slider-card-img { transform: scale(1.04); }

.slider-card-no-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: var(--bg-hover);
}

/* Dark gradient: strong at bottom, lighter at top */
.slider-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.0)  30%,
    rgba(0,0,0,0.6)  70%,
    rgba(0,0,0,0.92) 100%
  );
  pointer-events: none;
}

/* Top row: category tag + score */
.slider-card-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-card-tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
}

.slider-card-score {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  backdrop-filter: blur(6px);
}
.slider-card-score.great { background:rgba(61,220,132,0.25); border-color:var(--green); color:var(--green); }
.slider-card-score.good  { background:rgba(245,166,35,0.25); border-color:var(--gold);  color:var(--gold);  }
.slider-card-score.ok    { background:rgba(255,107,53,0.25); border-color:var(--accent2);color:var(--accent2);}
.slider-card-score.bad   { background:rgba(232,64,64,0.25);  border-color:var(--red);   color:var(--red);   }
.slider-card-score.none  { background:rgba(0,0,0,0.4);       border-color:var(--border-hi);color:var(--text-low);}

/* Bottom text block */
.slider-card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

.slider-card-time {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.slider-card-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-card-game {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* RTL flips */
[dir="rtl"] .slider-card-top    { flex-direction: row-reverse; }
[dir="rtl"] .slider-card-bottom { text-align: right; }

/* Arrows */
.slider-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  color: var(--text-hi);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  z-index: 2;
  padding: 0 0 2px 0;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.slider-arrow-left  { margin-right: 12px; }
.slider-arrow-right { margin-left: 12px; }
[dir="rtl"] .slider-arrow-left  { margin-right: 0; margin-left: 12px; }
[dir="rtl"] .slider-arrow-right { margin-left: 0; margin-right: 12px; }

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 8px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-hi);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: var(--accent); transform: scale(1.3); }
.slider-dot:hover  { background: var(--text-mid); }

/* ============ REVIEW COVER BANNER ============ */
.review-cover-banner {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  cursor: pointer;
}
.review-cover-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s;
}
.review-cover-banner:hover img { transform: scale(1.03); }
.review-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
}
.review-cover-info {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
}
.review-cover-game {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
[dir="rtl"] .review-cover-info { text-align: right; }

@media (max-width: 600px) { .review-cover-banner { height: 200px; } }

/* ============ SOCIAL ICONS ============ */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-low);
  transition: color 0.15s, background 0.15s;
}
.social-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.social-icon:hover {
  color: var(--text-hi);
  background: var(--bg-hover);
}

[dir="rtl"] .nav-socials { flex-direction: row-reverse; }

/* ============ REVIEW CARD WITH COVER ============ */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.review-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.review-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  overflow: hidden;
}
.review-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.review-card:hover .review-card-cover img { transform: scale(1.04); }

.review-card-no-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.review-card-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  pointer-events: none;
}

.review-card-score-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid;
  backdrop-filter: blur(6px);
}
.review-card-score-badge.great { background:rgba(61,220,132,0.2); border-color:var(--green); color:var(--green); }
.review-card-score-badge.good  { background:rgba(245,166,35,0.2); border-color:var(--gold);  color:var(--gold);  }
.review-card-score-badge.ok    { background:rgba(255,107,53,0.2); border-color:var(--accent2);color:var(--accent2);}
.review-card-score-badge.bad   { background:rgba(232,64,64,0.2);  border-color:var(--red);   color:var(--red);   }
.review-card-score-badge.none  { background:rgba(0,0,0,0.4); border-color:var(--border-hi); color:var(--text-low);}

[dir="rtl"] .review-card-score-badge { left: auto; right: 10px; }

.review-card-body { padding: 14px 16px; }

.review-card-body .review-game-title {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 4px;
}
.review-card-body .review-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 6px;
  line-height: 1.2;
}
.review-card-body .review-body-preview {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

/* ============ LIKE BUTTON ============ */
.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  color: var(--text-mid);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-like:hover { border-color: var(--red); color: var(--red); }
.btn-like.liked { background: rgba(232,64,64,0.12); border-color: var(--red); color: var(--red); }
.like-icon { font-size: 16px; line-height: 1; }
.like-count { font-weight: 600; font-size: 13px; }

/* ============ CLICKABLE USERNAME ============ */
.clickable-user {
  cursor: pointer;
  transition: color 0.15s;
}
.clickable-user:hover { color: var(--accent); text-decoration: underline; }

/* ============ RATING BREAKDOWN ============ */
.rating-breakdown {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-hover);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.rating-breakdown-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-low);
  margin-bottom: 10px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rating-label {
  font-size: 11px;
  color: var(--text-low);
  width: 32px;
  flex-shrink: 0;
  text-align: right;
}
.rating-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.rating-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  min-width: 2px;
}
.rating-bar.great { background: var(--green); }
.rating-bar.good  { background: var(--gold); }
.rating-bar.ok    { background: var(--accent2); }
.rating-bar.bad   { background: var(--red); }
.rating-count {
  font-size: 11px;
  color: var(--text-low);
  width: 20px;
  flex-shrink: 0;
  text-align: left;
}
[dir="rtl"] .rating-label { text-align: left; }
[dir="rtl"] .rating-count { text-align: right; }

/* ============ USER PROFILE ============ */
.profile-page { max-width: 900px; margin: 0 auto; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 150px; }

.profile-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-low);
  margin-bottom: 8px;
}
.profile-role.admin {
  background: rgba(232,55,42,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.profile-since { font-size: 13px; color: var(--text-low); }

.profile-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-stat { text-align: center; }

.profile-stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

[dir="rtl"] .profile-header { flex-direction: row-reverse; }
[dir="rtl"] .profile-info   { text-align: right; }
[dir="rtl"] .profile-stats  { flex-direction: row-reverse; }

/* ============ WRITE REVIEW — GAME BANNER ============ */
.review-write-banner {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.review-write-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.review-write-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}
.review-write-banner-title {
  position: absolute;
  bottom: 16px; left: 20px; right: 20px;
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
[dir="rtl"] .review-write-banner-title { text-align: right; }

/* ============ SCORE PICKER ============ */
.score-picker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.score-picker-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-low);
  margin-bottom: 12px;
}
.score-picker-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.score-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-low);
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-btn:hover { border-color: var(--accent); color: var(--text-hi); }
.score-btn.active {
  border-color: var(--accent);
  background: rgba(232,55,42,0.1);
  color: var(--accent);
}
.score-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

/* ============ NEWS PAGE ============ */
.news-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.news-cat-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', 'Cairo', sans-serif;
}
.news-cat-btn:hover { border-color: var(--accent); color: var(--text-hi); }
.news-cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.news-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  overflow: hidden;
}
.news-card-cover img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.news-card:hover .news-card-cover img { transform: scale(1.04); }
.news-card-no-cover { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:40px; }

.news-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
}
[dir="rtl"] .news-card-cat { left: auto; right: 10px; }

.news-card-body { padding: 16px; }
.news-card-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 8px;
  line-height: 1.3;
}
.news-card-preview {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-low);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.news-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

/* ============ NEWS ITEM PAGE ============ */
.news-item-page { max-width: 820px; margin: 0 auto; }

.news-item-banner {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.news-item-banner img { width:100%; height:100%; object-fit:cover; }
.news-item-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
}
.news-item-banner-text {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
}
.news-item-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.news-item-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.news-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-low);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.news-item-meta strong { color: var(--text-hi); }
.news-item-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-mid);
  white-space: pre-line;
}

[dir="rtl"] .news-item-banner-text { text-align: right; }
[dir="rtl"] .news-item-meta { flex-direction: row-reverse; }
[dir="rtl"] .news-card-footer { flex-direction: row-reverse; }

@media (max-width: 600px) {
  .news-item-banner { height: 240px; }
  .news-item-title  { font-size: 24px; }
}

/* ============ FORGOT PASSWORD ============ */
.reset-code-display { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.alert.success {
  background: rgba(61,220,132,0.1);
  border: 1px solid rgba(61,220,132,0.3);
  color: var(--green);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============ REVIEW CONCLUSION ============ */
.review-conclusion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}
[dir="rtl"] .review-conclusion {
  border-left: 1px solid var(--border);
  border-right: 4px solid var(--accent);
}
.review-conclusion-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.review-conclusion-text {
  font-size: 15px;
  color: var(--text-hi);
  line-height: 1.65;
  font-style: italic;
}

/* ============ YOUTUBE EMBED ============ */
.review-youtube {
  margin-bottom: 32px;
}
.youtube-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.youtube-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============ BLOCK EDITOR ============ */
.block-hint {
  font-size: 12px;
  color: var(--text-low);
  margin-bottom: 10px;
}

.block-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.block-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-input);
  transition: border-color 0.15s;
}
.block-item:focus-within { border-color: var(--accent); }

.block-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}

.block-type-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-low);
}

.block-btns {
  display: flex;
  gap: 4px;
}

.block-btns button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-low);
  font-size: 11px;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.block-btns button:hover { border-color: var(--accent); color: var(--accent); }
.block-remove:hover { border-color: var(--red) !important; color: var(--red) !important; }

.block-textarea {
  width: 100%;
  min-height: 100px;
  background: transparent;
  border: none;
  color: var(--text-hi);
  padding: 12px;
  font-size: 14px;
  font-family: 'Inter', 'Cairo', sans-serif;
  resize: vertical;
  line-height: 1.6;
}
.block-textarea:focus { outline: none; }

.block-image-upload {
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.block-image-upload:hover { background: var(--bg-hover); }

.block-image-preview {
  position: relative;
  padding: 8px;
}
.block-image-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-base);
}
.block-img-clear {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.block-img-clear:hover { background: var(--red); }

.block-add-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Rendered blocks in review page */
.review-block-text {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
}

.review-block-image {
  margin: 20px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.review-block-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}

[dir="rtl"] .block-img-clear { right: auto; left: 14px; }
[dir="rtl"] .block-add-row { flex-direction: row-reverse; }
[dir="rtl"] .block-controls { flex-direction: row-reverse; }

/* ============ ANALYTICS ============ */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .analytics-grid { grid-template-columns: 1fr; } }

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.analytics-card-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hi);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.analytics-card-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.stat-pill {
  background: rgba(232,55,42,0.12);
  border: 1px solid rgba(232,55,42,0.3);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  padding: 8px 0 0;
  overflow-x: auto;
}
.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 20px;
  height: 100%;
  gap: 4px;
  cursor: default;
}
.chart-bar {
  width: 100%;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: opacity 0.15s;
  opacity: 0.8;
}
.chart-bar-wrap:hover .chart-bar { opacity: 1; }
.chart-bar-label {
  font-size: 9px;
  color: var(--text-low);
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: center;
  margin-top: 2px;
}

/* ============ ADMIN LAYOUT — SIDEBAR ============ */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  min-height: calc(100vh - 120px);
  align-items: start;
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 0;
  position: sticky;
  top: 82px;
}

.admin-sidebar-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-low);
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.admin-sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.admin-sidebar-username { font-size: 13px; font-weight: 600; color: var(--text-hi); }
.admin-sidebar-role { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }

.admin-nav { display: flex; flex-direction: column; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
  border-right: 3px solid transparent;
  font-family: 'Cairo', 'Inter', sans-serif;
  text-decoration: none;
}
.admin-nav-item:hover { color: var(--text-hi); background: var(--bg-hover); }
.admin-nav-item.active {
  color: var(--accent);
  background: rgba(232,55,42,0.08);
  border-right-color: var(--accent);
  font-weight: 600;
}
[dir="rtl"] .admin-nav-item { border-right: none; border-left: 3px solid transparent; }
[dir="rtl"] .admin-nav-item.active { border-left-color: var(--accent); }

.admin-nav-icon { font-size: 16px; flex-shrink: 0; }

.admin-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 400px;
}

.admin-section-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-section-header .admin-section-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.action-cell { white-space: nowrap; }

/* Overview cards */
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .admin-overview-grid { grid-template-columns: repeat(2,1fr); } }

.admin-overview-card {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.admin-overview-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.admin-overview-card.red { border-top: 3px solid var(--accent); }
.admin-overview-icon { font-size: 24px; margin-bottom: 8px; }
.admin-overview-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.admin-overview-label { font-size: 11px; color: var(--text-low); text-transform: uppercase; letter-spacing: 0.08em; }

/* Recent items */
.admin-recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .admin-recent-grid { grid-template-columns: 1fr; } }

.admin-recent-card {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-recent-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-hi);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.admin-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.admin-recent-item:last-child { border-bottom: none; }
.admin-recent-item:hover { background: var(--bg-card); }

/* Role badge */
.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-low);
}
.role-badge.admin {
  background: rgba(232,55,42,0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* Improved chart */
.analytics-chart-improved {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  padding: 8px 0 0;
  overflow-x: auto;
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 22px;
  height: 100%;
  gap: 3px;
}
.chart-col-value {
  font-size: 9px;
  color: var(--text-low);
  min-height: 12px;
}
.chart-col-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.chart-col-bar {
  width: 100%;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.chart-col:hover .chart-col-bar { opacity: 1; }
.chart-col-label {
  font-size: 9px;
  color: var(--text-low);
  transform: rotate(-40deg);
  transform-origin: center;
  white-space: nowrap;
}

/* Analytics rows */
.analytics-page-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.analytics-page-row:last-child { border-bottom: none; }
.analytics-rank {
  width: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  flex-shrink: 0;
}
.analytics-page-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analytics-bar-mini-wrap {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.analytics-bar-mini {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.7;
}
.analytics-visit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.analytics-visit-row:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
}

/* ============ PROFILE EDIT ============ */
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  border: 3px solid var(--border);
  transition: border-color 0.2s;
}
.profile-avatar-wrap:hover .profile-avatar { border-color: var(--accent); }

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: var(--accent);
  border: 2px solid var(--bg-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}
.profile-avatar-edit:hover { transform: scale(1.1); }

[dir="rtl"] .profile-avatar-edit { right: auto; left: 0; }

/* ============ STATUS & OWNER BADGES ============ */
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.status-badge.active  { background: rgba(61,220,132,0.1);  border-color: var(--green); color: var(--green); }
.status-badge.banned  { background: rgba(232,64,64,0.1);   border-color: var(--red);   color: var(--red);   }

.role-badge.owner {
  background: rgba(147,51,234,0.15);
  border-color: #9333ea;
  color: #c084fc;
}

/* ============ OWNER / BAN STYLES ============ */
.role-badge.owner {
  background: rgba(245,166,35,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.banned-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(232,64,64,0.12);
  border: 1px solid var(--red);
  color: var(--red);
}

.banned-row td { opacity: 0.55; }
.banned-row td:last-child { opacity: 1; }

.ban-btn { border-color: var(--red) !important; color: var(--red) !important; }
.ban-btn:hover { background: rgba(232,64,64,0.12) !important; }

/* ============ BIG FOOTER ============ */
.footer-big {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-big-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 32px;
}
@media(max-width:768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media(max-width:480px) { .footer-top { grid-template-columns: 1fr; } }

.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.footer-tagline { font-size: 13px; color: var(--accent); margin-bottom: 8px; font-style: italic; }
.footer-desc { font-size: 13px; color: var(--text-low); line-height: 1.6; max-width: 280px; }

.footer-col-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-low);
  margin-bottom: 14px;
}
.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a { font-size: 14px; color: var(--text-mid); text-decoration: none; transition: color 0.15s; }
.footer-links-col a:hover { color: var(--accent); }

.footer-social-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  transition: all 0.2s;
  text-decoration: none;
}
.footer-social-btn svg { width: 20px; height: 20px; }
.footer-social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-low);
}

/* ============ NEWS SLIDER ============ */
.news-slider-wrapper {
  position: relative;
  overflow: hidden;
}
.news-slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.news-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.news-slide-card {
  min-width: calc(33.333% - 14px);
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
@media(max-width:900px) { .news-slide-card { min-width: calc(50% - 10px); } }
@media(max-width:600px) { .news-slide-card { min-width: 100%; } }

.news-slide-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-slide-no-cover { width: 100%; height: 100%; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.news-slide-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}
.news-slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.news-slide-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.news-slide-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}
.news-slide-preview { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-slide-time { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ============ HOME BOTTOM GRID ============ */
.home-bottom-grid { display: block; }

/* ============ SIDEBAR ============ */
.sidebar-news-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-news-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.sidebar-news-item:hover { background: var(--bg-hover); border-color: var(--border); }
.sidebar-news-item img { width: 72px; height: 50px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sidebar-news-no-cover { width: 72px; height: 50px; background: var(--bg-hover); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sidebar-news-cat { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; letter-spacing: 0.06em; }
.sidebar-news-title { font-size: 13px; font-weight: 600; color: var(--text-hi); line-height: 1.3; margin-bottom: 3px; }
.sidebar-news-time { font-size: 11px; color: var(--text-low); }

.sidebar-reviews-list { display: flex; flex-direction: column; gap: 10px; }
.sidebar-review-item {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.sidebar-review-item:hover { background: var(--bg-hover); border-color: var(--border); }
.sidebar-review-game { font-size: 11px; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.sidebar-review-title { font-size: 13px; color: var(--text-hi); line-height: 1.3; }

/* ============ BIG NEWS SLIDER ============ */
.big-news-slider {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
@media(max-width:768px) { .big-news-slider { grid-template-columns: 1fr; height: auto; } }

.big-news-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: opacity 0.15s ease;
  opacity: 1;
}
.big-news-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}
.big-news-main:hover .big-news-bg { transform: scale(1.03); }
.big-news-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.1) 100%);
}
.big-news-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  cursor: pointer;
}
.big-news-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.big-news-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
}
.big-news-preview {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.big-news-meta { font-size: 12px; color: rgba(255,255,255,0.5); }

.big-news-list {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
[dir="rtl"] .big-news-list { border-right: none; border-left: 1px solid var(--border); }

.big-news-list-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.big-news-list-item:hover { background: var(--bg-hover); }
.big-news-list-item.active { background: rgba(232,55,42,0.08); border-right: 3px solid var(--accent); }
[dir="rtl"] .big-news-list-item.active { border-right: none; border-left: 3px solid var(--accent); }

.big-news-list-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.big-news-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.35;
}

/* ============ BIG SLIDER REDESIGN ============ */
.big-news-slider {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  border: 1px solid var(--border);
  position: relative;
}
@media(max-width:768px) { .big-news-slider { height: 320px; } }

.big-news-list {
  display: none;
}

.big-news-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.15s;
  flex: 1;
}
.big-news-list-item:hover { background: rgba(255,255,255,0.05); }
.big-news-list-item.active { background: rgba(232,55,42,0.15); }
.big-news-list-item.active .big-list-indicator { background: var(--accent); }

.big-list-indicator {
  width: 3px;
  min-height: 36px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s;
}
.big-list-text { display: flex; flex-direction: column; gap: 4px; }
.big-news-list-cat { font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.big-news-list-title { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.4; font-weight: 500; }

.big-news-main {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-card);
}
.big-news-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.big-news-main:hover .big-news-bg { transform: scale(1.04); }
.big-news-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.15) 100%);
}
.big-news-content {
  position: absolute; bottom: 52px; left: 0; right: 0;
  padding: 0 28px;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.big-news-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.big-news-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.big-news-preview { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.55; margin-bottom: 8px; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.big-news-meta { font-size: 11px; color: rgba(255,255,255,0.45); }
.big-news-score-wrap { margin-bottom: 10px; }

.big-news-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: rgba(0,0,0,0.5);
}
.big-news-prev, .big-news-next {
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.big-news-prev:hover, .big-news-next:hover { background: var(--accent); }
.big-news-dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.big-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.big-dot.active { background: var(--accent); width: 18px; border-radius: 3px; }

/* Title block in editor */
.block-title-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-hi);
  padding: 10px 14px;
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
}

/* Title block in review display */
.review-block-title {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-hi);
  margin: 24px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

/* Hero below slider */
.hero-below {
  text-align: center;
  padding: 40px 20px 20px;
}
.hero-below h1 {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-hi);
  margin-bottom: 14px;
}
.hero-below p {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.hero-below .hero-actions { justify-content: center; }

/* ── NAVBAR REDESIGN ─────────────────────────────────────────────────────── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse; /* RTL: right=logo, left=auth */
  gap: 12px;
}

/* Left group: socials + divider + auth — all tightly grouped */
.nav-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Thin vertical separator between socials and auth */
.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--border-hi);
  flex-shrink: 0;
  opacity: 0.6;
}

/* User icon replacing the username text */
.nav-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hi);
  color: var(--accent);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.nav-user-icon:hover {
  border-color: var(--accent);
  background: rgba(216,16,16,0.1);
  color: var(--accent);
}
.nav-user-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: row-reverse;
}

.nav-right-group .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-direction: row-reverse;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
}

/* Hide username text — icon is used instead */
#navUsername { display: none !important; }

.footer-rights-btn {
  background: none;
  border: none;
  color: var(--text-low);
  font-family: 'Cairo', 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  text-align: right;
}
.footer-rights-btn:hover { color: var(--accent); text-decoration: underline; }

/* ── RIGHTS PAGE ─────────────────────────────────────────────────────────── */
.rights-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.rights-page h1 {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 8px;
}
.rights-page .rights-subtitle {
  color: var(--text-low);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.rights-section {
  margin-bottom: 28px;
}
.rights-section h2 {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rights-section p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.8;
}

/* ============================================================
   ADVANCED ADMIN PANEL — ap-* namespace
   ============================================================ */

/* Shell layout */
.ap-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 62px);
  margin: -32px -24px;
  background: #0a0a0c;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.ap-sidebar {
  background: #0d0d10;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  flex-shrink: 0;
}
[dir="rtl"] .ap-sidebar { border-right: none; border-left: 1px solid var(--border); }

.ap-sidebar-brand {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.ap-brand-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: 0.1em;
}
.ap-brand-sub {
  font-size: 10px;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.ap-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.ap-profile-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b00000);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(216,16,16,0.3);
}
.ap-profile-name {
  font-size: 13px; font-weight: 600; color: var(--text-hi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-profile-role-chip {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 20px; margin-top: 3px;
  background: rgba(216,16,16,0.15);
  border: 1px solid rgba(216,16,16,0.35);
  color: var(--accent);
}
.ap-profile-role-chip.owner {
  background: rgba(147,51,234,0.15);
  border-color: rgba(147,51,234,0.4);
  color: #a855f7;
}

/* Nav */
.ap-nav { flex: 1; padding: 12px 0; }

.ap-nav-section-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-low);
  padding: 8px 20px 4px;
}

.ap-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  font-size: 13px; font-weight: 500;
  color: var(--text-mid);
  cursor: pointer; text-decoration: none;
  transition: all 0.15s;
  position: relative;
  border-right: 2px solid transparent;
  font-family: 'Cairo','Inter',sans-serif;
}
[dir="rtl"] .ap-nav-item { border-right: none; border-left: 2px solid transparent; }
.ap-nav-item:hover { color: var(--text-hi); background: rgba(255,255,255,0.04); }
.ap-nav-item.active {
  color: var(--accent);
  background: rgba(216,16,16,0.08);
  border-right-color: var(--accent);
  font-weight: 600;
}
[dir="rtl"] .ap-nav-item.active { border-left-color: var(--accent); }

.ap-nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.75; }
.ap-nav-item.active .ap-nav-icon { opacity: 1; }
.ap-nav-item span { flex: 1; }

.ap-nav-count {
  font-size: 10px; font-weight: 700;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-low);
  padding: 1px 6px; border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  min-width: 22px; text-align: center;
}
.ap-nav-item.active .ap-nav-count {
  background: rgba(216,16,16,0.15);
  border-color: rgba(216,16,16,0.3);
  color: var(--accent);
}

.ap-sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.ap-sidebar-clock {
  font-family: 'Rajdhani', monospace;
  font-size: 20px; font-weight: 700;
  color: var(--text-hi);
  letter-spacing: 0.05em;
}
.ap-sidebar-date { font-size: 10px; color: var(--text-low); margin-top: 2px; }

/* ── MAIN AREA ───────────────────────────────────────────── */
.ap-main {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 62px);
  background: #0f0f12;
}

.ap-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: #0d0d10;
  flex-shrink: 0;
}
.ap-topbar-left, .ap-topbar-right { display: flex; align-items: center; gap: 10px; }

.ap-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
}
.ap-breadcrumb-home { color: var(--text-low); }
.ap-breadcrumb-current { color: var(--text-hi); font-weight: 600; }

.ap-topbar-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-low);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.ap-topbar-btn svg { width: 15px; height: 15px; }
.ap-topbar-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(216,16,16,0.08); }

.ap-content { flex: 1; padding: 28px; overflow-y: auto; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.ap-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.ap-page-title {
  font-family: 'Rajdhani','Cairo',sans-serif;
  font-size: 26px; font-weight: 700; color: var(--text-hi);
  line-height: 1.1;
}
.ap-page-sub { font-size: 13px; color: var(--text-low); margin-top: 4px; }

/* ── KPI ROW ─────────────────────────────────────────────── */
.ap-kpi-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media(max-width:900px){ .ap-kpi-row { grid-template-columns: repeat(2,1fr); } }

.ap-kpi-card {
  background: #161619;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.ap-kpi-card:not(.no-hover):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ap-kpi-card::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 60%);
  pointer-events: none;
}

.ap-kpi-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ap-kpi-icon svg { width: 20px; height: 20px; }
.ap-kpi-icon.games   { background: rgba(216,16,16,0.15); color: var(--accent); }
.ap-kpi-icon.reviews { background: rgba(245,166,35,0.15); color: var(--gold); }
.ap-kpi-icon.news    { background: rgba(61,220,132,0.12); color: var(--green); }
.ap-kpi-icon.users   { background: rgba(99,102,241,0.15); color: #818cf8; }
.ap-kpi-icon.analytics { background: rgba(255,107,53,0.12); color: var(--accent2); }

.ap-kpi-body { flex: 1; }
.ap-kpi-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px; font-weight: 700; color: var(--text-hi);
  line-height: 1;
}
.ap-kpi-label { font-size: 11px; color: var(--text-low); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.07em; }
.ap-kpi-arrow { font-size: 22px; color: var(--text-low); opacity: 0; transition: opacity 0.15s; }
.ap-kpi-card:hover .ap-kpi-arrow { opacity: 1; color: var(--accent); }

/* ── STAT STRIP ──────────────────────────────────────────── */
.ap-stat-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
}
.ap-stat-pill {
  display: flex; align-items: center; gap: 7px;
  background: #161619;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px; color: var(--text-mid);
}
.ap-stat-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.ap-stat-dot.green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.ap-stat-dot.red    { background: var(--red); }
.ap-stat-dot.purple { background: #a855f7; }
.ap-stat-dot.gold   { background: var(--gold); }
.ap-stat-pill strong { color: var(--text-hi); }

/* ── OVERVIEW PANELS GRID ────────────────────────────────── */
.ap-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(max-width:800px){ .ap-overview-grid { grid-template-columns: 1fr; } }

/* ── PANEL ───────────────────────────────────────────────── */
.ap-panel {
  background: #161619;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.ap-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.ap-panel-title { font-size: 13px; font-weight: 700; color: var(--text-hi); }
.ap-panel-action {
  font-size: 11px; color: var(--accent); background: none; border: none;
  cursor: pointer; font-weight: 600; padding: 2px 6px;
  transition: opacity 0.15s;
}
.ap-panel-action:hover { opacity: 0.7; }
.ap-panel-badge {
  font-size: 9px; font-weight: 800;
  background: rgba(216,16,16,0.15);
  border: 1px solid rgba(216,16,16,0.3);
  color: var(--accent);
  padding: 2px 7px; border-radius: 4px; letter-spacing: 0.08em;
}
.ap-panel-body { max-height: 320px; overflow-y: auto; }

/* ── FEED ITEMS ──────────────────────────────────────────── */
.ap-feed-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: background 0.15s;
}
.ap-feed-item:last-child { border-bottom: none; }
.ap-feed-item:hover { background: rgba(255,255,255,0.03); }

.ap-feed-thumb {
  width: 44px; height: 30px; border-radius: 5px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.ap-feed-thumb-ph {
  width: 44px; height: 30px; border-radius: 5px;
  background: var(--bg-hover); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; border: 1px solid var(--border);
}

.ap-feed-info { flex: 1; min-width: 0; }
.ap-feed-title {
  font-size: 13px; font-weight: 600; color: var(--text-hi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-feed-meta { font-size: 11px; color: var(--text-low); margin-top: 2px; }
.ap-feed-arrow { width: 14px; height: 14px; color: var(--text-low); flex-shrink: 0; opacity: 0; transition: opacity 0.15s; }
.ap-feed-item:hover .ap-feed-arrow { opacity: 1; color: var(--accent); }

.ap-feed-actions { display: flex; gap: 4px; flex-shrink: 0; }
.ap-icon-btn {
  width: 24px; height: 24px; border-radius: 5px;
  border: 1px solid var(--border); background: none;
  font-size: 11px; cursor: pointer; color: var(--text-low);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ap-icon-btn.edit:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,166,35,0.1); }
.ap-icon-btn.delete:hover { border-color: var(--red); color: var(--red); background: rgba(232,64,64,0.1); }

/* Rank items */
.ap-rank-item { }
.ap-rank-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 800;
  flex-shrink: 0; border: 1.5px solid;
}
.ap-rank-1 { background: rgba(245,166,35,0.15); border-color: var(--gold); color: var(--gold); }
.ap-rank-2 { background: rgba(192,192,192,0.1); border-color: #aaa; color: #ccc; }
.ap-rank-3 { background: rgba(205,127,50,0.1); border-color: #cd7f32; color: #cd7f32; }
.ap-rank-4, .ap-rank-5 { background: var(--bg-hover); border-color: var(--border); color: var(--text-low); }

.ap-cat-chip {
  display: inline-block; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(216,16,16,0.15); border: 1px solid rgba(216,16,16,0.3);
  color: var(--accent); padding: 1px 6px; border-radius: 3px;
}

/* ── TOOLBAR ─────────────────────────────────────────────── */
.ap-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.ap-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #161619;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  flex: 1; min-width: 200px; max-width: 320px;
  transition: border-color 0.15s;
}
.ap-search-wrap:focus-within { border-color: var(--accent); }
.ap-search-wrap svg { width: 14px; height: 14px; color: var(--text-low); flex-shrink: 0; }
.ap-search-input {
  background: none; border: none; outline: none;
  color: var(--text-hi); font-size: 13px;
  font-family: 'Cairo','Inter',sans-serif;
  padding: 9px 0; flex: 1; width: 100%;
}
.ap-search-input::placeholder { color: var(--text-low); }

.ap-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--border);
  background: #161619; color: var(--text-low);
  cursor: pointer; transition: all 0.15s;
  font-family: 'Cairo','Inter',sans-serif;
}
.ap-chip:hover { border-color: var(--accent); color: var(--accent); }
.ap-chip.active {
  background: rgba(216,16,16,0.15);
  border-color: rgba(216,16,16,0.4);
  color: var(--accent);
}

/* ── TABLE ───────────────────────────────────────────────── */
.ap-table-wrap {
  background: #161619;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
}
.ap-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.ap-table thead tr {
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.ap-table th {
  padding: 11px 14px;
  text-align: right;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-low); white-space: nowrap;
}
.ap-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-mid);
  vertical-align: middle;
}
.ap-table tr:last-child td { border-bottom: none; }
.ap-table tr:hover td { background: rgba(255,255,255,0.02); }
.ap-row-banned { opacity: 0.55; }

.ap-td-num { color: var(--text-low); font-size: 11px; font-weight: 600; width: 40px; text-align: center; }
.ap-td-center { text-align: center; }
.ap-td-truncate { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-td-date { color: var(--text-low); font-size: 11px; white-space: nowrap; }
.ap-td-email { color: var(--text-low); font-size: 12px; }
.ap-td-actions { white-space: nowrap; }

/* ── GAME CELLS ──────────────────────────────────────────── */
.ap-game-cell { display: flex; align-items: center; gap: 10px; }
.ap-game-thumb {
  width: 36px; height: 36px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.ap-game-thumb-ph {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--bg-hover); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ap-game-name { font-size: 13px; font-weight: 600; color: var(--text-hi); }
.ap-game-meta { font-size: 11px; color: var(--text-low); margin-top: 1px; }

.ap-platform-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); color: #818cf8;
}
.ap-genre-tag {
  display: inline-block; font-size: 10px;
  padding: 2px 8px; border-radius: 4px;
  background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-low);
}
.ap-review-stat { display: flex; align-items: center; gap: 6px; justify-content: center; }

/* ── ACTION BUTTONS ──────────────────────────────────────── */
.ap-action-btn {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 5px;
  font-size: 11px; font-weight: 600;
  border: 1px solid var(--border);
  background: none; cursor: pointer;
  color: var(--text-mid);
  transition: all 0.12s;
  margin-right: 4px; margin-bottom: 2px;
  font-family: 'Cairo','Inter',sans-serif;
  white-space: nowrap;
}
.ap-action-btn:last-child { margin-right: 0; }
.ap-action-btn.view:hover   { border-color: #818cf8; color: #818cf8; background: rgba(99,102,241,0.1); }
.ap-action-btn.edit:hover   { border-color: var(--gold); color: var(--gold); background: rgba(245,166,35,0.1); }
.ap-action-btn.delete:hover { border-color: var(--red); color: var(--red); background: rgba(232,64,64,0.1); }
.ap-action-btn.promote:hover { border-color: var(--green); color: var(--green); background: rgba(61,220,132,0.1); }
.ap-action-btn.demote:hover  { border-color: var(--gold); color: var(--gold); background: rgba(245,166,35,0.1); }
.ap-action-btn.ban:hover    { border-color: var(--red); color: var(--red); background: rgba(232,64,64,0.1); }
.ap-action-btn.unban:hover  { border-color: var(--green); color: var(--green); background: rgba(61,220,132,0.1); }

.ap-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background 0.15s;
  font-family: 'Cairo','Inter',sans-serif;
}
.ap-btn-primary:hover { background: var(--accent-dark); }

/* ── USER CELLS ──────────────────────────────────────────── */
.ap-user-cell { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ap-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.ap-mini-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.ap-clickable { cursor: pointer; transition: color 0.15s; }
.ap-clickable:hover { color: var(--accent); }
.ap-user-name { font-size: 13px; font-weight: 600; color: var(--text-hi); }
.ap-banned-tag { font-size: 9px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }

.ap-role-chip {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 2px 9px; border-radius: 20px; border: 1px solid;
}
.ap-role-chip.ap-role-owner { background: rgba(147,51,234,0.12); border-color: rgba(147,51,234,0.35); color: #a855f7; }
.ap-role-chip.ap-role-admin { background: rgba(216,16,16,0.12); border-color: rgba(216,16,16,0.35); color: var(--accent); }
.ap-role-chip.ap-role-user  { background: var(--bg-hover); border-color: var(--border); color: var(--text-low); }

.ap-self-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 2px 9px; border-radius: 20px;
  background: rgba(216,16,16,0.12); border: 1px solid rgba(216,16,16,0.3); color: var(--accent);
}

/* ── USER STAT STRIP ─────────────────────────────────────── */
.ap-user-stat-strip {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.ap-ustat {
  background: #161619; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 20px; text-align: center; flex: 1; min-width: 80px;
}
.ap-ustat-val { font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; color: var(--text-hi); line-height: 1; }
.ap-ustat-lbl { font-size: 10px; color: var(--text-low); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 3px; }
.ap-c-purple { color: #a855f7; }
.ap-c-red    { color: var(--accent); }
.ap-c-gold   { color: var(--gold); }
.ap-c-green  { color: var(--green); }

/* ── NEWS CARD GRID ──────────────────────────────────────── */
.ap-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 16px;
}
.ap-news-card {
  background: #161619; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color 0.2s, transform 0.18s;
}
.ap-news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ap-news-cover {
  height: 140px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); position: relative;
}
.ap-news-cat-chip {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 4px;
}
.ap-news-body { padding: 14px; }
.ap-news-title { font-size: 13px; font-weight: 600; color: var(--text-hi); line-height: 1.4; margin-bottom: 6px; }
.ap-news-meta { font-size: 11px; color: var(--text-low); margin-bottom: 12px; }
.ap-news-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── ANALYTICS ───────────────────────────────────────────── */
.ap-analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:700px){ .ap-analytics-grid { grid-template-columns: 1fr; } }

.ap-chart {
  display: flex; align-items: flex-end; gap: 3px;
  height: 140px; overflow-x: auto; padding-bottom: 4px;
}
.ap-chart-col {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 20px; height: 100%; gap: 2px; cursor: default;
}
.ap-chart-val { font-size: 8px; color: var(--text-low); min-height: 12px; }
.ap-chart-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.ap-chart-bar {
  width: 100%; background: var(--accent); border-radius: 3px 3px 0 0;
  min-height: 2px; opacity: 0.65; transition: opacity 0.15s, height 0.3s;
}
.ap-chart-col:hover .ap-chart-bar { opacity: 1; }
.ap-chart-lbl {
  font-size: 8px; color: var(--text-low);
  transform: rotate(-40deg); transform-origin: center;
  white-space: nowrap; margin-top: 2px;
}

.ap-analytics-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ap-analytics-row:last-child { border-bottom: none; }
.ap-analytics-rank { width: 18px; font-size: 12px; font-weight: 800; color: var(--accent); text-align: center; flex-shrink: 0; }
.ap-analytics-page { flex: 1; font-size: 12px; color: var(--text-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-analytics-bar-wrap { width: 70px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.ap-analytics-bar { height: 100%; background: var(--accent); border-radius: 3px; opacity: 0.7; }
.ap-stat-badge {
  font-size: 11px; font-weight: 700; color: var(--text-hi);
  background: var(--bg-hover); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 8px; white-space: nowrap;
}
.ap-visit-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ap-visit-row:last-child { border-bottom: none; }
.ap-visit-time { font-size: 10px; color: var(--text-low); white-space: nowrap; }

/* ── LOADING & EMPTY ─────────────────────────────────────── */
.ap-loading-state {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 60px 20px; color: var(--text-low); font-size: 14px;
}
.ap-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: apSpin 0.7s linear infinite;
}
@keyframes apSpin { to { transform: rotate(360deg); } }

.ap-empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 60px 20px; color: var(--text-low); font-size: 14px; text-align: center;
}
.ap-empty-inline {
  padding: 16px; color: var(--text-low); font-size: 13px; text-align: center;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:768px){
  .ap-shell { grid-template-columns: 1fr; }
  .ap-sidebar { position: static; height: auto; }
  .ap-kpi-row { grid-template-columns: 1fr 1fr; }
  .ap-overview-grid { grid-template-columns: 1fr; }
  .ap-analytics-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — COMPLETE OVERHAUL
   ═══════════════════════════════════════════════════════ */

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  transition: border-color 0.2s;
  flex-shrink: 0;
  order: -1;
}
.nav-hamburger:hover { border-color: var(--accent); }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile dropdown menu ── */
.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.mobile-menu.hidden { display: none; }
.mobile-menu a {
  padding: 12px 8px;
  color: var(--text-mid);
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  border-bottom: 1px solid var(--border);
  text-align: right;
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 6px; }

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav elements */
  .nav-hamburger { display: flex; }
  .nav-right-group .nav-links { display: none; }
  .nav-socials { display: none; }
  .nav-auth { display: none !important; }
  .nav-user { display: none !important; }

  /* Navbar layout on mobile */
  .nav-inner {
    flex-direction: row !important;
    justify-content: space-between;
    padding: 0 16px;
  }
  .nav-right-group {
    flex-direction: row;
    gap: 0;
  }
  .logo { font-size: 14px; }

  /* Main content padding */
  #app { padding: 0 12px; }

  /* Hero */
  .hero { padding: 24px 0; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }
  .hero-actions { flex-wrap: wrap; gap: 8px; }
  .hero-actions .btn { flex: 1; min-width: 120px; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .grid-2 { grid-template-columns: 1fr !important; }

  /* Cards */
  .card-title { font-size: 13px; }
  .review-card { min-height: auto; }

  /* Game page */
  .game-page-header { flex-direction: column !important; gap: 16px; }
  .game-cover-lg { width: 100%; max-width: 100%; aspect-ratio: 16/9; }
  .game-page-info { width: 100%; }

  /* Review page */
  .review-meta-bar { flex-wrap: wrap; gap: 10px; }
  .review-cover-banner { height: 200px; }
  .pros-cons { grid-template-columns: 1fr !important; }

  /* Admin */
  .admin-layout { grid-template-columns: 1fr !important; }
  .admin-sidebar { position: static !important; }
  .admin-overview-grid { grid-template-columns: repeat(2,1fr) !important; }
  .admin-recent-grid { grid-template-columns: 1fr !important; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 6px; }
  .action-cell { white-space: normal; }
  .action-cell .btn { margin: 2px; }

  /* News */
  .news-grid { grid-template-columns: 1fr !important; }
  .news-item-page { padding: 0; }
  .news-item-title { font-size: 24px; }

  /* Profile */
  .profile-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-stats { flex-direction: row; gap: 16px; }

  /* Big news slider */
  .big-news-slider { grid-template-columns: 1fr !important; height: auto !important; }
  .big-news-list { display: none; }
  .big-news-main { height: 280px; border-radius: 12px; }

  /* Write review */
  .write-review-page { padding: 0; }
  .score-picker-row { gap: 4px; }
  .score-btn { width: 28px; height: 28px; font-size: 12px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Forms */
  .form-group input, .form-group textarea, .form-group select {
    font-size: 16px !important; /* Prevents iOS zoom */
  }

  /* Modals */
  .modal { width: 95vw; max-width: 95vw; padding: 20px; }

  /* Search */
  .search-box { flex-direction: column; }
  .search-box input { width: 100%; }
  .search-box .btn { width: 100%; }

  /* Filter bar */
  .filter-bar { flex-wrap: wrap; gap: 8px; }
  .filter-bar select { flex: 1; min-width: 130px; }

  /* Section headers */
  .section-header { flex-wrap: wrap; gap: 8px; }

  /* Block editor */
  .block-editor { max-height: 400px; overflow-y: auto; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .logo { font-size: 12px; letter-spacing: 0.5px; }
  .hero h1 { font-size: 24px; }
  .admin-overview-grid { grid-template-columns: repeat(2,1fr) !important; }
  .footer-top { grid-template-columns: 1fr !important; }
  .profile-stats { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════
   PERFORMANCE — SKELETON LOADING & IMAGE FIX
   ═══════════════════════════════════════════════ */

/* Skeleton loading animation */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-card, .skeleton-slider {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}
.skeleton-slider {
  height: 420px;
  width: 100%;
  margin-bottom: 32px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.skeleton-card {
  height: 280px;
}
@media (max-width: 768px) {
  .skeleton-grid { grid-template-columns: repeat(2,1fr); }
  .skeleton-slider { height: 240px; }
}

/* Prevent CLS on images */
.card-cover img,
.review-card-cover img,
.slider-card-img,
.news-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image containers with fixed aspect ratio prevent CLS */
.card-cover { aspect-ratio: 3/4; overflow: hidden; }
.review-card-cover { aspect-ratio: 16/9; overflow: hidden; }
.news-card-cover { aspect-ratio: 16/9; overflow: hidden; }

/* Contain layout shifts */
* { box-sizing: border-box; }

/* ═══════════════════════════════════════════
   MOBILE NAV — FINAL FIX
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Show hamburger */
  .nav-hamburger { display: flex !important; }

  /* Hide desktop-only elements */
  .nav-left-group .nav-socials { display: none; }
  .nav-left-group .nav-divider { display: none; }
  .nav-left-group .nav-auth { display: none !important; }
  .nav-right-group .nav-links { display: none; }

  /* Show user icon on mobile when logged in */
  .nav-left-group .nav-user { display: flex !important; }
  .nav-left-group .nav-user .btn-ghost:not(#adminBtn) { display: none; }
  .nav-left-group #adminBtn { display: none !important; }
  #navUserIcon { display: flex !important; }

  /* Nav layout */
  .nav-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 14px !important;
    gap: 8px !important;
  }
  .nav-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .logo { font-size: 13px; letter-spacing: 0.5px; }

  /* Mobile menu positioning */
  .mobile-menu {
    position: fixed;
    top: 56px;
    right: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 999;
  }
  .mobile-menu a {
    font-size: 18px;
    padding: 16px 20px;
  }
  .mobile-menu .btn {
    font-size: 15px;
    padding: 12px;
    height: auto;
  }
}
