﻿/* ================= إعدادات عامة وألوان بريميوم ================= */
:root {
    --primary-navy: #1a2b4c;      /* كحلي ملكي */
    --secondary-blue: #2980b9;    /* أزرق جذاب */
    --Newaccent-gold: #d9c696;       /* ذهبي إيطالي فخم */
    --accent-gold: #d4af37;       /* ذهبي إيطالي فخم */
    --accent-gold-hover: #b8962d; /* ذهبي داكن للمرور */
    --bg-color: #f0f4f8;          /* خلفية رمادية مزرقة مريحة للعين */
    --card-bg: #ffffff;           /* لون الكروت */
    --text-main: #2c3e50;         /* لون الخط الأساسي */
    --success: #27ae60;           /* أخضر للنجاح والفتح */
    --AGreen: #1f8b4c;            /* أخضر جديد*/
    --danger: #e74c3c;            /* أحمر للإلغاء */
    --Caffe: #91866a;            /* كافية */
    --Cacao: #ede7da;            /* كاكاو */


}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top right, #e2eafc, #f0f4f8);
    direction: rtl;
    text-align: center;
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* ================= صفحة الدخول ================= */
.login-page {
    background: url('Venice.png') center center / cover no-repeat;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;

}

.login-box {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(.1px);

    width: 100%;
    max-width: 440px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.5);
    height: auto;
    min-height: fit-content;
    box-sizing: border-box;
overflow-y: auto;
}

.login-box:hover {
    transform: translateY(-5px);
}

.login-box h1 {
    color: var(--success);
    margin-bottom: 5px;
    font-size: 28px;
    font-weight: 800;
}

.login-box h3 {
    color: var(--secondary-blue);
    margin-top: 0;
    font-size: 28px;
    font-weight: 500;
}

/* ================= الحقول والأزرار ================= */
.form-input, .login-box input {
    width: 90%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f8fbff;
}

.form-input:focus, .login-box input:focus {
    border-color: var(--secondary-blue);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(41, 128, 185, 0.1);
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.btn-demo { 
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover)); 
    color: white; 
}
.btn-login { 
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue)); 
    color: white; 
}
.btn-logout { 
    background: var(--danger); 
    color: white; 
    width: auto; 
    float: left; 
    margin: 20px; 
    padding: 10px 20px;
    border-radius: 8px;
}
.btn-home { 
    background: var(--primary-navy); 
    color: white; 
    margin-bottom: 20px; 
    width: auto;
}

/* ================= الهيدر والتابات العلوية ================= */
.header-area {
    padding: 15px 30px;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-gold);
}

.header-area h2 {
    color: var(--primary-navy);
    margin: 0;
}

.top-tabs {

    display: flex;

    justify-content: center;

    flex-wrap: nowrap;
    overflow-x: auto;

    
    gap: 3px;


    margin: 8px auto;


    background: var(--Newaccent-gold);


    padding: 12px 15px;


    border-radius: 30px;


    width: max-content;
    max-width: 98%; /* لضمان عدم خروجه عن حدود الشاشة */

    box-sizing: border-box;

    scrollbar-width: none;



    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.top-tab {

    padding: 4px 6px;


    border-radius: 20px;


    font-size: 17px;


    font-weight: bold;
    transition: all 0.25s ease;

    color: #10233f;

}



.top-tab:hover {

    background: var(--Caffe);


    color: #fff;


    box-shadow: 0 1px 2px rgba(0,0,0,.12);

}

/* الكلاس الجديد لتثبيت الظل الأزرق على التاب المختار */
.active-tab {
    background-color: var(--Caffe) !important;
    color: #fff !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2), 0 4px 10px rgba(41, 128, 185, 0.4) !important;

}

.menu-container{
    position: relative;
}

.menu-btn{
    background: transparent;
    border: none;
    color: #5b0f1d; /* نبيتي غامق */
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}

.menu-btn:hover{
    opacity: .8;
}

.menu-container{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-btn{
    background: transparent;
    border: none;
    color: #5b0f1d; /* نبيتي غامق */
    font-size: 34px;
    cursor: pointer;
    z-index: 1000;
}

.logout-box{
    display: none;

    margin-right: 10px;

    animation: slideIn .25s ease;
}

.logout-box.show{
    display: block;
}

.logout-box .btn-logout{
    margin: 0;
    float: none;
    width: auto;
    white-space: nowrap;
}

@keyframes slideIn{
    from{
        opacity:0;
        transform:translateX(20px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

.login-box input[type="email"],
.login-box input[type="password"]{
    direction: ltr;
    text-align: left;
}
/* ================= المربعات والمستويات ================= */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 10%;
}

.level-box {
    background-color: var(--card-bg);
    border: none;
    border-radius: 15px;
    padding: 40px 20px;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.level-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent-gold);
    transition: all 0.3s ease;
}

.level-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.level-unlocked { 
    color: var(--primary-navy); 
    cursor: pointer; 
}
.level-unlocked:hover::before {
    width: 100%;
    background: rgba(212, 175, 55, 0.1);
    z-index: 0;
}
.level-unlocked:hover { color: var(--accent-gold-hover); }

.level-locked { 
    background-color: #abadb0; 
    color:#020f1f; 
    cursor: not-allowed; 
}
.level-locked::before { background: #cbd5e0; }
.level-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:12px;
}

.level-desc{
    font-size:14px;
    line-height:1.7;
    color:#665;
    margin-top:10px;
}


/* ================= تابات مستوى A1 ================= */
.a1-tabs-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    gap: 3px;
    margin: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) #f0f0f0;
}

.a1-tab {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    flex: 0 0 auto;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.a1-tab:hover { 
    background: var(--Cacao); 
    color: white; 
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

/* الكلاس الجديد لتثبيت التحديد اللوني على تابات A1 */
.active-a1-tab {
    background: var(--accent-gold) !important;
    color: white !important;
    border-color: var(--accent-gold) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4) !important;
}



/* تنسيقات البانر المميز */
.premium-banner {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    border: 2px solid #ffd700; /* إطار ذهبي */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.subscribe-btn {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
}

.subscribe-btn:hover {
    transform: scale(1.05);
}


/* ================= تصميم الحروف (تأثير السيراميك اللامع) ================= */
.alphabet-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    direction: ltr;
}

.ceramic-letter {
    font-size: 32px;
    font-weight: bold;
    width: 70px;
    height: 70px;
    border-radius: 15px;
    border: none;
    /* تدرج لوني يعطي إيحاء السيراميك الأبيض اللامع */
    background: linear-gradient(135deg, #ffffff 0%, #e6e9f0 100%);
    color: var(--primary-navy);
    cursor: pointer;
    /* ظلال خارجية وداخلية لعمل بروز ثلاثي الأبعاد (3D) */
    box-shadow: 
        -4px -4px 10px rgba(255, 255, 255, 1),
        4px 4px 10px rgba(0, 0, 0, 0.15),
        inset 2px 2px 5px rgba(255, 255, 255, 0.9),
        inset -2px -2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ceramic-letter:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--secondary-blue);
    box-shadow: 
        -6px -6px 15px rgba(255, 255, 255, 1),
        6px 6px 15px rgba(0, 0, 0, 0.2),
        inset 2px 2px 5px rgba(255, 255, 255, 0.9),
        inset -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.ceramic-letter:active {
    transform: translateY(2px);
    box-shadow: 
        inset 4px 4px 10px rgba(0, 0, 0, 0.15),
        inset -4px -4px 10px rgba(255, 255, 255, 0.8);
}

.rules-title {
    color: var(--primary-navy);
    font-size: 26px;
    font-weight: bold;
    margin-top: 40px;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 5px;
}

/* ================= تصميم البانر البريميوم (Chic Banner) ================= */
.chic-premium-banner {
    background: linear-gradient(135deg, #10233f 0%, #1a2b4c 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    color: white;
    margin: 40px auto 20px;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

/* تأثير لمعان خفيف في خلفية البانر */
.chic-premium-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 60%);
    transform: rotate(45deg);
    pointer-events: none;
}

.chic-banner-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.chic-premium-banner h3 {
    color: var(--accent-gold);
    font-size: 26px;
    margin: 0 0 10px 0;
    font-weight: 900;
}

.chic-premium-banner p {
    color: #e2e8f0;
    font-size: 18px;
    margin-bottom: 25px;
}

.chic-subscribe-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8962d 100%);
    color: #10233f;
    border: none;
    padding: 14px 40px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.chic-subscribe-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
    color: #000;
}


/* =======================================================
   طَبَقَة التَّحْسِينِ البِرِيمْيُوم الزُّجَاجِيِّ (PREMIUM GLOSSY GLASS EFFECT)
======================================================= */

/* 1. تحويل شريط التابات الرئيسية العلوي إلى زجاج مصقول فاخر بإنعكاس علوي */
.top-tabs {
    background: linear-gradient(0deg, rgba(50, 60, 90, 0.95), rgba(200, 250, 280, 0.9)) !important;
    backdrop-filter: blur(12px); /* تأثير ضبابية الزجاج الخلفي */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4) !important; /* إطار سفلي ذهبي شبه شفاف كحافة الزجاج */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.25) !important; /* إضاءة داخلية علوية تعطي سمك الزجاج */
    border-radius: 0 0 16px 16px;
    position: relative;
    overflow: hidden;
}

/* 2. تحويل شريط تابات المستويات (A1) إلى منصة زجاجية كريستالية دائرية واضحة */
.a1-tabs-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 244, 248, 0.6)) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06), 
                inset 0 1px 3px rgba(255, 255, 255, 0.9) !important; /* خط لمعان أبيض داخلي */
    border-radius: 30px !important;
    padding: 8px 20px !important;
}

/* 3. تهيئة كافة الأزرار والتابات والمربعات التفاعلية لاستقبال وميض الزجاج اللامع */
.btn, 
.top-tab, 
.a1-tab, 
.pay-btn, 
.chic-subscribe-btn, 
.menu-btn,
.login-box button,
.level-locked,
.level-card {
    position: relative !important;
    overflow: hidden !important; /* هام جداً لحصر وميض الضوء داخل حدود المربع فقط */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important; /* حركة مرنة فائقة الانسيابية */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3) !important; /* لمعة على حافة الزر العلوية */
}

/* حركات تفاعلية ممتعة (Micro-interactions) عند تمرير الماوس فوق أي زر أو تاب */
.btn:hover, 
.top-tab:hover, 
.a1-tab:hover, 
.level-locked,
.pay-btn:hover, 
.chic-subscribe-btn:hover,
.level-card:hover {
    transform: translateY(-3px) scale(1.02); /* طفو خفيف وجذاب لأعلى */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5) !important; /* زيادة وهج الحافة */
}

/* 4. كود وميض الضوء اللامع الخاطف المائل (The Premium Glass Shine Effect) */
.btn::after, 
.top-tab::after, 
.a1-tab::after, 
.pay-btn::after, 
.chic-subscribe-btn::after,
.menu-btn::after,
.level-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%; /* تبدأ اللمعة مخفية في اليسار خارج العنصر */
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.55) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-30deg); /* جعل شعاع الضوء مائلاً بزاوية حادة ليعطي لمعان حقيقي */
    transition: none;
    pointer-events: none;
}

/* إطلاق وميض الضوء الخاطف ليمر بسرعة من اليسار إلى اليمين فور ملامسة الماوس للعنصر */
.btn:hover::after, 
.top-tab:hover::after, 
.a1-tab:hover::after, 
.pay-btn:hover::after, 
.chic-subscribe-btn:hover::after,
.menu-btn:hover::after,
.level-card:hover::after {
    left: 150%;
    transition: all 0.5s ease-in-out; /* سرعة انزلاق حركة الضوء */
}

/* 5. ترقية التاب النشط حالياً (Active) ليعطي إضاءة كريستالية ذهبية بارزة وثابتة */
.active-a1-tab, .top-tab.active {
    background: linear-gradient(135deg, #d4af37, #b8962d) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.4) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.55), 
                inset 0 1px 2px rgba(255,255,255,0.5) !important;
}




/* =======================================================
   تنسيقات نافذة المستويات المغلقة (Premium Locked Modal)
======================================================= */
.locked-modal-overlay {
    display: none; /* مخفية افتراضياً */
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(10, 20, 40, 0.4);
    backdrop-filter: blur(10px); /* التمويه الزجاجي للخلفية */
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    direction: rtl;
}

/* تفعيل ظهور النافذة */
.locked-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.locked-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 244, 248, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.5); /* إطار ذهبي خفيف */
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 85%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* حركة دخول النافذة */
.locked-modal-overlay.show .locked-modal-content {
    transform: translateY(0) scale(1);
}

.locked-icon {
    font-size: 50px;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.locked-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* تنسيق زر الإغلاق */
.close-modal-btn {
    background: #e0e0e0 !important;
    color: #333 !important;
    border: none !important;
    box-shadow: none !important;
}
.close-modal-btn:hover {
    background: #d0d0d0 !important;
}


/* إزالة علامة المنع (Stop) من المستويات المغلقة وجعل المؤشر طبيعياً */
.locked-level, 
.locked-tab,
.level-locked, 
[disabled], 
.disabled-level {
    cursor: pointer !important;
}



/* ================= الجداول والكورسات (الاشتراك والدفع) ================= */
.split-table {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
}

.table-half {
    width: 48%;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.table-title {
    background: var(--primary-navy);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 0;
    box-shadow: 0 4px 10px rgba(26, 43, 76, 0.2);
}

.course-box {
    border: 2px solid #e2e8f0;
    padding: 18px;
    margin: 15px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    text-align: right;
    position: relative;
}

.course-box:hover {
    border-color: var(--secondary-blue);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.1);
}

.course-price {
    color: var(--accent-gold-hover);
    font-weight: bold;
    display: block;
    margin-top: 8px;
    font-size: 18px;
}

.course-selected {
    border-color: var(--success);
    background-color: #f0fdf4;
}

.course-selected::after {
    content: "✔";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--success);
}
.booking-title{
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.booking-phone{
    margin-top: 0;
    font-size: 18px;
    font-weight: 500;
}

/* ================= طرق الدفع ================= */
.pay-btn {
    font-size: 18px;
    margin: 10px;
    width: 45%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vf-btn {
    background: linear-gradient(135deg, #e60000, #b30000);
    color: white;
}

.vf-btn:hover { box-shadow: 0 8px 15px rgba(230, 0, 0, 0.3); }

.bank-btn {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    color: white;
}

.bank-btn:hover { box-shadow: 0 8px 15px rgba(41, 128, 185, 0.3); }

/* تحسين السكرول بار للمتصفح */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 5px; }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold-hover); }

/* ================= تصميم فورم الحجز الجديد والنجمة الإلزامية ================= */
/* ================= تصميم حاوية الإدخال والنجمة الإلزامية ================= */
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* المسافة بين الحقل والنجمة */
    width: 100%;
    margin-bottom: 15px;
}

.input-wrapper .form-input {
    margin: 0 !important; /* نلغي الهوامش القديمة حتى يتناسق مع النجمة */
    flex: 1; /* يجعل الحقل يتمدد ليأخذ كل المساحة المتاحة بجوار النجمة */
}

.required-star {
    color: red;
    font-size: 24px;
    font-weight: bold;
    /* مسحنا المواقع المطلقة (Absolute) لتبقى النجمة ثابتة بالخارج */
    position: static; 
    transform: none;
    line-height: 1; /* لضبط النجمة في المنتصف تماماً بجوار الحقل */
}


/* ================= ضبط حقل رقم الموبايل (النص يمين والأرقام يسار) ================= */
input[type="tel"] {
    direction: ltr; /* اتجاه كتابة الأرقام من اليسار لليمين */
    text-align: left; /* محاذاة الأرقام لليسار */
}

input[type="tel"]::placeholder {
    direction: rtl; /* اتجاه الكلمة الإرشادية "رقم الموبايل" */
    text-align: right; /* محاذاة الكلمة الإرشادية لليمين */
}


.course-selection-container {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    text-align: right;
}

.course-type-box {
    flex: 1;
    background: #f8fbff;
    border: 2px solid var(--secondary-blue);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.box-title {
    color: var(--primary-navy);
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid var(--Newaccent-gold);
    padding-bottom: 10px;
}

.course-option {
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-option:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.course-option.selected {
    background: #f0fdf4;
    border-color: var(--success);
    box-shadow: inset 0 0 0 2px var(--success);
}

.course-option strong {
    display: block;
    color: var(--primary-navy);
    font-size: 15px;
    margin-bottom: 5px;
}

.option-features {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* ================= كلمة "أو" وأزرار الدفع ================= */
.or-divider {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-gold);
    background: var(--primary-navy);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: auto;
}

.payment-type-btn {
    background-color: #fff !important; /* توحيد اللون */
    color: var(--primary-navy) !important;
    border: 2px solid #e1e8ed !important;
    transition: all 0.3s ease;
}

.payment-type-btn.active-pay {
    background-color: var(--secondary-blue) !important;
    color: white !important;
    border-color: var(--primary-navy) !important;
    transform: scale(0.96) !important; /* تأثير الضغط لأسفل */
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.3) !important; /* ظل داخلي للعمق */
}

/* ================= تأثير الزر النشط في تاب الاشتراك ================= */
.active-sub-btn {
    background-color: var(--secondary-blue) !important;
    color: white !important;
    border-color: var(--primary-navy) !important;
    transform: scale(0.96) !important;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.3) !important;
}

/* ================= توافق الموبايل والشاشات الصغيرة ================= */

@media screen and (max-width: 768px) {
    /* 1. إصلاح الهوامش الجانبية لتوفير مساحة على الموبايل */    .levels-grid, 
    #subscription-section, 
    #inquiry-section, 
    #support-section {        padding: 15px 5% !important; /* تقليل الفراغات الجانبية */
    }

    .a1-tabs-container {        margin: 15px 5% !important;
    }    /* 2. جعل الجداول (كورس خاص / مجموعة) تظهر فوق بعضها بدلا من بجوار بعضها */
    .split-table {        flex-direction: column;        gap: 15px;
    }    .table-half {        width: 100% !important;        box-sizing: border-box;    }

    /* 3. أزرار الدفع (فودافون كاش / بنك) تأخذ عرض الشاشة بالكامل */
    .pay-btn {        width: 100% !important;        margin: 10px 0 !important;
    }

    /* 4. تحسين شكل صندوق تسجيل الدخول لتناسب شاشة الموبايل */    .login-box {
        padding: 20px;
        width: 95%;
    }    .login-box h1 { font-size: 24px; }
    .login-box h3 { font-size: 18px; }   /* 5. ضبط حجم الخطوط في التابات العلوية */
    .top-tabs {
        width: 100%;
        gap: 0px; /* إلغاء الفراغات الزائدة لتوفير المساحة */
        padding: 8px 2px; /* زيادة سمك الشريط الذهبي على الموبايل */
        justify-content: space-evenly; /* توزيع التابات بالتساوي دون تمطيط */
    }
    
    .top-tab {
        padding:10px 10px; /* تحديد حجم الزر الأزرق ليكون على قدر الكلمة فقط */
        font-size: 15px; /* تكبير الخط قدر الإمكان للموبايل */
        font-weight: bold; /* جعل الخط عريض */
        white-space: nowrap; /* منع انقسام الكلمات */
        /* تم إزالة flex: 1 لمنع تمدد الزر الأزرق باختلاف الكلمات */
    }

}
/* إعدادات الشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    /* 1. إلغاء الهوامش الجانبية الكبيرة لتوسيع مساحة العرض */
    #a1-tabs-container,
    #a1-content {
        margin: 0 2% 20px 2% !important; /* تقليل الهامش من 10% إلى 2% */
        padding: 10px !important;
    }
    
    #subscription-section,
    #inquiry-section,
    #support-section {
        padding: 15px 3% !important;
    }

    /* 2. تصغير حجم الخطوط للتغلب على التنسيقات المضمنة (inline styles) */
    .lesson-content h2 { font-size: 16px !important; }
    .lesson-content h3 { font-size: 14px !important; }
    
    /* تصغير النصوص العادية والكلمات */
    .lesson-content p, 
    .lesson-content strong, 
    .lesson-content span { 
        font-size: 12px !important; 
    }
    
    /* تصغير خطوط الجداول (مثل جدول القواعد) ليتسع في الموبايل */
    .lesson-content table tbody tr td,
    .lesson-content table thead tr th {
        font-size: 11px !important;
        padding: 5px !important;
    }
    
    /* تصغير الحروف البارزة في القاعدة (مثل a, o, e, i) */
    .lesson-content table tbody tr td[style*="font-size: 24px"] {
        font-size: 14px !important;
    }
    
    /* تصغير الأزرار والكلمات داخل المربعات */
    .ceramic-letter {
        font-size: 14px !important;
        padding: 8px !important;
    }
}




/* ترتيب الجداول فوق بعضها في الموبايل */
    .course-selection-container {
        flex-direction: column;
    }


/* جعل الحاوية الخارجية شفافة تماماً لمنع ظهور المستطيل الفارغ */
#a1-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 20px auto !important;
    width: 100%;
}

/* توحيد ستايل محتوى كل درس ليظهر داخل كارت أبيض احترافي مريء */
.lesson-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 25px !important;
    border: 1px solid #e2e8f0 !important;
}

/* منع تحديد النصوص والنسخ */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* منع الطباعة أو حفظ الصفحة كملف PDF */
@media print {
    body {
        display: none !important;
    }
}




@media print {
    body * {
        display: none !important;
    }
    body::after {
        content: "المحتوى محمي بحقوق الطبع والنشر ولا يمكن طباعته أو حفظه.";
        display: block;
        text-align: center;
        font-size: 24px;
        font-weight: bold;
        margin-top: 50px;
    }
}


img{
    pointer-events:none;
    user-select:none;

    -webkit-user-drag:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
}

body{

    user-select:none;

    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;

}



/* تنسيق صناديق محتوى التابات الجديدة ليطابق كروت الدروس السابقة تماماً */
.tab-content-box {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 25px !important;
    border: 1px solid #e2e8f0 !important;
}



/* تنسيق لتوسيط عنوان القواعد المتقدمة */
.rules-title {
    text-align: center !important;
    width: 100%;
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
}




/* التنسيق الافتراضي للاب توب والشاشات الكبيرة (3 مربعات في كل سطر) */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}

/* التنسيق الخاص بالموبايل (مربع واحد فوق الآخر) */
@media (max-width: 768px) {
    .levels-grid {
        grid-template-columns: 1fr;
    }
}


/* حاوية المحتوى الأساسية (تأكد أن الدروس داخلها) */
#a1-content {
    position: relative;
    overflow: hidden; /* لمنع خروج العلامة المائية خارج الإطار */
}






/* كود التوزيع الشطرنجي المتبادل للعلامة المائية (نص نظيف بدون ظلال) */
#a1-content::after {
    /* 
       تم ترتيب الأسطر بحيث يبدأ سطر بمسافة بادئة والسطر التالي يبدأ بالنص مباشرة 
       لعمل التوزيع المتبادل المنتظم (زيج زاج) على كامل الشاشة
    */
    content: 
        "                                   Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121 \a\a\a"
        "Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121 \a\a\a"
        "                                   Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121 \a\a\a"
        "Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121 \a\a\a"
        "                                   Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121 \a\a\a"
        "Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121 \a\a\a"
        "                                   Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121 \a\a\a"
        "Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121                         Signor: Ashraf Abdel Maseeh   01092062121";
    
    position: fixed;
    top: 50%;
    left: 50%;
    /* تدوير الكتلة النصية بالكامل بزاوية 45 درجة */
    transform: translate(-50%, -50%) rotate(-45deg);
    
    /* احترام الفراغات والأسطر الجديدة المكتوبة في الكود */
    white-space: pre;
    
    /* لون النص الصافي بوضوح خفيف مريح للعين */
    color: rgba(0, 0, 0, 0.09);
    
    /* حجم الخط وإعداداته */
    font-size: 20px;
    font-weight: bold;
    font-family: inherit;
    
    /* محاذاة لليسار لضمان تفعيل المسافات البادئة الشطرنجية بشكل سليم */
    text-align: left;
    
    /* المسافة الرأسية بين الأسطر لضمان عدم التداخل */
    line-height: 2.8;
    
    /* حماية تفاعل الأزرار خلف العلامة المائية */
    pointer-events: none;
    z-index: 999999;
}