/*
Theme Name: Gamezo
Theme URI: https://gamezo.com
Description: قالب احترافي مخصص لمواقع تحميل الألعاب والتطبيقات مع نظام عداد تنازلي دائري و3 صفحات للتحميل.
Author: 3laaelshekh & Gamezo
Version: 1.1.5
License: GNU General Public License v2 or later
Text Domain: gamezo
*/

:root {
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --color-primary: #6366f1; /* بنفسجي ملكي */
  --color-purple: #8b5cf6; /* أزرق نيوني */
  --color-primary-light: #f5f3ff;
  --color-green: #10b981; 
  --color-orange: #ff9800; 
  --color-orange-hover: #e68a00;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-purple));
  border-radius: 4px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  font-family: 'Tajawal', sans-serif;
  margin: 0;
  padding: 0;
  direction: rtl;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* الهيدر الزجاجي الأنيق */
header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}
.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}
.header-top {
  display: flex;
  justify-content: center; 
  align-items: center;
  width: 100%;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--color-primary);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* شريط البحث */
.search-wrapper {
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  background-color: #f1f5f9;
  border: 1px solid transparent;
  padding: 12px 45px 12px 20px;
  border-radius: 30px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}
.search-input:focus {
  background-color: var(--bg-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}

/* أزرار الأقسام الدائرية السريعة */
.nav-scroll {
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  padding: 4px 0;
  scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar {
  display: none;
}
.nav-pill {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.nav-pill.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(99, 102, 241, 0.2);
}

/* الصفحة الرئيسية */
.homepage-hero {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  box-sizing: border-box;
}
.homepage-hero h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-dark);
  margin: 0 0 12px 0;
}
.homepage-hero p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 24px auto;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-btn {
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.hero-btn-blue { background-color: var(--color-primary); color: white; }
.hero-btn-orange { background-color: var(--color-orange); color: white; }
.hero-btn-gray { background-color: #f1f5f9; color: var(--text-dark); border: 1px solid var(--border-color); }

.home-section-title {
  text-align: center;
  margin: 40px 0 25px 0;
}
.home-section-title h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.home-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 25%; right: 25%;
  height: 3px; background-color: var(--color-primary);
  border-radius: 2px;
}
.home-section-title p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* بطاقة الكارت الرئيسية ثلاثية الأعمدة الفاخرة */
.home-modern-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.home-modern-img {
  position: relative;
  padding-top: 56.25%;
}
.home-modern-img img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.home-modern-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.home-modern-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.home-modern-label {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.home-modern-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 10px 0;
  line-height: 1.5;
  height: 45px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.home-modern-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
  height: 60px;
  overflow: hidden;
}
.home-modern-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* الكروت الأربعة الفاخرة للتصنيفات */
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 40px 0;
}
@media (min-width: 768px) {
  .home-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.home-cat-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}
.home-cat-box:hover {
  transform: translateY(-3px);
}
.home-cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.home-cat-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

/* تنسيق بطاقات الألعاب والتطبيقات المعتمد */
.main-wrapper {
  max-width: 1100px;
  margin: 30px auto !important; /* ضمان توسط الصفحة بالكامل للكمبيوتر والجوال */
  padding: 0 16px;
  box-sizing: border-box;
  min-height: 400px;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important; 
  gap: 12px !important;
}
@media (min-width: 768px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* كروت الألعاب */
.app-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.card-img-holder {
  position: relative;
  padding-top: 56.25%;
}
.card-img-holder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-platform {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.card-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}
.card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  line-height: 1.5;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-download-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: white;
  padding: 10px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* كروت الأخبار عريضة بالكامل */
.news-card {
  grid-column: 1 / -1 !important; 
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  box-sizing: border-box;
}
.news-img-box {
  position: relative;
  padding-top: 56.25%; 
}
.news-img-box img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.news-details {
  padding: 24px;
}
.news-pub-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}
.news-card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  line-height: 1.4;
}
.news-card-title a:hover {
  color: var(--color-primary);
}
.news-card-snippet {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.news-archive-header {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
  grid-column: 1 / -1;
}
.news-archive-header h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-primary);
  margin: 0 0 8px 0;
}
.news-archive-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* صفحة المقال وبطاقة البيانات */
.article-container {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}
.large-art-thumb {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 15px;
}
.category-pill-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}
.category-pill {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
}
.article-main-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
  text-align: center;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

/* تفاصيل الخصائص */
.game-specs-header {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 15px auto;
  width: fit-content;
}
.specs-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.spec-meta-badge {
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-circle-logo-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.game-circle-logo {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* شبكة كروت معلومات اللعبة الأربعة الملونة */
.info-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.info-box-card {
  border-radius: 16px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
}
.box-blue {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.box-pink {
  background-color: #fdf2f8;
  border-color: #fbcfe8;
  color: #9d174d;
}
.box-green {
  background-color: #f0fff4;
  border-color: #c6f6d5;
  color: #22543d;
}
.box-orange {
  background-color: #fffaf0;
  border-color: #ffe3c3;
  color: #dd6b20;
}
.box-info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.box-info-label {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 700;
}
.box-info-val {
  font-size: 14px;
  font-weight: 900;
}
.box-info-icon {
  width: 36px;
  height: 36px;
  background-color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.gamezo-ad-placeholder {
  width: 100%;
  background-color: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  margin: 15px 0;
  box-sizing: border-box;
}

/* العداد الدائري */
.timer-box-layout {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin: 30px 0;
}
.timer-box-layout h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dark);
}
.timer-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.circular-timer-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circular-timer-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.timer-bg-circle {
  fill: none;
  stroke: var(--color-primary-light);
  stroke-width: 6;
}
.timer-progress-circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283; 
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.circular-timer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.circular-timer-text span:first-child {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}
.timer-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.go-to-download-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
  margin-top: 15px;
  border: none;
  cursor: pointer;
}

/* صفحة التوجيه الثالثة */
.page3-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.page3-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.progress-container {
  width: 100%;
  background-color: #f1f5f9;
  height: 10px;
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-purple));
  width: 0%;
  border-radius: 10px;
  transition: width 1s linear;
}
.page3-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px 0;
}
.download-orange-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 14px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}
.download-orange-btn:hover {
  background: linear-gradient(135deg, #ea580c, #ca8a04);
}
.safety-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.safety-badge {
  border-radius: 10px;
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
}
.safety-green {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.safety-yellow {
  background-color: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.safety-red {
  background-color: #fdf2f8;
  border-color: #fbcfe8;
  color: #b91c1c;
}

.page3-nav-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.p3-btn-blue {
  background-color: var(--color-primary);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}
.p3-btn-blue.btn-disabled {
  pointer-events: none !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
.p3-btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* زر الصعود للأعلى */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* صندوق التعليقات الفاخر */
.comments-card-layout {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
  box-sizing: border-box;
}

#respond {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.comment-reply-title {
  font-size: 20px !important;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 20px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-notes {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 25px !important;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: right;
}

#commentform textarea {
  width: 100%;
  min-height: 120px;
  background-color: var(--bg-body) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 15px !important;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
}

#commentform input[type="text"], 
#commentform input[type="email"], 
#commentform input[type="url"] {
  width: 100%;
  background-color: var(--bg-body) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 12px 15px !important;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  margin-bottom: 15px !important;
}

#commentform input:focus, #commentform textarea:focus {
  background-color: var(--bg-white) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

#commentform input[type="submit"] {
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple)) !important;
  color: white !important;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 30px !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
}

/* الفوتر البسيط المطور */
footer {
  background-color: #0b0f19 !important;
  color: #94a3b8 !important;
  padding: 40px 16px !important;
  margin-top: 50px;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.footer-social-wrap {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.footer-instagram-btn, .footer-telegram-btn {
  width: 44px;
  height: 44px;
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 18px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.3s ease !important;
}

.footer-instagram-btn:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(214, 36, 159, 0.4) !important;
  transform: scale(1.1);
}

.footer-telegram-btn:hover {
  background: #0088cc !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4) !important;
  transform: scale(1.1);
}

.footer-copyright {
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-white) !important;
  margin-bottom: 15px;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  color: #94a3b8 !important; 
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--bg-white) !important;
}

/* درع إخفاء صارم كلياً لمنع ظهور صفحة التحميل الثالثة نهائياً داخل صفحة المقال الثانية */
.page-3-layout {
  display: none !important;
}

/* إظهار صفحة التحميل الثالثة حصراً وفقط عند الانتقال الفعلي وإضافة كلاس view-p3 */
body.view-p3 .page-3-layout {
  display: block !important;
}

/* إخفاء التعليقات وصفحة المقال بالكامل وبشكل صارم في صفحة التحميل الثالثة */
body.view-p3 .comments-card-layout, 
body.view-p3 #respond, 
body.view-p3 #commentform, 
body.view-p3 .comment-respond,
body.view-p3 #blogger-comments-holder,
body.view-p3 .page-2-content {
  display: none !important;
}
/* -----------------------------------------
   تنسيق الأزرار الثنائية المتجاورة (Screenshot)
----------------------------------------- */
.page3-nav-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important; /* فرض ظهور الزرين جنباً إلى جنب بنسبة 50% */
  gap: 12px !important;
  margin-top: 30px;
}

.p3-btn-blue {
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple)) !important;
  color: white !important;
  padding: 14px 20px !important;
  border-radius: 15px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  border: none !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
  transition: all 0.3s ease;
}

.p3-btn-blue.btn-disabled {
  pointer-events: none !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.p3-btn-outline {
  background-color: var(--bg-white) !important;
  border: 2px solid var(--color-primary) !important;
  color: var(--color-primary) !important;
  padding: 12px 20px !important;
  border-radius: 15px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.p3-btn-outline:hover {
  background-color: var(--color-primary-light) !important;
}