/* ============================= */
/* ===== الرئيسيه ======== */
/* ============================= */

:root {
    --bg-main: #0b0f14;
    --bg-card: #121826;
    --primary: #8b5cf6;
    --secondary: #22c55e;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #0b0f14, #0e1625);
    color: var(--text-main);
}

/* ===== Header ===== */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: var(--primary);
}

/* ===== Navigation ===== */
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--text-main);
}

nav a:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero-poster {
    position: relative;
    height: 100vh;
    background: #0b0f14;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* container */
.video-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الفيديو */
.video-text video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.video-text::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* درجة التعتيم */
    z-index: 2;
}


/* المحتوى العادي */
.hero-content {
      font-size: 4vw;          /* كبرناها */
    font-weight: 80;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #e5e7eb;           /* لون فاتح واضح */
    z-index: 3;
    position: relative;

}
.highlight {
    color: white;
    font-size: 60px; /* حجم كبير */
    font-weight: 900;
    user-select: none;
}

.hero-title {
    color: white;          /* خليها أبيض */
    font-size: 48px;       /* حجم كبير */
    font-weight: 800;      /* عريض */
    letter-spacing: 2px;   /* تباعد حروف */
    user-select: none;     /* مش هتتحدد بالغلط لما تضغط */
    margin: 0 0 15px 0;    /* مسافة تحتها شوية */
}

#loginBtn {
  background-color: #ba0cd9 !important; /* لون الخلفية */
  padding: 8px 20px !important;          /* حجم البطانة */
  font-size: 18px !important;            /* حجم الخط */
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  display: block;
  margin: 30px auto;
}

#loginBtn:hover {
  background-color: #9720ff !important;  /* لون عند hover */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(65, 31, 145, 0.5);
}

/* ===== Buttons ===== */
button {
  display: block;
  margin: 30px auto;
  padding: 8px 20px;

  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;

  color: #fff;
  background-color: rgb(136, 0, 255) !important;

  border: none;
  border-radius: 12px;

  cursor: pointer;
  transition: 0.3s ease;
}


button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(65, 31, 145, 0.5);
}

/* ===== Cards ===== */
.card {
    background: linear-gradient(145deg, #121826, #0f1420);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
 .footer {
  background: #0b0f1a;      /* غامق تكنولوجي */
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.footer-text {
  color: white;
  font-size: 16px;
  font-weight: 700;         /* خط عريض */
  letter-spacing: 1px;
}

.whatsapp-link img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.whatsapp-link:hover img {
  filter: drop-shadow(0 0 6px #25D366);
}
.about {
  background: #0e1220;        /* غامق شيك */
  padding: 80px 20px;
  text-align: center;
}

.about-container {
  max-width: 900px;
  margin: auto;
}

.about h2 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: 2px;
}
.about h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #4da3ff;
  margin: 15px auto 0;
}


.about p {
  color: #cfd3ff;
  font-size: 18px;
  line-height: 1.8;
}
.about-slogan {
  margin-top: 30px;
  color: #4da3ff;
  font-weight: 700;
  letter-spacing: 2px;
}
/* ============================= */
/* ===== اماكن تواجدنا ======== */
/* ============================= */

.featured-location {
  max-width: 500px;
  margin: 0 auto 50px;
}

/* نخلي الباقي تحت بعض */
.locations-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 500px;
  margin: auto;
}

.locations {
  background: #0b0f1a;
  padding: 80px 20px;
  text-align: center;
}

.locations h2 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}

.locations-intro {
  color: #cfd3ff;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 18px;
  line-height: 1.8;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.location-card {
  background: #13182b;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.3);
}

.location-card img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* يفرض الشكل المربع */
  object-fit: cover;    /* يملى الكادر من غير تشويه */
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}


.location-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin: 15px 0 10px;
}

.location-card p {
  color: #cfd3ff;
  font-size: 15px;
  padding: 0 15px 20px;
  line-height: 1.6;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #0e1220;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  border-radius: 14px;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  color: #fff;
  margin-bottom: 20px;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  background: #1a2040;
  color: #fff;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  background: #4da3ff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
}

.switch {
  margin-top: 15px;
  color: #cfd3ff;
}

.switch span {
  color: #4da3ff;
  cursor: pointer;
  font-weight: bold;
}

/* ============================= */
/* ===== Cyber Pay Page ======== */
/* ============================= */

:root {
  --bg-main: #0b0f14;
  --bg-card: #121826;
  --primary: #8b5cf6;
  --secondary: #22c55e;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, var(--bg-main), #0e1625);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  background: rgba(11, 15, 20, 0.7);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: 2px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 25px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--text-main);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===== Main ===== */
main {
  max-width: 600px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

/* ===== Cards ===== */
.section-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px 25px;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 15px 40px rgba(77, 163, 255, 0.4);
  transform: translateY(-4px);
}

h2 {
  font-size: 28px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-align: center;
}

.info {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 10px;
  text-align: center;
}

/* ===== Inputs ===== */
input[type="text"] {
  width: 100%;
  padding: 15px 18px;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  background: #1a2040;
  color: var(--text-main);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.7);
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  background-color: #273152;
  box-shadow: 0 0 12px var(--primary);
}

/* ===== Button ===== */
button {
  margin-top: 20px;
  width: 100%;
  padding: 15px 0;
  font-size: 20px;
  font-weight: 900;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,114,255,0.7);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,114,255,0.9);
}

/* ===== Messages ===== */
#transferMessage {
  margin-top: 12px;
  font-weight: 700;
  text-align: center;
}

/* ===== Transactions ===== */
.transaction-list {
  max-height: 280px;
  overflow-y: auto;
  background: #13182b;
  border-radius: 14px;
  padding: 20px;
  color: var(--text-muted);
  font-size: 15px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.7);
}

.transaction-list::-webkit-scrollbar {
  width: 8px;
}

.transaction-list::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 8px;
}

.transaction-item {
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.transaction-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sent {
  color: var(--secondary);
  font-weight: 700;
}

.received {
  color: var(--primary);
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  header {
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
  }

  nav a {
    margin-left: 12px;
    font-size: 14px;
  }

  h2 {
    font-size: 24px;
  }

  input[type="text"],
  button {
    font-size: 16px;
  }
}
/* تنسيق خانة المبلغ */
#amount {
  width: 100%;
  padding: 15px 18px;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  background: #1a2040;
  color: var(--text-main);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.7);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 12px;
  font-weight: 800;
}

/* عند الفوكس */
#amount:focus {
  outline: none;
  background-color: #273152;
  box-shadow: 0 0 12px var(--primary);
}

/* لون placeholder */
#amount::placeholder {
  color: var(--text-muted);
}

/* نشيل الأسهم من input number – توافق كامل */
input[type=number] {
  appearance: textfield;        /* Standard */
  -webkit-appearance: none;     /* Chrome, Safari */
  -moz-appearance: textfield;   /* Firefox */
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* ============================= */
/* ===== الفيديوهات ======== */
/* ============================= */

/* ===== Videos Coming Soon ===== */
.videos-coming {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0b0f14;
}

.videos-coming video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videos-coming::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
}

.videos-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.videos-overlay h2 {
  font-size: 64px;
  color: #ffffff;
  letter-spacing: 4px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.videos-overlay p {
  font-size: 22px;
  color: #4da3ff;
  letter-spacing: 2px;
}

/* موبايل */
@media (max-width: 768px) {
  .videos-overlay h2 {
    font-size: 40px;
  }

  .videos-overlay p {
    font-size: 18px;
  }
}
/* ============================= */
/* ===== منصة الفيديوهات ===== */
/* ============================= */

.platform {
  background: #0b0f1a;
  padding: 80px 20px;
  text-align: center;
}

.platform h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 15px;
}

.platform-intro {
  color: #cfd3ff;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 50px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.video-card {
  background: #13182b;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-6px);
}

.video-card video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.video-card h3 {
  color: #ffffff;
  font-size: 18px;
  margin: 0;
}

/* ===== صفحة القصة – مودرن ===== */
.story-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* جنب بعض */
  gap: 40px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
}

.story-card {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;     /* 12 عرض × 18 طول */
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.story-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 35px 90px rgba(77,163,255,0.45);
}

/* الصورة بكامل مقاسها */
.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* يحافظ على الشكل */
  transition: transform 0.7s ease;
}

.story-card:hover img {
  transform: scale(1.05);
}

/* تعتيم رقمي ناعم */
.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.35),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.story-card:hover::after {
  opacity: 1;
}
/* محتوى النص */

.story-info {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* ⬅ ينزلها لتحت */
  align-items: center;

  text-align: center;
  color: #fff;

  padding-bottom: 40px;        /* ⬅ مسافة من تحت */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.45s ease;
}


.story-card:hover .story-info {
  opacity: 1;
  transform: translateY(0);
}

.story-info h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;          /* أبيض صريح */
}

.story-info p {
  font-size: 16px;
  max-width: 80%;
  line-height: 1.7;
  opacity: 0.9;
  color: #ffffff;
}
.story-info h2 {
  text-shadow: 0 6px 25px rgba(0,0,0,0.7);
}

.story-info p {
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}


/* صفحة الاقسام */
/* ===== صفحة سلاسل القصص – سينمائي ===== */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: auto;
}

.story-box {
  position: relative;
  aspect-ratio: 2 / 3;              /* 12 : 18 */
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  background: #000;
}

/* الصورة */
.story-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;                /* مفيش تشويه */
  transition: transform 1s ease;
}

/* الطبقة السينمائية */
.story-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.2),
    rgba(0,0,0,0)
  );
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* العنوان */
.story-box span {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
  z-index: 2;
  text-transform: uppercase;
}

/* التأثير عند اللمس */
.story-box:hover img {
  transform: scale(1.08);
}

.story-box:hover::after {
  opacity: 1;
}

.story-box:hover span {
  opacity: 1;
  transform: translateY(0);
}
.stories-intro {
  color: #e5e7eb;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  max-width: 800px;
  margin: 40px auto 80px;
  text-align: center;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 فوق */
  gap: 50px;
  max-width: 1400px;
  margin: auto;
}
.story-info {
  position: absolute;
  bottom: 35px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(25px);
  transition: 0.8s ease;
  z-index: 3;
}

.story-info h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.story-info p {
  color: #cfd3ff;
  font-size: 15px;
  line-height: 1.6;
}

/* الظهور */
.story-box:hover .story-info {
  opacity: 1;
  transform: translateY(0);
}
/* تنسيق جزء سيبر */
body {
  background: radial-gradient(circle at top, #0b1220, #020409);
  color: #fff;
  font-family: 'Cairo', sans-serif;
}

/* ===== الجزء ===== */
.chapter {
  max-width: 900px;
  margin: 120px auto;
  padding: 0 20px;
}

/* عنوان الجزء */
.chapter-header {
  text-align: center;
  margin-bottom: 60px;
}

.chapter-number {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid #4da3ff;
  border-radius: 30px;
  color: #4da3ff;
  font-size: 30px;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.chapter-header h2 {
  font-size: 36px;
  margin: 0;
}

/* اختلاف لون الجزء */
.chapter-header.alt .chapter-number {
  border-color: #a855f7;
  color: #a855f7;
}

/* ===== الصفحات ===== */
.pages {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* الصفحة */
.page {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);

  /* مخفية */
  opacity: 0;
  transform: translateY(60px) scale(.97);
  transition: all 1s ease;

  user-select: none;
  pointer-events: none;
}

/* لما تظهر */
.page.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
 .locked {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  background: #111;
  padding: 30px;
  width: 320px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 40px rgba(13, 6, 236, 0.4);
}

.login-box h2 {
  color: #a24fff; /* بنفسجي */

}

.login-box input {
width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  border: none;
  background-color: #222;  /* نفس لون خلفية اسم المستخدم */
  color: white;
}

.login-box button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: rgb(111, 6, 224);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

#loginMsg {
  margin-top: 10px;
  color: rgb(111, 6, 224)ff;
}
/* ============================= */
/* ===== Responsive Global ===== */
/* ============================= */

/* موبايل */
@media (max-width: 768px) {

  /* Header */
  header {
    flex-direction: column;
    padding: 15px;
    gap: 10px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 6px 10px;
    font-size: 14px;
  }

  /* Hero */
  .hero-content {
    font-size: clamp(22px, 6vw, 40px);
    letter-spacing: 3px;
    text-align: center;
    padding: 0 15px;
  }

  .hero-title {
    font-size: 28px;
  }

  /* Sections titles */
  h2 {
    font-size: 24px !important;
  }

  /* Grids */
  .locations-grid,
  .videos-grid,
  .stories-grid,
  .story-sections {
    grid-template-columns: 1fr !important;
  }

  /* Cards ratios */
  .story-card,
  .story-box {
    aspect-ratio: 3 / 4;
  }

  /* Videos overlay */
  .videos-overlay h2 {
    font-size: clamp(30px, 8vw, 44px);
  }

  .videos-overlay p {
    font-size: 16px;
  }

  /* Buttons */
  button,
  #loginBtn {
    font-size: 16px;
    min-height: 48px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {

  .stories-grid,
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}
/* ============================= */
/* ===== Mobile Fix Pack ======= */
/* ضع هذا في آخر ملف CSS         */
/* ============================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header + Nav */
header {
  gap: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
}

nav a {
  margin: 0 !important;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
}

/* Hero text scaling */
.hero-title {
  font-size: clamp(22px, 6vw, 34px) !important;
  letter-spacing: 1px !important;
  text-align: center;
}

.highlight {
  font-size: clamp(26px, 8vw, 44px) !important;
}

/* Global sections paddings */
.about,
.locations,
.platform {
  padding: 50px 14px !important;
}

/* Cards & containers on mobile */
.card,
.section-card,
.modal-content,
.login-box {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Inputs & buttons (prevent iOS zoom, improve touch) */
input, button {
  width: 100%;
  max-width: 100%;
  font-size: 16px !important;
}

button {
  min-height: 48px;
}

/* Fix grids to single column on small screens */
@media (max-width: 520px) {
  nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  nav::-webkit-scrollbar { height: 0; }
}
/* ============================= */
/* ===== Navbar Fix (Mobile) ==== */
/* ============================= */

header{
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* ترتيب الهيدر بشكل ثابت */
header{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px !important;
}

/* عنوان الموقع */
header h1{
  text-align: center;
  font-size: 18px !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
  line-height: 1.2;
}

/* التبويبات: سحب يمين/شمال */
nav{
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  padding: 6px 2px;
  justify-content: flex-start;
}

/* اخفاء السكرول بار */
nav::-webkit-scrollbar{ height: 0; }

/* شكل التبويب */
nav a{
  margin: 0 !important;
padding: 9px 10px !important;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  white-space: nowrap;
  font-size: 14px !important;
  font-weight: 700;
}

/* إلغاء خط الـ after في الموبايل عشان ميبوظش */
nav a::after{
  display: none !important;
}

/* تبويب active لو عندك class="active" */
nav a.active{
  color: #fff !important;
  background: rgba(139,92,246,0.35);
  outline: 1px solid rgba(139,92,246,0.55);
}

/* ============================= */
/* ===== Navbar Mobile Fix ===== */
/* ============================= */
@media (max-width: 768px) {

  header{
    padding: 12px 14px !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  header h1{
    font-size: 18px !important;
    letter-spacing: 1px !important;
    text-align: center;
    margin: 0 !important;
    line-height: 1.2;
  }

  nav{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 6px 2px;
    justify-content: flex-start;
  }

  nav::-webkit-scrollbar{ height: 0; }

  nav a{
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    white-space: nowrap;
    font-size: 14px !important;
    font-weight: 700;
  }

  /* منع underline اللي بيكركب */
  nav a::after{
    display: none !important;
  }

  nav a.active{
    color: #fff !important;
    background: rgba(139,92,246,0.35);
    outline: 1px solid rgba(139,92,246,0.55);
  }
}
/* ============================= */
/* ===== Fix Header Order ===== */
/* ============================= */
@media (max-width: 768px) {

  header {
    display: flex !important;
    flex-direction: column !important;
  }

  /* اسم الموقع فوق */
  header h1 {
    order: 1 !important;
    margin-bottom: 8px !important;
    text-align: center;
    font-size: 18px !important;
  }

  /* التبويبات تحت */
  header nav {
    order: 2 !important;
  }
}

/* تأكيد إن شاشة اللوجين فوق كل شيء وتستقبل اللمس/الكيبورد */
.login-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: auto;
}

/* تأكيد إن صندوق اللوجين وحقول الإدخال قابلة للتفاعل */
.login-box, .login-box *{
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

/* خلي حقول الأكواد والباسورد LTR ومفيش أي تعطيل */
#username, #password{
  direction: ltr;
  unicode-bidi: isolate;

}

/* ============================= */
/* ===== LOGIN INPUT FIX ======= */
/* ضع هذا في آخر ملف CSS         */
/* ============================= */

/* 1) ما تقفلش التفاعل على الـ main نفسه (ده كان بيكسر الإدخال عند بعض الأجهزة)
   بدل ما نعتمد على pointer-events:none على .locked، نخلي الـ overlay هو اللي يمنع اللمس */
.locked{
  filter: blur(8px) !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* 2) الـ overlay هو اللي يمسك كل التفاعل */
.login-overlay{
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.75) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2147483647 !important;

  pointer-events: auto !important;
  touch-action: auto !important;
}

/* 3) صندوق اللوجين وداخلُه لازم يستقبلوا اللمس والكيبورد */
.login-box,
.login-box *{
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* 4) ستايل إدخال اللوجين + تأكيد LTR عشان الباسورد/الأكواد ما تتلخبطش مع RTL */
#username,
#password{
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
  caret-color: #fff !important;
}

/* 5) خليك مغطّي input password بنفس ستايل text (عشان ما يبقاش فيه سلوك غريب) */
input[type="text"],
input[type="password"]{
  width: 100% !important;
  padding: 12px !important;
  margin: 8px 0 !important;
  border-radius: 10px !important;
  border: none !important;
  background-color: #222 !important;
  color: white !important;
  outline: none !important;
}

input[type="text"]:focus,
input[type="password"]:focus{
  outline: none !important;
  box-shadow: 0 0 12px rgba(139,92,246,0.7) !important;
}

/* 6) تحسينات موبايل: منع تكبير iOS + سلاسة المسح */
@media (max-width: 768px){
  #username,
  #password{
    font-size: 16px !important; /* يمنع iOS zoom */
  }
}



/* ============================= */
/* ===== CYBERPAY LOGIN FIX ===== */
/* ============================= */

/* الخلفية تتقفل تفاعلها أثناء اللوجين */
.locked{
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* الـ overlay هو اللي يمسك التفاعل */
.login-overlay{
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

/* LTR للـ username والباسورد بدون plaintext */
#username,
#password{
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
}
