* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #07050d;
  color: #f3e8ff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* إضاءات خلفية بنفسجية غامضة */
.bg-glow {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(7, 5, 13, 0) 70%);
  pointer-events: none;
  z-index: -1;
}
.top-glow { top: -150px; right: -100px; }
.bottom-glow { bottom: -150px; left: -100px; }

/* الشريط العلوي */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 7%;
  background: rgba(13, 9, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  position: sticky;
  top: 0;
  z-index: 120;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-btn {
  background: #140d26;
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.25s;
}
.menu-btn:hover {
  background: #6d28d9;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 900;
  text-decoration: none;
}
.brand-ar { color: #ffffff; text-shadow: 0 0 15px rgba(168, 85, 247, 0.6); }
.brand-divider { color: #7c3aed; font-weight: 400; }
.brand-en { color: #a855f7; letter-spacing: 3px; font-size: 1.25rem; }

.cart-btn {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #fff;
  padding: 8px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  transition: 0.3s;
}
.cart-btn:hover {
  background: #7c3aed;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.cart-badge {
  background: #a855f7;
  color: #07050d;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* القائمة الجانبية للألعاب */
.side-menu {
  position: fixed;
  top: 0;
  right: -360px;
  width: 330px;
  max-width: 88vw;
  height: 100vh;
  background: #0d0818;
  border-left: 1px solid rgba(168, 85, 247, 0.35);
  z-index: 250;
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.85);
}
.side-menu.open { right: 0; }

.side-menu-header {
  padding: 20px;
  border-bottom: 1px solid #21163b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-menu-header h3 { font-size: 1.1rem; color: #e9d5ff; }

.menu-list {
  list-style: none;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item-btn {
  width: 100%;
  background: #140d26;
  border: 1px solid #241842;
  color: #f3e8ff;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition: 0.2s;
}
.menu-item-btn:hover {
  border-color: #9333ea;
  background: #1d1236;
}
.menu-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #231642;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
}
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* واجهة الترحيب */
.hero {
  text-align: center;
  padding: 50px 20px 28px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(to left, #ffffff, #c084fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: #a89bc4; font-size: 1rem; line-height: 1.65; }

/* عناوين الأقسام */
.section-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #f3e8ff;
  margin-bottom: 22px;
}

/* شبكة الألعاب */
.games-section {
  padding: 15px 7% 20px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}
.game-tile {
  background: linear-gradient(180deg, #140d26 0%, #0c0817 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.25s;
}
.game-tile:hover {
  transform: translateY(-4px);
  border-color: #a855f7;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.3);
}
.game-cover {
  width: 100%;
  height: 105px;
  border-radius: 12px;
  background: #1b1133;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  margin-bottom: 10px;
  overflow: hidden;
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-tile span {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: #e9d5ff;
}

/* أزرار الفلترة */
.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 20px 28px;
}
.cat-btn {
  background: #110c1d;
  border: 1px solid #23193b;
  color: #b4a7cc;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s;
}
.cat-btn:hover, .cat-btn.active {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 0 18px rgba(109, 40, 217, 0.45);
}

/* شبكة المنتجات */
.products-section {
  padding: 0 7% 55px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 20px;
}

.product-card {
  background: linear-gradient(180deg, #120c21 0%, #0b0814 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #9333ea;
  box-shadow: 0 12px 28px rgba(88, 28, 135, 0.35);
}

.game-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  margin-bottom: 10px;
  font-weight: 700;
}

.product-media {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.22) 0%, #120b22 75%);
  border: 1px solid rgba(168, 85, 247, 0.18);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 12px;
  overflow: hidden;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.25));
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
}

.product-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
.product-card p { font-size: 0.84rem; color: #9c8fb8; margin-bottom: 15px; line-height: 1.45; }

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  gap: 8px;
}
.price { font-size: 1.1rem; font-weight: 800; color: #c084fc; }
.add-btn {
  background: #6d28d9;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
}
.add-btn:hover { background: #8b5cf6; }

/* بانر الدفع */
.payment-banner {
  margin: 0 7% 50px;
  background: linear-gradient(135deg, #2e1065 0%, #140a29 60%, #0b0714 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
}
.payment-banner h3 { font-size: 1.45rem; color: #fff; margin-bottom: 8px; }
.payment-banner p { color: #d8b4fe; margin-bottom: 18px; }
.payment-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.payment-pills span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 180, 254, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* المميزات */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 0 7% 55px;
}
.feature-card {
  background: #110b20;
  border: 1px solid #261945;
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
}
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.1rem; color: #f3e8ff; margin-bottom: 6px; }
.feature-card p { font-size: 0.88rem; color: #9c8fb8; }

/* الأسئلة الشائعة */
.faq-section {
  padding: 0 7% 55px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #120b22;
  border: 1px solid #271a47;
  border-radius: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #f3e8ff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: right;
}
.faq-plus { font-size: 1.3rem; color: #c084fc; }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: #b4a7cc;
  font-size: 0.9rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }

/* آراء العملاء */
.reviews-section {
  padding: 0 7% 65px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.review-card {
  background: linear-gradient(160deg, #1b0f36 0%, #0e091c 100%);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 18px;
  padding: 22px;
}
.stars { color: #facc15; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { color: #ede9fe; font-size: 0.92rem; line-height: 1.6; margin-bottom: 12px; }
.review-card strong { color: #c084fc; font-size: 0.88rem; }

/* الفوتر */
.site-footer {
  background: #120826;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  padding: 45px 7% 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand { margin-bottom: 10px; }
.footer-desc, .footer-contact { color: #b4a7cc; font-size: 0.88rem; line-height: 1.6; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #c084fc; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  text-align: center;
  color: #9c8fb8;
  font-size: 0.85rem;
}

/* زر واتساب عائم */
.floating-wa {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
  z-index: 150;
}

/* السلة الجانبية */
.cart-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 350px;
  max-width: 90vw;
  height: 100vh;
  background: #0e0a1a;
  border-right: 1px solid rgba(168, 85, 247, 0.35);
  z-index: 260;
  display: flex;
  flex-direction: column;
  transition: 0.35s ease;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85);
}
.cart-drawer.open { left: 0; }

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid #1f1636;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close-btn {
  background: none;
  border: none;
  color: #a195b8;
  font-size: 1.8rem;
  cursor: pointer;
}
.drawer-body { flex: 1; padding: 20px; overflow-y: auto; }
.empty-cart { text-align: center; color: #786c91; margin-top: 40px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161026;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #251a40;
}
.remove-item {
  background: none;
  border: none;
  color: #f43f5e;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid #1f1636;
  background: #0b0814;
}
.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.total-line strong { color: #c084fc; }

.primary-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

/* نافذة الدفع */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 2, 7, 0.85);
  backdrop-filter: blur(6px);
  z-index: 320;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.modal-card {
  background: #120c21;
  border: 1px solid #4c1d95;
  border-radius: 20px;
  padding: 26px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 0 40px rgba(109, 40, 217, 0.35);
}
.close-modal {
  position: absolute;
  top: 16px;
  left: 18px;
  background: none;
  border: none;
  color: #a195b8;
  font-size: 1.6rem;
  cursor: pointer;
}
.modal-card h3 { margin-bottom: 16px; color: #e9d5ff; }

.amount-box {
  background: #1b1230;
  padding: 12px 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  border-right: 4px solid #9333ea;
}
.amount-box strong { color: #c084fc; }

.bank-details {
  background: #0b0814;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #261b42;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.iban-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161026;
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 8px;
  gap: 8px;
}
#iban-code {
  font-family: monospace;
  color: #c084fc;
  direction: ltr;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 195px;
}
.iban-row button {
  background: #6d28d9;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}
#copy-feedback { color: #4ade80; display: block; margin-top: 5px; font-size: 0.8rem; }

.input-label { display: block; margin-bottom: 6px; font-size: 0.9rem; }
#roblox-username {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid #2e204d;
  background: #090612;
  color: #fff;
  margin-bottom: 16px;
}

.confirm-btn {
  width: 100%;
  padding: 13px;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
}

/* نافذة سياسة الاسترجاع والاستبدال */
.policy-card {
  max-width: 500px;
}

.policy-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #ddd6fe;
  max-height: 60vh;
  overflow-y: auto;
  padding-left: 6px;
}

.policy-text strong {
  color: #e9d5ff;
}
/* تنسيق نافذة تفاصيل المنتج */
.product-card {
  cursor: pointer;
}

.product-detail-card {
  text-align: center;
  max-width: 430px;
}

.detail-media {
  width: 140px;
  height: 140px;
  margin: 12px auto 0;
  border-radius: 18px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}

.detail-media img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.detail-delivery-note {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: #e9d5ff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
}
