/* ================== ROOT VARIABLES ================== */
:root {
  --primary: #6a0dad;
  --primary-soft: #e91e63;
  --accent-cyan: #00bfff;
  --neon-cyan: #22d3ee;
  --neon-pink: #fb37ff;
  --bg-body: #020617;
  --card-bg: #0b1120;
  --card-bg-soft: rgba(15, 23, 42, 0.96);
  --border-soft: rgba(148, 163, 184, 0.25);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
}

/* ================== أساسيات عامة ================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* إصلاح النصوص الافتراضية */
p {
  margin-bottom: 0.6rem;
}

/* ================== الروابط ================== */
a {
  color: var(--accent-cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* ================== الأزرار العامة ================== */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff !important;
  border: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(233, 30, 99, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-gradient:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(233, 30, 99, 0.6);
}

.btn-outline-light {
  border-radius: 999px;
}

/* ================== كروت عامة ================== */
.card {
  background: var(--card-bg-soft);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.card-title {
  color: var(--accent-cyan);
}

/* نصوص البطاقات */
.card .card-text,
.pcard-text {
  color: #ffffff;
}

/* ================== سلايدر (لو استخدم في صفحات تانية) ================== */
.carousel-item img {
  filter: brightness(75%);
}

/* ================== أيقونات السوشال ================== */
.social-icon {
  font-size: 2.3rem;
  margin: 10px;
  transition: 0.3s ease;
  cursor: pointer;
  color: var(--accent-cyan);
}
.social-icon:hover {
  transform: scale(1.2);
  color: var(--accent-cyan) !important;
}

/* ================== أقسام المميزات / لماذا تختارنا ================== */
.feature-box {
  background: var(--card-bg-soft);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  transition: 0.3s;
}
.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(106, 13, 173, 0.45);
}

.section-title {
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ================== كروت الألعاب / العروض (لو ما اتعرّفت inline) ================== */
.game-card,
.offer-card {
  background: var(--card-bg-soft);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card:hover,
.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.game-img,
.offer-img {
  height: 150px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

@media (max-width: 576px) {
  .game-img,
  .offer-img {
    height: 120px;
  }
}

/* ================== contact card (تواصل معنا) ================== */
.contact-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
}

/* ================== تسجيل الدخول السريع ================== */
.login-buttons .btn {
  min-width: 160px;
}

/* ================== أنيميشن Scroll (Fade / Slide) ================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.7s ease-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-slide {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}
.fade-slide.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.7s ease-out;
}
.fade-slide-left.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.7s ease-out;
}
.fade-slide-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* ================== زر رجوع لأعلى ================== */
#topBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  display: none;
  z-index: 9999;
  transition: 0.3s;
}
#topBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.9);
}

/* ================== الفوتر ================== */
footer {
  background: #020617;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}
footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================== واتساب فلووت (لو استخدمته) ================== */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: #25D366;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 9999;
}

/* ================== Login Box ثابت (لو المستخدم ما مسجل) ================== */
.login-box {
  position: fixed;
  bottom: 80px;
  right: 18px;
  background: rgba(15,23,42,0.98);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.95);
  border: 1px solid var(--border-soft);
  z-index: 9998;
  min-width: 180px;
}
.login-box p {
  font-size: 0.85rem;
  color: #e5e7eb;
}

@media (max-width: 576px) {
  .login-box {
    right: 50%;
    transform: translateX(50%);
    bottom: 75px;
  }
}

/* ================== تحسينات بسيطة للـ Navbar الافتراضية (لو استخدمت غير الهيدر النيون) ================== */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}
/* ====== جرس الإشعارات ====== */
.notif-bell-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #e5e7eb !important;
  font-size: 1.2rem;
  padding: 4px 6px;
}

.notif-bell-btn:hover {
  transform: translateY(-1px);
  color: #fff !important;
}

/* النقطة الحمرا */
.notif-dot {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,0.9);
}

/* رقم الإشعارات */
.notif-count {
  position: absolute;
  top: -4px;
  left: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* قائمة الإشعارات */
.notif-dropdown {
  position: absolute;
  top: 130%;
  left: 0;
  transform: translateX(-10%);
  min-width: 240px;
  background: rgba(15,23,42,0.97);
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
  padding: 6px 0;
  display: none; /* تظهر بالـ JS */
  z-index: 10000;
}

.notif-dropdown-header {
  padding: 6px 10px;
  font-size: 0.85rem;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(55,65,81,0.8);
}

.notif-item {
  display: block;
  padding: 8px 10px;
  font-size: 0.82rem;
  text-decoration: none;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(31,41,55,0.8);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: rgba(55,65,81,0.9);
}

.notif-item.empty {
  color: #9ca3af;
}

.notif-title {
  font-weight: 600;
}
.notif-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.notif-footer {
  padding: 6px 10px 4px;
  font-size: 0.78rem;
  text-align: left;
}
.notif-footer a {
  color: #38bdf8;
  text-decoration: none;
}
.notif-footer a:hover {
  color: #0ea5e9;
}

