.checkout-actions{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.payment-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-toggle .toggle {
  flex: 1;
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px solid #ddd;
  background: #f7f7f7;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.payment-toggle .toggle:hover {
  border-color: #bbb;
}

.payment-toggle .toggle.active {
  background: #111;
  color: #fff;
  border-color: #111;
}




#payBtn{
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
}


#payBtn:disabled{
  background: #aaa;
  cursor: not-allowed;
}
#payBtn.bonus{
  background: #2e7d32 !important;
  color: #fff;
  cursor: pointer;
}

#payBtn.bonus:disabled{
  background: #2e7d32 !important;
  cursor: pointer;
  opacity: 1;
}


#payBtn.bonus:hover{
  background: #256428 !important;
}
/* نفس حقل كود الخصم */
.coupon-input{
  width:100%;
  height:54px;
  border-radius:14px;
  border:2px solid #000;
  padding:0 18px;
  font-size:15px;
  font-weight:800;
  background:#fff;
  outline:none;
  box-sizing:border-box;
}
#payPhoneMsg{
  text-align:center;
}


/* نفس زر تطبيق */
.coupon-btn{
  width:100%;
  height:54px;
  border-radius:14px;
  background:#000;
  color:#fff;
  border:none;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  margin-top:10px;
}
#payPhone{
  max-width:420px;
  margin:0 auto;
  display:block;
}


:root{
    --twal-accent:#E83E8C; /* عدله لو تحب */
}
.twal-footer{
    margin-top:60px;
    padding:18px 10px;
    text-align:center;
    font-size:13px;
    color:#777;
    border-top:1px solid #eee;
}

.twal-footer span{
    font-weight:600;
    color:#000;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #38bdf8;
}

.footer-logo img {
    max-width: 140px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    color: #cbd5e1;
}

/* موبايل */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.payment-methods{
    margin-top:18px;
    text-align:center;
}
.discount-highlight{
    display:inline-flex;
    align-items:center;
    gap:6px;

    margin:6px auto 0;   /* بدل margin-top:12px */
    padding:6px 16px;

    border-radius:999px;
    background:rgba(232,62,140,.08);
    color:#E83E8C;

    font-size:13.5px;
    font-weight:600;
}
.discount-wrap{
    display:flex;
    justify-content:center;
}
.ai-input{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #ddd;
    font-size:16px;
    margin:12px 0;
}

.price-box{
    display:flex;
    gap:10px;
    justify-content:center;
    align-items:center;
    margin-top:6px;
}

.old-price{
    color:#999;
    font-size:14px;
    text-decoration:line-through;
}

.new-price{
    color:#E83E8C; /* لون توال */
    font-size:18px;
    font-weight:800;
}

.price{
    font-size:20px;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#000;
}
.course.active .price{
    color:#fff;
}

.course.active .price::after{
    filter:invert(1);
}
.sar-icon{
     margin:2px;
    width:10px;
    height:auto;
    opacity:.85;
}
.sar-icon2{
    width:10px;
    height:auto;
    opacity:.85;
}

header img{
    height:64px;
    margin-bottom:4px;
}



.discount-highlight strong{
    color:#000; /* أخضر = توفير */
}

@keyframes pulseDiscount {
    0%{transform:scale(1)}
    50%{transform:scale(1.04)}
    100%{transform:scale(1)}
}

.discount-highlight{
    animation:pulseDiscount 2.5s ease-in-out infinite;
}


.payment-methods img{
    max-width:260px;
    width:100%;
    opacity:.85;
}
.page-accent{
    position:fixed;
    top:140px;            /* تحت الهيدر */
    width:180px;
    opacity:.9;
    z-index:0;
    pointer-events:none;  /* لا يؤثر على النقر */
}

.page-accent.right{
    right:0;
}

.page-accent.left{
    left:0;
}

header h1::after{
    content:'';
    display:block;
    width:80px;
    height:30px;
    background:var(--twal-accent);

    border-radius:3px;
}

/* ========== GLOBAL ========== */
*{
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.checkout-box{
    background:#fff;
    border:1px solid #eee;
    border-radius:24px;
    padding:35px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}


body{
    margin: 0;
    background: #fff;
    color: #000;
}

/* ========== LAYOUT ========== */
.container{
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

header{
    text-align:center;
    margin-bottom:22px;

}
.whatsapp-float{
    position:fixed;
    bottom:22px;
    right:22px;   /* لو تبغاه يسار غيّرها إلى left */
    width:56px;
    height:56px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 20px rgba(37,211,102,.45);
    z-index:9999;
    transition:.25s ease;
}

.whatsapp-float:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 26px rgba(37,211,102,.6);
}




header h1{
    font-size:28px;
    margin:6px 0 4px; /* قلل المسافة */
    position:relative;
}

header p{
    margin-top:4px;
    color:#666;
}


/* ========== COURSES GRID ========== */
.courses{
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}


.course{
    border-radius:18px;
    padding:28px 22px;
    border:1px solid #eee;
    text-align:center;
    transition:.25s ease;
    cursor:pointer;
    position: relative; /* هذا السطر أساسي */
    overflow: hidden;   /* يمنع أي عنصر يطلع برا الكرت */
    
}

.course.active{
    background:#000;
    color:#fff;
    border-color:#000;
    box-shadow:0 18px 40px rgba(0,0,0,.25);
}

.course.active::after{
    content:'✔';
    position:absolute;
    top:14px;
    right:14px;
    background:#E83E8C;
    color:#fff;
    width:28px;
    height:28px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}

.course:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 30px rgba(0,0,0,.08);
}

/* الأيقونة */
.course-icon{
    font-size:40px;
    margin-bottom:16px;
    opacity:.9;
}
.course.active .course-icon{
    filter: drop-shadow(0 4px 8px rgba(255,255,255,.25));
}


/* الحالة النشطة */
.course.active{
    background:#000;
    color:#fff;
    border-color:#000;
    box-shadow:0 12px 26px rgba(0,0,0,.18);
}

.course.active .course-icon{
    transform:scale(1.1);
}

.course.active h3,
.course.active span{
    color:#fff;
}



/* ========== ORDER BADGE ========== */
.order-badge{
    position:absolute;
    top:14px;
    left:14px;
    width:26px;
    height:26px;
    border-radius:50%;
    background:#000;
    color:#fff;
    display:none;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:700;
}

.course.active .order-badge{
    display:flex;
}

#discount{
    color:#2e7d32; /* أخضر احترافي */
    font-weight:700;
}
.discount-row{
    color:#2e7d32;
}


/* ========== SUMMARY ========== */
.summary{
    background:#fff;
    border-radius:22px;
    padding:34px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}


.summary .final{
    font-size:28px;
    font-weight:900;
    color:var(--twal-accent);
}


.hint{
    font-size:14px;
    color:#777;
}

.summary button{
    width:100%;
    max-width:420px;
    margin:25px auto 10px;
    display:block;
    border-radius:14px;
    font-size:17px;
    padding:16px;
}






button:disabled{
    background: #999;
    cursor: not-allowed;
}

.course.active h3,
.course.active span{
    color:#fff;
}

/* ===== Header Actions ===== */
.header-actions{
  margin-top:14px;
  display:flex;
  justify-content:center;
}

.ai-btn{
  background: var(--twal-accent, #E83E8C);
  border:none;
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  box-shadow:0 10px 22px rgba(232,62,140,.18);
  transition:.2s ease;
}
.ai-btn:hover{ transform:translateY(-2px); }

/* ===== Modal ===== */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:18px;
}
.modal-overlay.show{ display:flex; }

.modal{
  width:min(720px, 96vw);
  background:#fff;
  border-radius:18px;
  box-shadow:0 18px 60px rgba(0,0,0,.25);
  overflow:hidden;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid #f0f0f0;
}
.modal-head h2{ margin:0; font-size:18px; }
.modal-close{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:18px;
  padding:6px 10px;
  border-radius:10px;
}
.modal-close:hover{ background:#f6f6f6; }

.modal-body{ padding:18px; }
.modal-sub{ margin:0 0 14px; color:#666; font-size:14px; }

.step{ display:none; }
.step.active{ display:block; }

.step h3{
  margin:0 0 10px;
  font-size:16px;
}

.options{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
}

.opt{
  border:1px solid #e9e9e9;
  background:#fff;
  padding:12px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:700;
  transition:.18s ease;
  color: #000;
}
.opt:hover{
  border-color:#000;
  color: #fff;
  transform:translateY(-2px);
  box-shadow:0 10px 18px rgba(0,0,0,.06);
}
.opt.selected{
  border-color: var(--twal-accent, #E83E8C);
  box-shadow:0 10px 18px rgba(232,62,140,.12);
}


.modal-foot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:16px;
}
.nav-btn{
  flex:1;
  padding:12px;
  border-radius:14px;
  border:1px solid #eee;
  background:#fff;
  cursor:pointer;
  color: #000;
  font-weight:800;
}
.nav-btn:hover{
  border-color:#000;
  color: #fff;
  transform:translateY(-2px);
  box-shadow:0 10px 18px rgba(0,0,0,.06);
}
.nav-btn.primary{
  background:#000;
  color:#fff;
  border-color:#000;
}

/* ===== Result ===== */
.ai-result{ padding:6px 0 0; }

.ai-loader{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:#666;
  font-weight:700;
}
.ai-loader span{
  width:10px; height:10px; border-radius:50%;
  background: var(--twal-accent, #E83E8C);
  display:inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}
.ai-loader span:nth-child(2){ animation-delay:.15s; }
.ai-loader span:nth-child(3){ animation-delay:.3s; }
@keyframes bounce{
  0%, 80%, 100%{ transform:translateY(0); opacity:.5;}
  40%{ transform:translateY(-6px); opacity:1;}
}

.ai-recommendation h3{ margin:0 0 10px; }
.ai-recommendation ul{
  margin:0;
  padding:0 18px 0 0;
}
.ai-recommendation li{
  margin:6px 0;
  font-weight:800;
}

.ai-note{
  margin:10px 0 0;
  color:#333;
  background:rgba(232,62,140,.07);
  border:1px solid rgba(232,62,140,.18);
  padding:10px 12px;
  border-radius:14px;
}

.ai-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.ai-apply{
  flex:1;
  border:none;
  background:#000;
  color:#fff;
  padding:12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:900;
}
.ai-restart{
  flex:1;
  border:1px solid #eee;
  background:#fff;
  padding:12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:900;
  color: #000;
}
.ai-restart:hover{
  border-color:#000;
  color: #fff;
  transform:translateY(-2px);
  box-shadow:0 10px 18px rgba(0,0,0,.06);
}

/* ===== Make discount green in summary ===== */
#discount{ color:#2e7d32; font-weight:900; }


/* ===== Coupon Area (Final Clean Version) ===== */
.coupon-area{
  display:flex;
  align-items:stretch;   /* المفتاح */
  justify-content:center;
  gap:12px;
  margin:22px auto 6px;
  max-width:420px;
}


/* Input بنفس روح الزر */
.coupon-area input{
  flex:1;
  height:54px;
  border-radius:14px;
  border:2px solid #000;
  padding:0 18px;
  font-size:15px;
  font-weight:800;
  background:#fff;
  outline:none;
}

/* زر تطبيق متناسق */
.coupon-area button{
  height:54px;
  padding:0 28px;
  border-radius:14px;
  background:#000;
  color:#fff;
  border:none;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
  margin-top:0 !important;
  width:auto !important;
}

#couponMsg{
  margin-top:8px;
  text-align:center;   /* هذا المطلوب */
  font-weight:700;
  font-size:14px;
}








/* السيكشن */
.discount-timeline{
  margin:80px auto;
  text-align:center;
}

/* العنوان */
.discount-timeline h2{
  font-size:30px;
  font-weight:900;
  margin-bottom:70px;
}

/* الحاوية */
.timeline{
  position:relative;
  max-width:900px;
  margin:0 auto;
  padding:40px 0;          /* هذا يحدد بداية ونهاية الخط */
}

/* الخط — داخل السيكشن فقط */
.timeline::before{
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  inset-inline-start:50%;
  width:2px;
  background:#f5b400;
  transform:translateX(-50%);
}

/* كل خطوة */
.timeline-item{
  position:relative;
  display:flex;
  align-items:center;
  min-height:140px;
  margin-bottom:60px;
}

/* آخر خطوة بدون فراغ */
.timeline-item:last-child{
  margin-bottom:0;
}

/* الدائرة */
.dot{
  position:absolute;
  inset-inline-start:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:30px;
  height:30px;
  border-radius:50%;
  font-size:13px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}

.dot.yellow{
  background:#f5b400;
  color:#000;
}

.dot.dark{
  background:#000;
  color:#fff;
}

/* توزيع الكروت */
.timeline-item.right{
  justify-content:flex-end;
}

.timeline-item.left{
  justify-content:flex-start;
}

/* قرب الكرت من الخط */
.timeline-item.right .card{
  margin-inline-end:32px;
}

.timeline-item.left .card{
  margin-inline-start:32px;
}

/* الكرت */
.card{
  background:#fff;
  padding:28px 32px;
  border-radius:20px;
  max-width:420px;
  box-shadow:0 12px 32px rgba(0,0,0,.06);
}

.card h4{
  margin:0 0 6px;
  font-size:18px;
  font-weight:800;
}

.card p{
  margin:0;
  font-size:14px;
  color:#777;
}






.reviews-section{
  max-width:1200px;
  margin:80px auto;
  padding:0 16px;
  text-align:center;
  font-family:'IBM Plex Sans Arabic', sans-serif;
}

.badge{
  display:inline-block;
  background:#f3f5f7;
  color:#555;
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  margin-bottom:12px;
}

.title{
  font-size:36px;
  font-weight:800;
  margin-bottom:40px;
}

.reviews-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.review-card{
  background:#fff;
  border:1px solid #e6e8eb;
  border-radius:18px;
  padding:20px;
  text-align:right;
}

.review-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.date{
  font-size:13px;
  color:#777;
}

.stars{
  color:#f5b400;
  font-size:14px;
  letter-spacing:1px;
}

.review-text{
  font-size:15px;
  line-height:1.7;
  color:#222;
  margin:14px 0 20px;
}

.review-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.country{
  background:#f3f5f7;
  padding:4px 10px;
  border-radius:14px;
  font-size:12px;
  color:#444;
}

.name{
  font-size:14px;
  font-weight:700;
}


.hero{
  text-align:center;
  padding:90px 16px 70px;
  max-width:1100px;
  margin:auto;
  font-family:'IBM Plex Sans Arabic', sans-serif;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:#fff7e6;
  border-radius:30px;
  padding:8px 14px;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
  margin-bottom:32px;
}

.hero-badge span{
  font-size:14px;
  font-weight:600;
}

.hero-btn{
  background:#ffd54f;
  border:none;
  padding:6px 14px;
  border-radius:20px;
  font-weight:700;
  cursor:pointer;
}

.hero-title{
  font-size:56px;
  font-weight:900;
  line-height:1.2;
  margin-bottom:24px;
}

.hero-desc{
  font-size:18px;
  color:#444;
  line-height:1.8;
  max-width:720px;
  margin:auto;
}

.hero-title::before,
.hero-title::after{
  content:none !important;
  display:none !important;
}


.faq-section{
  max-width:900px;
  margin:100px auto;
  padding:0 16px;
  text-align:center;
  font-family:'IBM Plex Sans Arabic', sans-serif;
}

.faq-badge{
  display:inline-block;
  background:#f3f4f6;
  padding:6px 16px;
  border-radius:20px;
  font-size:13px;
  margin-bottom:12px;
}

.faq-title{
  font-size:40px;
  font-weight:900;
  margin-bottom:40px;
}

.faq-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.faq-item{
  background:#fff;
  border-radius:20px;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
  overflow:hidden;
}



.faq-question{
  width:100%;
  background:none;
  border:none;
  padding:22px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}
.faq-question:hover{
  background:#f5f5f5;
}

.faq-question:hover span{
  color:#000;
}

.faq-question:hover .faq-icon{
  background:#000;
  color:#fff;
}


.faq-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  flex-shrink:0;
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
  text-align:right;
}

.faq-answer p{
  padding:0 24px 24px;
  color:#555;
  line-height:1.8;
  font-size:15px;
}

/* الحالة المفتوحة */
.faq-item.active .faq-answer{
  max-height:300px;
}

.faq-item.active .faq-icon{
  background:#f59e0b;
}
@media (max-width:768px){
  .faq-title{
    font-size:28px;
  }

  .faq-question{
    font-size:16px;
  }
}

.about-hero { padding: 24px 0 10px; }

.about-section { margin-top: 60px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.about-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.step-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
}

.step-num{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 10px;
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.25);
}

.about-cta{
  margin-top: 60px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(56,189,248,0.10);
  border: 1px solid rgba(56,189,248,0.18);
  text-align: center;
}

.cta-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary{
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.cta-primary{
  background: #38bdf8;
  color: #0b1220;
}

.cta-secondary{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

@media (max-width: 992px){
  .about-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .about-grid, .steps { grid-template-columns: 1fr; }
}



.support-form label{
  display:block;
  margin-top:14px;
  font-weight:600;
}

.support-form input,
.support-form textarea,
.support-form select{
  width:100%;
  padding:10px;
  margin-top:6px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.05);
  color:#fff;
}

.support-form button{
  margin-top:20px;
  border:none;
  cursor:pointer;
}

/* ===== FIX: Support Page Only ===== */
.support-page .support-form{
  background:#f3f4f6;          /* خلفية رمادية */
  padding:24px;
  border-radius:18px;
  border:1px solid #e5e7eb;
}

/* الحقول */
.support-page .support-form input,
.support-page .support-form textarea,
.support-page .support-form select{
  background:#fff;
  color:#000;
  border:1px solid #d1d5db;
}

/* placeholder */
.support-page .support-form input::placeholder,
.support-page .support-form textarea::placeholder{
  color:#777;
}

/* زر الإرسال */
.support-page .support-form button{
  background:#000;
  color:#fff;
  border-radius:12px;
}
