* {
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}
:root {
  --primary: #5f63f2;
  --primary-dark: #4d45d8;
  --primary-light: #eef0ff;
  --secondary: #6bbef2;
  --accent: #cbb8ff;
  --text: #1f2850;
  --muted: #66708c;
  --white: #ffffff;
  --surface: #F5F6FA;
  --border: #e9ebf5;
  --shadow: 0 16px 45px rgba(78, 77, 160, 0.10);
  --shadow-hover: 0 24px 55px rgba(78, 77, 160, 0.17);
}
html {
  scroll-behavior: smooth;
}
body {
    margin: 0;
    background: #f5f6fa;
      --sb-track-color: #dfe6e9;
  --sb-thumb-color: #6c5ce7;
  --sb-size: 4px;
}

body::-webkit-scrollbar {
  width: var(--sb-size);
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}
/* adv */
.top-banner {
    width: 100%;
    background: linear-gradient(100deg, var(--primary), #7b6cf6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 8px;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 2000;
}
.top-banner > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: #25D366;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.whatsapp-btn:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}



@media (max-width: 820px) {
  .top-banner {
    font-size: 12px;
  }
}

@media (max-width: 650px) {

  .top-banner {
    gap: 7px;
    padding: 9px 12px;
  }
  .top-banner > span {
    text-align: center;
  }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 60px;
    z-index: 1000;
    width: 100%;
    transition: 0.3s ease;
}

/* Container */
.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 8px 20px;
    border-radius: 50px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.logo img {
  width: 100px;
  max-height: 66px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding-block: 20px;
  transition: 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 20px;
  width: 0;
  height: 2px;
  border-radius: 10px;
  background: var(--primary);
  transform: translateX(50%);
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}


/* Responsive */
@media (max-width: 1050px) {
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 820px) {

  .nav-container {
    grid-template-columns: auto 1fr auto;
  }


}

@media (max-width: 650px) {
  .nav-container {
    width: min(100% - 24px, 1180px);
  }

  .nav-container {
    min-height: 70px;
    gap: 10px;
  }

  .logo img {
    width: 90px;
  }
  .nav-links a {
    font-size: 12px;
    font-weight: 500;
  }
}
/* Scroll effect */
.navbar.scrolled .nav-container {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Mobile */
@media (max-width: 600px) {
    .back-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
/* Start Hero */


/* HERO */
.hero{
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

/* soft background shape like image */
.hero::before{
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ede9fe, transparent 70%);
  top: 0;
  left: 0;
  z-index: -1;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* TEXT SIDE */
.hero-text{
  flex: 1;
}

.badge{
  background: #ede9fe;
  color: #6d28d9;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.hero h1{
  font-size: 42px;
  margin: 20px 0;
  color: #111;
  line-height: 1.4;
}

.hero h1 span{
  color: #6d28d9;
  display: block;
}

.hero-text p{
  color: #666;
  line-height: 1.7;
}

/* BUTTONS */
.hero .buttons{
  margin-top: 20px;
}

.hero .btn{
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  margin-left: 10px;
  display: inline-block;
  font-weight: bold;
}

.hero .primary{
  background: #6d28d9;
  color: white;
}

.hero .secondary{
  border: 1px solid #ddd;
  color: #333;
  background-color: white;
}

/* STATS */
.hero .stats{
  margin-top: 25px;
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #777;
}

/* CARDS */
.hero-cards{
  display: flex;
  gap: 20px;
  position: relative;
}

.hero-cards::before {
  content: "";
  position: absolute;

  top: -120px;
  right: -120px;

  width: 550px;
  height: 550px;

  background: url('../images/bg-effects.png') no-repeat center;
  background-size: contain;

  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}
.hero .card{
  width: 235px;
  background: white;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  transform: rotate(-2deg);
  position: relative;
  z-index: 1;
}

.hero .card:nth-child(2){
  transform: rotate(3deg);
}
.hero .card img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}
.hero .card p {
    margin: 10px 0;
    color: #555;
    font-size: 14px;
}
/* LOGO */
.hero .logo{
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

/* CODE */
.hero .code {
    background: #f2f0f8;
    padding: 6px;
    margin: 10px 0;
    border-radius: 10px;
    font-weight: bold;
    color: #6d28d9;
    border: 1px dashed #6d28d9;
}

/* BUTTON */
.hero .card button{
  background: #6d28d9;
  color: white;
  border: none;
  padding: 8px;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
}

/* LINK */
.hero .card a{
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #6d28d9;
  text-decoration: none;
}
.stats {
  display: flex;
  gap: 20px;
  align-items: center;
}

.stats > div {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 0 10px;
}

.stats > div:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #ccc;
}
/* End Hero */
/* Banner */
.banner img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
}

/* Title */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #4834d4;
    font-size: 32px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6c5ce7;
}
/* Categories */
.categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Scroll container */
.main-categories {
    display: flex;
    gap: 10px;
    padding: 0 0 14px;
}


.purpleColor {
    color: #6c5ce7;
}

.sub-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 40px 14px;
    scrollbar-width: none;
}

.sub-categories::-webkit-scrollbar {
    display: none;
}

/* Buttons */

.main-categories button,
.sub-categories button {
    border: none;
    background: #f1f2f6;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    font-size: 14px;
    color: #444;
}
.main-categories button {
    flex: 1;
    text-align: center;
}
/* Active */

.main-categories button.active,
.sub-categories button.active {
        background: linear-gradient(45deg, #6c5ce7, #4834d4);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}
/* Hover */
.categories button:hover {
    background: #4834d4;
    color: white;
    transform: translateY(-2px);
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-58%);
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 2;
    font-size: 18px;
    line-height: 0;
    transition: 0.3s;
}

/* hover */
.scroll-btn:hover {
    background: #6c5ce7;
    color: white;
}

/* positions */
.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.categories-wrapper::before,
.categories-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 1;
}

.categories-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f5f6fa, transparent);
}

.categories-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f5f6fa, transparent);
}
/* Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}
@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}
@media (min-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}
@media (min-width: 1400px) {
    .offers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}





/* Card */
.offer-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #6c5ce7;
    overflow: hidden;
    transition: transform 0.3s;
    width: 100%;
}

.offer-card::before {
    left: -30px;
}
.offer-card::after {
    right: -30px;
}
.offer-card::before, .offer-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    background: #6c5ce733;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.offer-card:hover {
    transform: translateY(-3px);
}

/* Logo */
.app-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0 auto 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.content .content-entry img {
    margin: 0px;
}
.content .content-entry img {
    margin: 15px 0 25px;
}
.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
img {
    max-width: 100%;
}

/* Name */
.app-name {
    font-weight: bold;
    color: #4834d4;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Code */
.offer-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f2ff;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px dashed #6c5ce7;
    width: 100%;
}

.offers-grid .code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #4834d4;
    font-size: 14px;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
    direction: ltr;
}

/* Button */
.offers-grid .copy-btn {
    background: linear-gradient(45deg, #6c5ce7, #4834d4);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    white-space: nowrap;
}

.offers-grid .copy-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.offers-grid .copy-btn.copied {
    background: #00b894 !important;
}

/* Description */
.offer-description {
    font-size: 13px;
    color: #666;
}

/* Instructions */
.instructions {
    text-align: center;
    margin: 25px 0;
    padding: 10px;
    background: linear-gradient(45deg, #6c5ce7, #4834d4);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}


@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        gap: 30px;
    }
    .badge {
        display: flex;
        justify-content: center;
    }
    .hero .buttons {
        display: flex;
        justify-content: center;
    }
    .hero .stats {
        justify-content: center;
    }
    .hero .hero-cards {
        width: 100%;
        justify-content: center;
    }
    .hero-cards::before {
        top: -115px;
        right: 19px;
    }
    .hero-text p {
        text-align: center;
    }
    .hero {
        padding: 0;
    }
    .hero .btn {
        font-size: 12px;
    }
}
/* Footer */
.custom-footer {
  position: relative;
  padding: 120px 0 0;
  color: var(--white);
  background: linear-gradient(120deg, #5054dd, #636af1 54%, #697fea);
  overflow: hidden;
}

.footer-curve {
  position: absolute;
  top: -74px;
  left: -5%;
  width: 110%;
  height: 145px;
  background: var(--surface);
  border-radius: 0 0 50% 50%;
}

.footer-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.6fr;
  gap: 55px;
  padding-bottom: 45px;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 320px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
  font-size: 14px;
}

.footer-column h3 {
  margin: 0 0 20px;
  font-size: 18px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  transition: 0.25s ease;
}

.footer-social a:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.s-menu-footer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 25px;
}

.s-menu-footer-list a {
  color: rgba(255, 255, 255, 0.83);
  font-size: 13px;
  transition: 0.25s ease;
}

.s-menu-footer-list a:hover {
  color: var(--white);
  transform: translateX(-4px);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  padding: 17px 20px;
  text-align: center;
  background: rgba(30, 35, 120, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}


/* Responsive */
@media (max-width: 1050px) {

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
  }
}


@media (max-width: 650px) {
  .footer-content {
    width: min(100% - 24px, 1180px);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    grid-column: auto;
  }

  .s-menu-footer-list {
    grid-template-columns: 1fr;
  }
}
/* scroll up */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    left: 25px; /* في الـ RTL بيكون أحسن ناحية الشمال */
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d7cff, #5a63f2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(93, 99, 242, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .35s ease;
    z-index: 9999;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 15px 35px rgba(93, 99, 242, .45);
}

#scrollTopBtn:active {
    transform: scale(.95);
}
/* بحث وعرض المزيد */
.offer-search { display: flex; justify-content: center; margin: 18px auto 6px; max-width: 520px; padding: 0 16px; }
.offer-search input { width: 100%; border: 1px solid #e3e1fb; background: #fff; border-radius: 25px; padding: 12px 20px; font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.offer-search input:focus { border-color: #6c5ce7; box-shadow: 0 0 0 4px rgba(108, 92, 231, .12); }
.load-more { display: none; margin: 26px auto 40px; border: none; cursor: pointer; padding: 12px 34px; border-radius: 25px; font: inherit; font-size: 15px; color: #fff; background: linear-gradient(45deg, #6c5ce7, #4834d4); box-shadow: 0 4px 12px rgba(108, 92, 231, .3); transition: transform .15s; }
.load-more:hover { transform: translateY(-2px); }
.load-more:active { transform: translateY(0) scale(.98); }
a.copy-btn { text-decoration: none; display: inline-flex; align-items: center; }
