/*
Theme Name: Plati Gaming Final
Version: 8.0 - Perfect Edition
*/

:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-hover: #1c2128;
  --primary: #2196F3;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --border: #212529;
  --accent: #3fb950;
}

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

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.container-custom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* HEADER */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 2000;
}

.site-logo img { max-height: 40px; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s;
}

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

/* CARDS */
.pgs-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.pgs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pgs-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pgs-view-all {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.pgs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s;
  height: 100%;
}

.pgs-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(47, 129, 247, 0.2);
}

.pgs-card-img {
  position: relative;
  width: 100%;
  padding-bottom: 133%;
  overflow: hidden;
  background: var(--bg-hover);
}

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

.pgs-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
}

.pgs-card-body {
  padding: 12px;
}

.pgs-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.pgs-card-title a {
  color: inherit;
  text-decoration: none;
}

.pgs-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* SINGLE POST */
.single-post-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.single-post-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.single-post-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.single-post-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ACTION BUTTONS - FIXED HORIZONTAL */
.action-buttons-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0;
  background: rgba(33, 150, 243, 0.05);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
  cursor: pointer;
  min-height: 70px;
}

.action-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.action-btn i {
  font-size: 20px;
}

/* SOCIAL BUTTONS - FIXED BOTTOM */
.social-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 30px 0 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-btn.whatsapp:hover {
  border-color: #25D366;
}

.social-btn.telegram {
  background: linear-gradient(135deg, #0088cc, #005f8d);
}

.social-btn.telegram:hover {
  border-color: #0088cc;
}

.social-btn.facebook {
  background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.social-btn.facebook:hover {
  border-color: #1877f2;
}

.social-btn.discord {
  background: linear-gradient(135deg, #5865F2, #404EED);
}

.social-btn.discord:hover {
  border-color: #5865F2;
}

.social-btn.youtube {
  background: linear-gradient(135deg, #FF0000, #cc0000);
}

.social-btn.youtube:hover {
  border-color: #FF0000;
}

/* Featured Image */
.single-featured-img {
  text-align: center;
  margin: 30px 0;
}

.single-featured-img img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Content Sections */
.game-info-box, .content-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.game-info-box h3, .content-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-content {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.single-content p { margin-bottom: 16px; }

.single-content ul, .single-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

/* YouTube */
.youtube-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  max-width: 900px;
}

.youtube-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* FOOTER */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 60px;
  text-align: center;
  color: var(--text-muted);
}

/* AD SPACE */
.ad-space {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 60px 20px;
  text-align: center;
  margin: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .container-custom { padding: 0 20px; }
  .single-post-title { font-size: 24px; }
  .action-buttons-wrapper { grid-template-columns: repeat(2, 1fr); }
  .social-buttons { flex-wrap: wrap; }
  .social-btn { width: 45px; height: 45px; font-size: 18px; }
}


/* ===== INTERACTIVE TABS SECTION ===== */
.info-tabs-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.tab-btn {
  background: var(--bg-hover);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 80px;
}

.tab-btn:hover {
  background: rgba(33, 150, 243, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), #1976d2);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
  transform: translateY(-2px);
}

.tab-btn i {
  font-size: 24px;
}

.tab-btn span {
  font-size: 13px;
}

.tab-content-wrapper {
  background: var(--bg-hover);
  border-radius: 10px;
  padding: 30px;
  min-height: 350px;
}

.tab-content {
  display: none;
  animation: fadeInTab 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

.tab-content h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

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

/* Responsive للتابات */
@media (max-width: 768px) {
  .tab-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tab-btn {
    min-height: 70px;
    padding: 12px 8px;
  }

  .tab-btn i {
    font-size: 20px;
  }

  .tab-btn span {
    font-size: 12px;
  }

  .tab-content-wrapper {
    padding: 20px;
    min-height: 300px;
  }
}

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

/* Fix content images */
.single-post-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}
 
/* Download Box */
.pgs-download-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  margin-top: 25px;
}
.download-title {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 15px;
}
.download-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-btn {
  background: var(--primary);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}
.download-btn:hover {
  background: #1976D2;
}

.pgs-download-box{max-width:900px;margin:0 auto;}
.download-btn{width:100%;border-radius:12px;}


/* Center YouTube inside wrapper */
.youtube-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
.youtube-wrapper iframe {
    max-width: 900px;
    width: 100%;
    height: auto;
}


/* --- Fix video centering on all devices --- */
.video-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.video-inner {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}


/* Generic promo slot wrapper (بديل لكلمة إعلان لتقليل ظهور حجب الإعلانات) */
.promo-slot-wrapper {
  width: 100%;
}

.promo-slot {
  display: inline-block;
  max-width: 100%;
}


/* Modern gallery styling for "صور من اللعبة" tab */
.tab-content#images img,
.tab-content#images p img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0 0 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

@media (min-width: 768px) {
  .tab-content#images .game-images-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .tab-content#images .game-images-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tab-content#images .game-images-grid img {
  margin: 0;
}


/* Auto TOC styling */
.auto-toc {
  background: #111827;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.auto-toc-title {
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 8px;
}
.auto-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.auto-toc li {
  margin-bottom: 6px;
}
.auto-toc a {
  color: #38bdf8;
  text-decoration: none;
}
.auto-toc a:hover {
  text-decoration: underline;
}

/* Internal links highlight */
.internal-link {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
}
.internal-link:hover {
  text-decoration: underline;
}


/* Video Wrapper Auto Embed */
.video-wrapper{max-width:800px;margin:20px auto;}
.video-wrapper iframe{width:100%;height:420px;}
@media(max-width:600px){.video-wrapper iframe{height:230px;}}



/* =========================
   Breadcrumbs
   ========================= */
.pgs-breadcrumbs {
  margin: 16px 0 24px;
  font-size: 13px;
}
.pgs-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pgs-breadcrumb-item {
  color: var(--text-muted);
}
.pgs-breadcrumb-item a {
  color: var(--text);
  text-decoration: none;
}
.pgs-breadcrumb-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.pgs-breadcrumb-item + .pgs-breadcrumb-item:before {
  content: "/";
  margin: 0 4px;
  color: var(--text-muted);
}
.pgs-breadcrumb-item.current {
  color: var(--primary);
  font-weight: 600;
}

/* =========================
   Pagination
   ========================= */
.pgs-pagination {
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
}
.pgs-pagination ul {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.pgs-pagination li {
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.pgs-pagination a,
.pgs-pagination span {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
}
.pgs-pagination a:hover {
  background: var(--primary);
  color: #fff;
}
.pgs-pagination .current span,
.pgs-pagination .current {
  background: var(--primary);
  color: #fff;
}

/* =========================
   Archive / Search / Page / 404
   ========================= */
.archive-page .archive-header,
.search-page .archive-header,
.page-wrapper .page-header,
.not-found-page {
  margin-bottom: 24px;
}
.archive-title,
.page-title,
.not-found-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.archive-description,
.not-found-text {
  font-size: 14px;
  color: var(--text-muted);
}
.no-posts {
  text-align: center;
  color: var(--text-muted);
  padding: 30px 0;
}
.search-again {
  max-width: 400px;
  margin: 0 auto;
}
.search-again .search-form {
  display: flex;
  gap: 8px;
}
.search-again .search-field {
  flex: 1;
}
.search-again .search-submit {
  white-space: nowrap;
}
.pgs-page .page-content {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}
.not-found-page .btn.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}


/* Recommended Cards */
.recommend-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.recommend-card {
  background: #161b22;
  padding: 10px;
  border-radius: 12px;
  width: calc(33.33% - 10px);
  transition: .2s;
}

.recommend-card:hover {
  transform: translateY(-4px);
}

.rc-thumb img {
  width: 100%;
  border-radius: 10px;
}

.rc-title {
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
}
@media(max-width:768px){
  .recommend-card { width: calc(50% - 10px); }
}
@media(max-width:480px){
  .recommend-card { width: 100%; }
}

/* ===== Game Launcher Grid (Design C) ===== */

.recommend-launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.launcher-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #161b22;
  cursor: pointer;
  transition: .25s ease-in-out;
}

.launcher-card:hover {
  transform: translateY(-4px);
}

.lc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: .3s ease;
}

.launcher-card:hover .lc-thumb img {
  filter: brightness(70%);
}

.lc-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: .25s ease-in-out;
}

.launcher-card:hover .lc-title {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* === 5 Cards Single Row (Launcher Style) === */
.recommend-launcher-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.launcher-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 150px;
  background:#161b22;
}

.lc-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:10px;
}

.launcher-card:hover .lc-thumb img {
  filter: brightness(70%);
}

.lc-title {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:8px;
  background:linear-gradient(0deg, rgba(0,0,0,0.9), rgba(0,0,0,0));
  text-align:center;
  color:#fff;
  opacity:0;
  transform:translateY(15px);
  transition:.25s ease;
}

.launcher-card:hover .lc-title {
  opacity:1;
  transform:translateY(0);
}

@media(max-width:900px){
  .recommend-launcher-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:600px){
  .recommend-launcher-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:400px){
  .recommend-launcher-grid { grid-template-columns: repeat(1, 1fr); }
}

/* === Footer Full Width === */
.site-footer, .pgs-footer, footer, #footer {
  width:100% !important;
  max-width:none !important;
  border-radius:0 !important;
  margin:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* ==== LIKE BOX WRAPPER ==== */
.like-box {
  background:#161b22;
  border:1px solid rgba(255,255,255,0.08);
  padding:20px;
  border-radius:14px;
  margin-top:25px;
}

/* ==== Header with Heart ==== */
.like-header {
  font-size:18px;
  color:#fff;
  margin-bottom:15px;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}

.like-icon {
  color:#ff4d6d;
  font-size:20px;
}

/* ==== 5 item row ==== */
.like-grid {
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:12px;
}

.like-card {
  position:relative;
  overflow:hidden;
  border-radius:10px;
  height:150px;
  background:#0c1218;
  transition:.25s ease;
}

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

.like-card:hover .lc-thumb img {
  filter:brightness(70%);
}

.lc-title {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:8px;
  color:#fff;
  background:linear-gradient(0deg, rgba(0,0,0,0.9), rgba(0,0,0,0));
  opacity:0;
  transform:translateY(15px);
  transition:.25s ease;
  text-align:center;
  font-size:13px;
}

.like-card:hover .lc-title {
  opacity:1;
  transform:translateY(0);
}

/* Responsive */
@media(max-width:900px){
  .like-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:600px){
  .like-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:400px){
  .like-grid { grid-template-columns: 1fr; }
}

/* Responsive Adjustments */
@media(max-width:1200px){
  .like-grid { grid-template-columns: repeat(3, 226px) !important; }
}
@media(max-width:800px){
  .like-grid { grid-template-columns: repeat(2, 226px) !important; }
}
@media(max-width:500px){
  .like-grid { grid-template-columns: repeat(1, 226px) !important; justify-content:center; }
}

/* === Fixed Image Size for You May Like Box (154 x 205) === */
.like-card {
    height: 205px !important;
    width: 154px !important;
    max-width: 154px !important;
}

.like-grid {
    grid-template-columns: repeat(5, 154px) !important;
    justify-content: space-between;
}

.lc-thumb img {
    width: 154px !important;
    height: 205px !important;
    object-fit: cover !important;
    border-radius: 10px;
}

/* Responsive Adjustments */
@media(max-width:1200px){
  .like-grid { grid-template-columns: repeat(3, 154px) !important; }
}
@media(max-width:800px){
  .like-grid { grid-template-columns: repeat(2, 154px) !important; }
}
@media(max-width:500px){
  .like-grid { grid-template-columns: repeat(1, 154px) !important; justify-content:center; }
}


/* Search box styling */
.header-search-box{
    position:absolute;
    left:40px;
    top:20px;
    z-index:999;
}
.header-search-box .search-field{
    padding:6px 12px;
    border-radius:8px;
    border:1px solid #333;
    background:#111;
    color:#fff;
}

/* Footer full width */
.full-footer-wrapper{
    width:100% !important;
    margin:0 !important;
    padding:25px 0 !important;
    background:#0e141c !important;
    text-align:center;
}


/* unified footer and socials */
html, body {margin:0!important;padding:0!important;}
footer, .site-footer {
 width:100%!important;max-width:100%!important;
 background:linear-gradient(180deg,#0E141C,#111923)!important;
 padding:35px 0 20px!important;margin:0!important;border:none!important;border-radius:0!important;
 text-align:center!important;}
footer>div, .site-footer>div {max-width:100%!important;margin:0!important;padding:0!important;background:none!important;}

footer::before,.site-footer::before{
 content:"";display:block;width:100%;height:1px;background:rgba(255,255,255,0.08);margin-bottom:25px;}

.footer-social{display:flex;justify-content:center;gap:14px;margin-bottom:18px;margin-top:-5px;}
.footer-social .fs{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
 font-size:20px;color:#fff;transition:.25s;}
.fs.wa{background:#25D366;} .fs.tg{background:#0088cc;} .fs.fb{background:#1877F2;}
.fs.dc{background:#5865F2;} .fs.yt{background:#c30000;}
.footer-social .fs:hover{transform:translateY(-5px);box-shadow:0 5px 18px rgba(0,0,0,.35);}

.search-toggle {
    width:45px;height:45px;border-radius:50%;
    background:#111827;border:2px solid #4b5563;
    display:flex;justify-content:center;align-items:center;
    cursor:pointer;position:absolute;left:40px;top:20px;z-index:1000;
}
.search-toggle i{color:#fff;font-size:18px;}


/* -------------------- NEW SEARCH TOGGLE FIX -------------------- */

.search-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1f2937;
    border: 2px solid #4b5563;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 1000;

    transition: all 0.25s ease;
}

.search-toggle:hover {
    background: #374151;
    border-color: #6b7280;
}

.search-toggle i {
    font-size: 18px;
    color: white;
}

.header-search-box {
    display: none;
    position: absolute;
    top: 60px;
    left: 15px;
    width: 260px;
    z-index: 999;
}

.header-search-box input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    border: 1px solid #4b5563;
    outline: none;
}



/* ==== COMMENTS BOX (PRO) ==== */

.pgs-comments-wrapper {
    background: #161b22;
    padding: 25px;
    margin-top: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.pgs-comments-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #ffffff;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* hide default WP notes / logged-in text */
.comment-notes,
.logged-in-as {
    display: none !important;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pgs-comment {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 14px 0;
}

.pgs-comment:last-child {
    border-bottom: none;
}

.pgs-comment-body {
    display: flex;
    gap: 12px;
}

.pgs-comment-avatar img {
    border-radius: 50%;
}

.pgs-comment-main {
    flex: 1;
}

.pgs-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.pgs-comment-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.pgs-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.pgs-badge-admin {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fecaca;
}

.pgs-badge-owner {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.6);
    color: #bfdbfe;
}

.pgs-badge-member {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

.pgs-badge-vip {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    border-color: rgba(250, 204, 21, 0.9);
    color: #111827;
}

.pgs-comment-date {
    font-size: 12px;
    color: #9ca3af;
    margin-right: auto;
}

.pgs-comment-content {
    font-size: 14px;
    color: #e5e7eb;
    margin-top: 2px;
}

.pgs-comment-awaiting {
    display: block;
    font-size: 12px;
    color: #fbbf24;
    margin-bottom: 4px;
}

.pgs-comment-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
}

.pgs-comment-reply a {
    color: #60a5fa;
}

.pgs-comment-reply a:hover {
    text-decoration: underline;
}

/* Like button */
.pgs-comment-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 3px 10px;
    font-size: 12px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all .2s;
}

.pgs-comment-like i {
    font-size: 13px;
}

.pgs-comment-like--active,
.pgs-comment-like:hover {
    background: #22c55e;
    border-color: #16a34a;
    color: #0f172a;
}

/* Comment navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #9ca3af;
}

.no-comments {
    margin-top: 10px;
    font-size: 13px;
    color: #9ca3af;
}

/* ==== COMMENT FORM ==== */

.pgs-comment-form-wrapper {
    margin-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 18px;
}

.pgs-comment-form .pgs-form-row {
    margin-bottom: 12px;
}

.pgs-comment-form .pgs-input,
.pgs-comment-form textarea.pgs-input {
    width: 100%;
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.5);
    padding: 11px 14px;
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.pgs-comment-form .pgs-input:focus,
.pgs-comment-form textarea.pgs-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59,130,246,0.5);
    background: #0d1117;
}

.pgs-comment-form textarea.pgs-input {
    min-height: 140px;
    resize: vertical;
}

/* Submit button from comment_form */
.pgs-comment-form input[type="submit"],
.pgs-comment-form .pgs-submit-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 4px;
}

.pgs-comment-form input[type="submit"]:hover,
.pgs-comment-form .pgs-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Emoji bar */
.pgs-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: flex-end;
}

.pgs-emoji {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
    border: 1px solid rgba(148,163,184,0.6);
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.pgs-emoji:hover {
    background: #111827;
    transform: translateY(-1px);
}

/* Quick login box */
.pgs-quick-login {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15,23,42,0.9);
    border: 1px dashed rgba(148,163,184,0.6);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    font-size: 13px;
    color: #e5e7eb;
}

.pgs-quick-login-btn,
.pgs-quick-register-btn {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    color: #ffffff;
}

.pgs-quick-login-btn {
    background: #3b82f6;
}

.pgs-quick-register-btn {
    background: #10b981;
}

.pgs-quick-login-btn:hover {
    background: #2563eb;
}

.pgs-quick-register-btn:hover {
    background: #059669;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .pgs-comment-body {
        flex-direction: row;
    }
    .pgs-comments-wrapper {
        padding: 18px;
    }
}

/* ===== FIX COMMENT GAP ===== */
.pgs-comment { padding-bottom:8px !important; margin-bottom:8px !important; }
.pgs-comment-body { align-items:flex-start !important; }
.pgs-comment-content p:empty { display:none !important; }
.pgs-comment-content p { margin-bottom:4px !important; }
.pgs-comment-footer { margin-top:4px !important; }
.pgs-comment-main > div { margin-bottom:0 !important; padding-bottom:0 !important; }

/* ===== FINAL REMOVE COMMENT BACKGROUND + LINE ===== */
.pgs-comment,
.comment,
.comment-list li {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pgs-comment-body,
.pgs-comment-main,
.pgs-comment-content,
.pgs-comment-footer {
    background: transparent !important;
}

.pgs-comment:before,
.pgs-comment:after,
.comment:before,
.comment:after {
    display: none !important;
}

/* === RAISE COMMENT LIKE BUTTON (CHOICE C) === */
.pgs-comment-footer {
    margin-top: -12px !important;
}

/* === HIDE FOOTER ONLY ON SINGLE POSTS === */
.single footer,
.single .site-footer,
.single #footer {
    display: none !important;
}

/* FORCE REMOVE full-footer-wrapper ANYWHERE */
.full-footer-wrapper {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ===== Gamers Unlimited Footer ===== */

.gu-footer {
    width: 100%;
    background: #0d0f1a;
    padding: 25px 0 10px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.gu-footer-top {
    margin-bottom: 20px;
}

.gu-social {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #1a1d2b;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    font-size: 18px;
    transition: 0.3s;
    color: #fff;
}

.gu-social:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}

/* Middle Text */
.gu-footer-middle {
    margin: 10px 0;
    color: #ccc;
    font-size: 14px;
}

.gu-footer-middle strong {
    color: #6d8aff;
    margin-left: 6px;
}

/* Links */
.gu-footer-links {
    margin: 15px 0;
}

.gu-footer-links a {
    color: #ddd;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
}
.gu-footer-links a:hover {
    color: #6d8aff;
}

/* Bottom */
.gu-footer-bottom {
    margin-top: 10px;
    color: #909090;
    font-size: 13px;
}

/* ===== Pre-Footer Columns (Latest / Categories / Hot) ===== */

.gu-pre-footer {
    width:100%;
    background:#050814;
    padding:30px 0 20px;
    border-top:1px solid rgba(255,255,255,0.05);
    border-bottom:1px solid rgba(255,255,255,0.06);
    margin-top:40px;
}

.gu-pre-inner {
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.gu-pre-col {
    text-align:left;
}

.gu-pre-title {
    font-size:16px;
    color:#e5e7eb;
    margin-bottom:10px;
    font-weight:600;
    border-bottom:1px solid rgba(148,163,184,0.4);
    padding-bottom:6px;
}

.gu-pre-list {
    list-style:none;
    margin:0;
    padding:0;
}

.gu-pre-list li {
    margin-bottom:6px;
}

.gu-pre-list a {
    color:#9ca3af;
    font-size:14px;
    text-decoration:none;
    transition:.2s;
}

.gu-pre-list a:hover {
    color:#38bdf8;
}

/* Responsive */
@media (max-width: 900px){
    .gu-pre-inner {
        grid-template-columns:1fr 1fr;
    }
}
@media (max-width: 600px){
    .gu-pre-inner {
        grid-template-columns:1fr;
    }
    .gu-pre-col {
        text-align:right;
    }
}

/* === Trending Image Size Fix === */
.pgs-trending-box .lc-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* Match Trending icon color to You May Like */
.pgs-trending-box .like-header .like-icon {
    background: #e11d48 !important;
}

/* comment footer fix */
.pgs-comment-footer {
    display:flex!important;
    align-items:center;
    gap:12px;
    margin-top:10px;
    font-size:15px;
}
.pgs-separator {color:#6b7280;font-weight:bold;margin:0 4px;}


/* === COMMENT REPLY UNDER COMMENT + FIX LIKE BTN === */
.pgs-comment-footer {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}
.pgs-comment-reply {
    margin-right: 10px;
}
.children {
    margin-right: 50px;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding-right: 15px;
}




/* === FIX: Show comment like + reply footer on single posts (override .single footer hide rule) === */
.single footer.pgs-comment-footer {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
}

/* Facebook-like layout: Like · Reply */
.single footer.pgs-comment-footer .pgs-comment-like {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #9ca3af !important;
    font-size: 13px;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.single footer.pgs-comment-footer .pgs-comment-like i {
    font-size: 14px;
}

.single footer.pgs-comment-footer .pgs-comment-like .pgs-like-count {
    font-size: 13px;
}

.single footer.pgs-comment-footer .pgs-comment-like:hover,
.single footer.pgs-comment-footer .pgs-comment-like.pgs-comment-like--active {
    color: #22c55e !important;
    background: transparent !important;
}

.single footer.pgs-comment-footer .pgs-separator {
    color: #6b7280;
    margin: 0 4px;
}

.single footer.pgs-comment-footer .pgs-comment-reply a {
    color: #60a5fa !important;
    text-decoration: none;
    font-size: 13px;
}

.single footer.pgs-comment-footer .pgs-comment-reply a:hover {
    text-decoration: underline;
}

/* Nested replies indentation (Facebook-like) */
.comment-list .children {
    margin-right: 32px;
    border-right: 1px solid rgba(148,163,184,0.35);
    padding-right: 14px;
}



/* === FORCE SHOW COMMENT FOOTER (FINAL OVERRIDE) === */
.pgs-comment-footer {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    margin-top: 8px !important;
}


/* === THREADS VISUAL STYLE (REDDIT / FACEBOOK STYLE) ==== */
.comment-list .children {
    margin-right: 40px !important;
    padding-right: 15px !important;
    border-right: 2px solid rgba(255,255,255,0.08);
    margin-top: 10px;
}
.comment-list .children .children {
    margin-right: 40px !important;
    border-right: 2px solid rgba(255,255,255,0.06);
}
.comment-list li {
    position: relative;
}
.comment-list .children:before {
    content: "";
    position: absolute;
    right: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.05);
}
.pgs-comment {
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
}
.comment-list .children .pgs-comment-body {
    opacity: 0.95;
    transform: translateX(-5px);
}

/* THREAD VISUAL FIX */
.comment-list .children{margin-right:40px;border-right:2px solid rgba(255,255,255,0.08);padding-right:15px;}
.comment-list .children .children{margin-right:60px;}
/* =========================
   Threaded Comments Visual
   ========================= */

/* نشيل أي margin غريب من القائمة */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* قائمة الـ replies جوه التعليق */
.comment-list .children {
    list-style: none;
    margin: 6px 0 0;
    padding-right: 34px;        /* إزاحة لليسار في RTL */
    border-right: 2px solid rgba(55,65,81,0.5); /* خط الشجرة */
}

/* كل تعليق جوه الثريد */
.comment-list .children .pgs-comment {
    margin-top: 10px;
}

/* جسم التعليق جوه الثريد */
.comment-list .children .pgs-comment-body {
    position: relative;
    padding-right: 6px;
}

/* الكيرف الصغير اللي موصل من الأب للابن */
.comment-list .children .pgs-comment-body::before {
    content: "";
    position: absolute;
    top: -4px;
    right: -26px;
    width: 22px;
    height: calc(100% + 8px);
    border-right: 2px solid rgba(55,65,81,0.5);
    border-bottom: 2px solid rgba(55,65,81,0.5);
    border-radius: 0 0 0 12px;
}

/* تصغير الأفاتار في الردود */
.comment-list .children .pgs-comment-avatar img {
    width: 36px;
    height: 36px;
}

/* شوية ضبط للمسافات */
.comment-list .children .pgs-comment-footer {
    margin-top: 4px !important;
    font-size: 13px;
}
/* ICON LOOP ANIMATION */
.pgs-section-title i {
    margin-right: 6px;
    font-size: 1.25em;
    display: inline-block;
    animation: guLoopIcon 4s ease-in-out infinite;
    transform-origin: center;
}
@keyframes guLoopIcon {
    0%   { transform: translateY(0) scale(1); filter: brightness(1); }
    5%   { transform: translateY(-4px) scale(1.08); filter: brightness(1.4); }
    10%  { transform: translateY(2px) scale(0.96); filter: brightness(1.2); }
    15%  { transform: translateY(-2px) scale(1.03); filter: brightness(1.1); }
    20%  { transform: translateY(0) scale(1);     filter: brightness(1); }
    100% { transform: translateY(0) scale(1);     filter: brightness(1); }
}


/* =========================
   Dynamic Download Servers Tabs
   ========================= */

.gu-download-wrapper {
  margin-top: 25px;
}

/* tabs row */
.gu-download-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  direction: ltr;
}

/* single tab button */
.gu-download-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: all 0.22s ease-in-out;
  text-align: left;
}

.gu-download-tab .gu-server-logo img {
  height: 33px;
  display: block;
}

.gu-download-tab.active,
.gu-download-tab:hover {
  background: linear-gradient(135deg, var(--primary), #1976d2);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(33,150,243,0.35);
}

/* panels wrapper */
.gu-download-panels {
  margin-top: 8px;
}

/* panel per server */
.gu-download-panel {
  display: none;
}

.gu-download-panel.active {
  display: block;
}

/* parts grid (desktop) */
.gu-download-panel .gu-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  direction: ltr;
  text-align: left;
}

/* single part tile */
.gu-download-part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.gu-download-part span.gu-download-size {
  font-size: 14px;
  opacity: .8;
}

/* hover */
.gu-download-part:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 12px rgba(0, 140, 255, 0.35);
  transform: translateY(-2px);
}

/* responsive tabs label width */
@media (max-width: 600px) {
  .gu-download-tab {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* mobile: part full width, one per row */
@media (max-width: 768px) {
  .gu-download-panel .gu-download-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gu-download-part {
    width: 100%;
    font-size: 16px;
    padding: 14px;
  }

  .pgs-download-box,
  .gu-download-wrapper {
    border: none;
    box-shadow: none;
    padding: 10px;
    margin: 0;
  }
}
/* =========================================================
   GLOBAL UNIFIED LAYOUT – ALL PAGES
   ========================================================= */

/* Desktop – كل الصفحات نفس العرض ومتمركزة */
@media (min-width: 992px) {
  .container-custom,
  .site-content,
  #content,
  .wrap {
    max-width: 1300px !important;   /* عرض ثابت احترافي */
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box;
  }
}

/* Tablets */
@media (max-width: 991px) and (min-width: 601px) {
  .container-custom,
  .site-content,
  #content,
  .wrap {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  html, body {
    overflow-x: hidden !important;
  }

  .container-custom,
  .site-content,
  #content,
  .wrap {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {

  /* خلي كل جزء part في صف لوحده */
  .parts-grid,
  .download-parts,
  .parts-wrapper {
      display: grid !important;
      grid-template-columns: 1fr !important; /* عمود واحد */
      gap: 12px !important; /* مسافة بين البلوكات */
  }

  /* ضبط شكل البلوكات نفسها */
  .part-item,
  .download-item,
  .part-box {
      width: 100% !important;
      border-radius: 10px !important;
      padding: 14px !important;
      margin: 0 auto !important;
  }
}/* ===========================
   MOBILE DOWNLOAD FIX
   =========================== */
/* ============================================================
   🔧 MINIMAL CLEAN FIX — Download Box + Mobile Layout
   ============================================================ */

/* إزالة أي override بيبوظ الداونلود */
.gu-download-grid {
    all: unset;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    direction: ltr;
    text-align: left;
}

/* شكل عناصر التحميل */
.gu-download-part {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 15px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: .25s ease;
}

.gu-download-part:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 10px rgba(0,140,255,0.25);
    transform: translateY(-2px);
}

/* ============================================================
   📱 MOBILE FIX — كل PART في صف واحد
   ============================================================ */
@media (max-width: 768px) {

    .gu-download-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .gu-download-part {
        width: 100% !important;
        border-radius: 10px !important;
        padding: 14px !important;
        font-size: 15px !important;
    }

    .pgs-download-box,
    .gu-download-wrapper {
        border: none !important;
        padding: 10px !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
}

/* ============================================================
   🚫 منع أي أكواد قديمة من تأثير سلبي
   ============================================================ */

/* حذف أي Flex غلط كان مضاف */
.gu-download-grid {
    flex-direction: initial !important;
    flex-wrap: initial !important;
    justify-content: initial !important;
}

/* منع الكود اللي كان بيخلي كل شيء LTR غصب */
.gu-download-grid .gu-download-part {
    direction: ltr !important;
    text-align: left !important;
}

/* ==== RESTORE THE DOWNLOAD BUTTON BLUE STYLE ==== */

.download-toggle-btn {
    width: 100% !important;
    background: linear-gradient(90deg, #007bff, #00c6ff) !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-bottom: 18px !important;
    text-align: center !important;
    display: block !important;
    transition: 0.2s ease !important;
}

.download-toggle-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}

/* =========================
   Header Favorites + Actions
   ========================= */
@media (min-width: 768px) {
  .site-header .col-md-9 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
  }
}

.gu-header-fav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111827;
  border: 1px solid #1f2937;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.gu-header-fav-link i {
  font-size: 15px;
  color: #f97373;
}

.gu-header-fav-link .gu-fav-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Single Post Favorite Button
   ========================= */
.single-post-actions {
  margin-top: 18px;
  text-align: center;
}

.gu-fav-toggle {
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.7);
  background: rgba(239,68,68,0.08);
  color: #fecaca;
  padding: 7px 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.gu-fav-toggle i {
  font-size: 15px;
}

.gu-fav-toggle:hover {
  background: rgba(239,68,68,0.16);
  box-shadow: 0 0 0 1px rgba(239,68,68,0.45);
  transform: translateY(-1px);
}

.gu-fav-toggle.is-fav {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(248,113,113,0.45);
}

.gu-fav-toggle.is-fav i {
  color: #ffffff;
}

.gu-fav-label {
  letter-spacing: 0.02em;
}

/* Make sure favorite button doesn't break layout on small screens */
@media (max-width: 480px) {
  .single-post-actions {
    margin-top: 14px;
  }
  .gu-fav-toggle {
    width: 100%;
    justify-content: center;
  }
}
.gu-trending-bg {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 50px 0;
    background: linear-gradient(90deg, #0d1117, #2ea8dc);
    z-index: 1;
}
/* Hide all view counters everywhere */
.pgs-card-meta,
.post-views,
.post-views-count,
.views,
.pgs-views,
.pgs-card-meta i.fa-eye,
.pgs-card-meta .fa-eye {
    display: none !important;
}
/* Buy Now main wrapper */
.buy-now-wrapper {
    text-align: center;
    margin: 20px 0 10px;
}

/* Main Buy Now button */
.buy-now-main-btn {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
}

.buy-now-main-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    opacity: 0.95;
}

/* Options container */
.buy-now-options {
    display: none;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* لما نفتحها بالـ JS */
.buy-now-options.show {
    display: flex;
}

/* Small contact buttons */
.buy-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* Colors per platform */
.buy-whatsapp {
    background: #25D366;
    color: #fff;
}

.buy-telegram {
    background: #0088cc;
    color: #fff;
}

.buy-discord {
    background: #5865F2;
    color: #fff;
}

.buy-now-btn i {
    font-size: 16px;
}
/* ضبط صندوق الخصم */
.coupon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#discountBuyBtn {
    display: none !important;
    width: 100%;
    max-width: 260px;
    margin-top: 10px;
    white-space: nowrap;
}

#discountBuyBtn {
    width: 100%;
    max-width: 260px;
    margin-top: 10px;
    display: none !important;
}
.tab-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap !important;
}

.tab-btn {
    flex: 1;
    white-space: nowrap;
}
/* موبايل فقط */
@media (max-width: 600px) {

  .tab-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tab-btn {
    width: 100%;
    font-size: 14px !important;
    padding: 12px 5px !important;
  }

  .tab-btn i {
    font-size: 14px !important;
  }

  .tab-buttons .tab-btn span {
    white-space: nowrap;
  }
}
