html {
    scroll-behavior: smooth;
}
/* ---- الإعدادات الأساسية ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

/* ---- المتغيرات (ألوان البراند) ---- */
:root {
    --bg-color: #050505; /* أسود عميق */
    --surface-color: #121212; /* رمادي غامق للكروت */
    --primary-color: #f59e0b; /* اللون الكهرماني/الذهبي */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #27272a;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* كلاسات مساعدة هنحتاجها كتير */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---- تأثير الزجاج والتدرجات ---- */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- الأزرار ---- */
.btn-primary {
    background: linear-gradient(to left, var(--primary-color), #a855f7);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 12px;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
}
.logo .dot { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover { color: white; }

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 50px;
    overflow: hidden;
}
/* ... (كود .hero الأساسي موجود هنا) ... */

/* الطبقة الأولى: صورة الخلفية (صورتك) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* غير اسم الصورة هنا لو مسميها اسم تاني */
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center top; /* يركز على الجزء العلوي من الصورة */
    opacity: 0.15; /* هنا تتحكم في شفافية الصورة - قلل أو زود براحتك */
    z-index: 0; /* عشان تكون خلف كل العناصر */
    filter: grayscale(100%); /* اختياري: بيخلي الصورة أبيض وأسود عشان تليق مع الثيم */
}

/* الطبقة الثانية: تدرج الدمج السفلي */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; /* تبدأ من تحت */
    left: 0;
    width: 100%;
    height: 40%; /* ارتفاع التدرج، بيغطي الـ 40% اللي تحت بس */
    /* التدرج بيبدأ شفاف وينتهي بلون خلفية الموقع */
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    z-index: 2; /* فوق الصورة، بس تحت الكلام */
}

/* تعديل بسيط لترتيب الطبقات */
.glow {
    z-index: 1; /* نخلي الإضاءة فوق الصورة */
    opacity: 0.3; /* نقلل الإضاءة سنة عشان الصورة تبان */
}

/* ... (كود .hero-content بييجي بعد دول) ... */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: white;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

/* ---- Stats ---- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ---- Glow Effects ---- */
.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.4;
}

.glow-amber {
    background: var(--primary-color);
    top: 10%;
    right: -100px;
}

.glow-purple {
    background: #a855f7;
    bottom: 10%;
    left: -100px;
}

/* للموبايل */
@media (max-width: 768px) {
    .nav-links, .nav-btn { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a { width: 100%; justify-content: center; }
    .hero-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .divider { display: none; }
}

/* ---- قسم الخدمات (Services) ---- */
.services-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.section-title {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* شبكة الكروت */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* تصميم الكارت */
.service-card {
    padding: 40px 30px;
    border-radius: 20px;
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* تأثيرات الهوفر (لما الماوس يقف على الكارت) */
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.1);
}

/* تأثير إضاءة مخفي جوه الكارت بيظهر في الهوفر */
.service-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0;
    transition: 0.4s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.2;
}

/* أيقونات الخدمات */
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a855f7 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* تظبيط الموبايل */
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .services-section { padding: 60px 20px; }
}

/* ---- Portfolio Section ---- */
.portfolio-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    color: var(--primary-color);
}

/* الفيديو */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
}

.video-item {
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-item iframe {
    width: 100%;
    height: 100%;
}

/* الصور المصغرة */
.thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.thumb-card img {
    width: 100%;
    border-radius: 12px;
    transition: 0.3s transform;
    cursor: pointer;
}

.thumb-card:hover img {
    transform: scale(1.03);
}

/* السكريبت */
.scripts-grid {
    max-width: 700px;
}

.script-card {
    padding: 30px;
    border-radius: 20px;
    position: relative;
}

.script-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.script-tag.bad { background: #ef444422; color: #ef4444; }
.script-tag.good { background: #22c55e22; color: #22c55e; margin-top: 20px; }

.script-arrow {
    text-align: center;
    color: var(--text-muted);
    margin: 10px 0;
}

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* ---- Order Section ---- */
.order-section {
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.form-container {
    padding: 40px;
    border-radius: 25px;
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    grid-column: span 2;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
}

.success-msg {
    text-align: center;
    color: #22c55e;
    font-weight: bold;
    padding: 20px;
}

/* للموبايل */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
}

/* ---- Order Page Styles ---- */
.order-page {
    background: radial-gradient(circle at center, #1a1a2e 0%, #050505 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.back-home {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 100;
    transition: 0.3s;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.order-container {
    width: 100%;
    max-width: 800px;
}

.form-wrapper {
    padding: 50px;
    border-radius: 30px;
}

.form-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.form-wrapper p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ---- قسم الدعوة الأخير ---- */
.final-cta {
    padding: 150px 20px 100px;
    text-align: center;
    position: relative;
    background: transparent;
    
    /* الكود السحري لكسر الحدود وملء الشاشة بالكامل */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* طبقة النقشة (Pattern) وتسييحها من كل الاتجاهات */
.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: 1;
    pointer-events: none;
    /* ماسك دائري بيمسح الحواف يمين وشمال وفوق وتحت عشان تندمج مع الأسود */
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* الإضاءة الخلفية للبوكس (Glow) */
.final-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; /* الإضاءة كمان تاخد عرض الشاشة */
    height: 1000px;
    background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.6) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* --- بوكس المحتوى نفسه (مفيش فيه تغيير) --- */
.cta-box {
    padding: 60px 40px;
    border-radius: 30px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10; 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); 
}

.cta-box h2 {
    font-size: 2.4rem;
    line-height: 1.4;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
/* حركة نبض خفيفة للزرار عشان يشد العين */
.pulse-btn {
    font-size: 1.2rem;
    padding: 15px 45px;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* للموبايل */
@media (max-width: 768px) {
    .cta-box h2 { font-size: 1.6rem; }
    .final-cta { padding: 60px 20px; }
}

.cta-actions {
    display: flex;
    flex-direction: column; /* عشان ييجوا تحت بعض */
    align-items: center;
    gap: 25px;
}

.direct-mail {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.direct-mail span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.direct-mail a {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.direct-mail a i {
    color: var(--primary-color);
}

.direct-mail a:hover {
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* ---- إخفاء أسهم الأرقام المزعجة ---- */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield; /* للفايرفوكس */
}

/* ---- تنسيق الـ Checkboxes ---- */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px; /* مربع بدل الدائرة */
    outline: none;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

/* ---- تنسيق واجهة الفيديو (Video Facade) ---- */
.video-facade {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer; /* السطر ده هيخلي الماوس شكله إيد */
}
.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

/* زرار الـ Play */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgba(245, 158, 11, 0.9); /* لون البراند بتاعك */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    transition: 0.4s ease;
    z-index: 2;
}

/* تأثير لما العميل يقف بالماوس (Hover) */
.video-facade:hover img {
    transform: scale(1.05);
    filter: brightness(0.6); /* يغمق الصورة سنة عشان الزرار ينور أكتر */
}

.video-facade:hover .play-button {
    transform: translate(-50%, -50%) scale(1.15);
    background: #f59e0b; /* لون برتقالي صريح */
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
}

/* ========================================= */
/* ---- النظام الموحد للسلايدر ومعرض الأعمال ---- */
/* ========================================= */

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    padding: 0 40px; /* مساحة للأسهم */
}

.video-gallery, .slider-row {
    display: flex;
    align-items: center; /* بيخلي الكروت متسنترة على خط واحد */
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
    width: 100%;
}

.video-gallery::-webkit-scrollbar, .slider-row::-webkit-scrollbar { 
    display: none; 
}

/* ---- الكروت (فيديوهات - صور - تقييمات) ---- */
.filter-item, .thumb-card, .review-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 12px;
    background: #111;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* المقاسات الرياضية الصارمة (للكمبيوتر) */
.filter-item { width: 340px; aspect-ratio: 16 / 9; height: auto; }
.filter-item.shorts-video { width: 220px; aspect-ratio: 9 / 16; height: auto; }
.thumb-card { width: 300px; aspect-ratio: 16 / 9; height: auto; }
.review-card { width: 340px; height: auto; padding: 25px; display: flex; flex-direction: column; gap: 15px; }

/* المشغلات والصور */
.filter-item iframe, .thumb-card img {
    width: 100%; height: 100%; border: none; object-fit: cover; display: block;
}

/* 🚨 التريكة السحرية لجوجل درايف (إصلاح Edge والموبايل) 🚨 */
.filter-item.shorts-video iframe[src*="drive.google.com"] {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 316.05%; /* النسبة الرياضية الدقيقة لتحويل 16:9 لـ 9:16 بدون شاشة سوداء */
    max-width: none !important;
    transform: translateX(-50%);
}

/* ---- زراير الأسهم ---- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s;
}
.slider-btn:hover { background: #d97706; transform: translateY(-50%) scale(1.1); }
.right-btn { right: -10px; }
.left-btn { left: -10px; }

/* ---- زراير الفلترة وأنيميشن الإخفاء ---- */
.filter-tabs {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 15px;
}
.filter-btn {
    padding: 8px 20px; background: transparent; border: 1px solid var(--primary-color);
    color: white; border-radius: 30px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary-color); color: #fff; }

.filter-item.hide { display: none; }

/* كارت عرض الكل */
.view-more-card {
    width: 220px; aspect-ratio: 1 / 1; height: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; color: #f59e0b; background: rgba(245,158,11,0.05); 
    border: 2px dashed #f59e0b; border-radius: 12px; transition: 0.3s;
    text-decoration: none;
}
.view-more-card:hover { transform: scale(1.05); background: rgba(245,158,11,0.15); }
.view-more-card i { font-size: 2.5rem; margin-bottom: 10px; }
.view-more-card h3 { color: #fff; margin: 0; font-size: 1.2rem; }

/* تصميم داخلي لكارت التقييم (عشان مسحناه مع القديم) */
.reviewer-info { display: flex; align-items: center; gap: 15px; }
.reviewer-avatar { font-size: 3rem; color: #555; }
.reviewer-details h4 { margin: 0 0 5px 0; font-size: 1.1rem; color: #fff; }
.stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; }
.review-text { color: #ccc; font-size: 0.95rem; line-height: 1.6; font-style: italic; margin: 0; }

/* 📱 تظبيط الموبايل (عشان متتضغطش وتفضل بنسبتها) 📱 */
@media (max-width: 768px) {
    .slider-wrapper { padding: 0 5px; }
    .slider-btn { display: none; } /* إخفاء الأسهم للسحب بالإيد */
    
    .filter-item { width: 85vw; }
    .filter-item.shorts-video { width: 65vw; }
    .thumb-card { width: 85vw; }
    .review-card { width: 85vw; }
    .view-more-card { width: 50vw; }
}
/* ========================================= */

/* ---- ستايل قسم الباقات ---- */
.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.premium-card {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.1), rgba(0, 0, 0, 0.5));
    border: 1px solid #f59e0b;
    transform: scale(1.05); /* بنكبرها سنة عشان تبان إنها مميزة */
}

.premium-card:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.pricing-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.package-desc {
    color: #aaa;
    font-size: 0.9rem;
    margin: 10px 0 20px;
}

.price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #10b981; /* لون أخضر للفلوس */
    margin-bottom: 25px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: right;
}

.features-list li {
    color: #ddd;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.features-list i {
    color: #f59e0b;
    margin-left: 8px;
}

.order-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #f59e0b;
    color: #f59e0b;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.order-btn:hover {
    background: #f59e0b;
    color: #fff;
}

.premium-btn {
    background: #f59e0b;
    color: #fff;
}

.premium-btn:hover {
    background: #d97706;
}

@media (max-width: 768px) {
    .premium-card {
        transform: scale(1); /* بنرجعها لحجمها الطبيعي ع الموبايل عشان الشاشة */
    }
    .premium-card:hover {
        transform: translateY(-5px);
    }
}

/* ---- ستايل مفصل الباقات ---- */
.custom-builder-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-row:last-child {
    border-bottom: none;
}

.service-info h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.1rem;
}

.service-info p {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
}

.counter-box {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
}

.counter-box button {
    background: #2a2a2a;
    color: #f59e0b;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.2s;
}

.counter-box button:hover {
    background: #333;
}

.counter-box input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    pointer-events: none; /* عشان العميل ميكتبش رقم بإيده ويلخبط الكود */
}

.calculation-area {
    text-align: center;
    border-top: 1px dashed rgba(245, 158, 11, 0.5);
    margin-top: 20px;
    padding-top: 20px;
    min-height: 120px; /* عشان الموقع مايفضلش ينط لفوق وتحت مع التحميل */
}
/* ---- تظبيط ألوان القائمة المنسدلة عشان متظهرش بيضا ---- */
.input-group select option {
    background-color: #121212; /* لون خلفية غامق لايق مع الموقع */
    color: #ffffff; /* لون النص أبيض */
    padding: 10px;
}
/* ========================================= */
/* ---- إصلاح تجربة الموبايل (التلميح بالسحب) ---- */
/* ========================================= */

@media (max-width: 768px) {
    /* 1. تصغير الكروت عشان الكارت اللي بعده يظهر منه جزء (Peeking) */
    .filter-item, .thumb-card, .review-card {
        flex: 0 0 78% !important; 
        min-width: 240px !important;
    }
    
    .filter-item.shorts-video {
        flex: 0 0 58% !important; 
        min-width: 170px !important;
    }

    /* 2. إضافة جملة (اسحب للمزيد) متحركة بدون أي تعديل في الـ HTML */
    .slider-wrapper::after {
        content: '👈 اسحب للمزيد';
        position: absolute;
        top: -15px;
        left: 20px;
        color: var(--primary-color);
        font-size: 0.85rem;
        font-weight: bold;
        animation: swipeAnim 1.5s infinite;
        z-index: 10;
        background: rgba(0,0,0,0.5);
        padding: 2px 10px;
        border-radius: 10px;
    }
}

/* حركة النبض للسحب */
@keyframes swipeAnim {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(-8px); opacity: 1; }
}

/* ---- إشعارات المبيعات (Social Proof) ---- */
.sales-popup {
    position: fixed;
    bottom: 20px;
    left: 20px; /* على الشمال عشان Crisp على اليمين */
    background: #121212; /* لون غامق شيك */
    border: 1px solid #ef4444; /* إطار أحمر زي الصورة */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); /* توهج أحمر */
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transform: translateY(150%); /* مخفي تحت الشاشة */
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* حركة نط خفيفة */
    direction: rtl;
}

.sales-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.sales-popup-title {
    color: #ef4444; /* لون النص زي الصورة */
    font-weight: bold;
    font-size: 1rem;
    margin: 0 0 4px 0;
}

.sales-popup-desc {
    color: #ddd;
    font-size: 0.85rem;
    margin: 0;
}

.sales-popup-icon {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .sales-popup {
        bottom: 80px; /* عشان مياكلش مساحة الموبايل من تحت */
        left: 50%;
        transform: translate(-50%, 150%);
        width: 90%;
        justify-content: center;
    }
    .sales-popup.show {
        transform: translate(-50%, 0);
    }
}

/* ---- تظبيط شكل الخصومات ---- */
.old-price {
    text-decoration: line-through;
    color: #6b7280; /* رمادي مطفي */
    font-size: 1.1rem;
    margin-left: 8px;
    font-weight: normal;
}

.discount-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: #ef4444; /* لون أحمر ناري */
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
    transform: rotate(-3deg); /* لفة بسيطة بتدي شكل ديناميكي */
    z-index: 2;
}

/* عشان البادج يظبط لازم كارت الباقة نفسه يكون relative */
.pricing-card {
    position: relative;
}

/* ========================================= */
/* ---- زرار اليوتيوب السحري ---- */
/* ========================================= */
.btn-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-youtube:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
    color: white;
}

/* حركة نبض خفيفة للزرار عشان تلفت الانتباه */
.pulse-yt {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}
