:root {
    /* ألوان الغابة - Forest */
    --c-forest-1: #428177;
    --c-forest-2: #054239;
    --c-forest-3: #002623;
    
    /* ألوان القمح الذهبي - Golden Wheat */
    --c-wheat-1: #edebe0;
    --c-wheat-2: #b9a779;
    --c-wheat-3: #988561;
    
    /* ألوان التدرج الغامق - Deep Umber */
    --c-umber-1: #6b1f2a;
    --c-umber-2: #4a151e;
    --c-umber-3: #260f14;
    
    /* ألوان محايدة - Charcoal */
    --c-white: #ffffff;
    --c-charcoal: #3d3a3b;
    --c-black: #161616;
}

/* --------------------------------------
   Fonts Setup
-------------------------------------- */
@font-face {
    font-family: 'itfQomraArabic';
    src: url('../fonts/itfQomraArabic-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'itfQomraArabic';
    src: url('../fonts/itfQomraArabic-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'itfQomraArabic';
    src: url('../fonts/itfQomraArabic-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'itfQomraArabic';
    src: url('../fonts/itfQomraArabic-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'itfQomraArabic';
    src: url('../fonts/itfQomraArabic-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* --------------------------------------
   Global Styles
-------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* لضبط التمرير أسفل الهيدر الثابت */
}

body {
    font-family: 'itfQomraArabic', sans-serif;
    color: var(--c-charcoal);
    background-color: var(--c-wheat-1);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* مسافة لتفادي تداخل المحتوى مع الهيدر الثابت */
#app-content {
    padding-top: 110px;
}

/* Helper Classes */
.text-forest-2 { color: var(--c-forest-2) !important; }
.text-wheat-1 { color: var(--c-wheat-1) !important; }
.text-wheat-2 { color: var(--c-wheat-2) !important; }

.transition-all {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------
   Header & Navbar
-------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background-color: var(--c-forest-3);
    height: 32px;
    overflow: hidden;
}

.site-logo {
    height: 60px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-forest-2);
}

.navbar-nav .nav-link {
    color: var(--c-forest-2);
    margin: 0 8px;
    position: relative;
    font-weight: 500;
    font-size: 1.05rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--c-wheat-2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* تأثير التمرير (النزول لأسفل) - تصغير الهيدر */
.main-header.scrolled .top-bar {
    height: 0;
    padding: 0 !important;
    opacity: 0;
}

.main-header.scrolled .site-logo {
    height: 45px;
}

.main-header.scrolled .brand-text {
  
}

/* --------------------------------------
   Hero Slider Section
-------------------------------------- */
/* --------------------------------------
   Modern Hero Slider Section (Redesigned)
-------------------------------------- */
.modern-hero-section {
    position: relative;
    height: calc(100vh - 110px);
    min-height: 600px;
    background-color: var(--c-forest-3);
    overflow: hidden;
}

/* صورة الخلفية: بديل أكثر قوة من backgrond-image يمنع مشكلة الشاشة السوداء */
.hero-bg-img {
    position: absolute;
    inset: 0; /* تعني top:0, right:0, bottom:0, left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 12s ease-out;
    filter: brightness(0.65) saturate(1.1); /* تغميق الصورة بشكل احترافي لدعم النص */
}

.carousel-item.active .hero-bg-img {
    transform: scale(1);
}

/* هندسة التصميم المرن الداخلي */
.hero-layout-grid {
    display: flex;
    align-items: center; /* توسيط عمودي */
}

/* اللوحة الجانبية للنص (تعمل يمين أو يسار حسب اللغة تلقائياً) */
.hero-content-panel {
    background: rgba(0, 38, 35, 0.75); /* --c-forest-3 شبه شفاف */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 55%;
    max-width: 650px;
    padding: 4rem 3.5rem;
    position: relative;
    /* خط تصميمي يضفي طابعاً مؤسساتياً فخماً */
    border-inline-start: 4px solid var(--c-wheat-2); 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modern-category {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-line {
    width: 30px;
    height: 2px;
    background-color: var(--c-wheat-2);
    margin-inline-end: 15px; /* يدعم اللغتين تلقائياً */
}

.category-text {
    color: var(--c-wheat-2);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.modern-title {
    color: var(--c-white);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.modern-excerpt {
    color: var(--c-wheat-1);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* الزر الحديث المستوحى من وكالات الأخبار والهيئات */
.modern-btn {
    display: inline-flex;
    align-items: center;
    color: var(--c-wheat-2);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.modern-btn .btn-icon {
    margin-inline-start: 12px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.modern-btn:hover {
    color: var(--c-white);
    border-bottom-color: var(--c-wheat-2);
}

.modern-btn:hover .btn-icon {
    /* الحركة تعتمد على اللغة، نحلها باستخدام الاتجاه المنطقي */
}
html[dir="rtl"] .modern-btn:hover .btn-icon { transform: translateX(-8px); }
html[dir="ltr"] .modern-btn:hover .btn-icon { transform: translateX(8px); }

/* --- أدوات التحكم السفلية المبتكرة --- */
.modern-controls {
    bottom: 40px;
    left: 0;
    right: 0;
}

.controls-wrapper {
    display: flex;
    align-items: center;
    background: rgba(22, 22, 22, 0.9); /* --c-black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: max-content;
    padding: 0 1rem;
    border-radius: 40px;
}

.slide-numbers {
    display: flex;
    align-items: center;
    color: var(--c-white);
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    margin-inline-end: 20px;
}

.slide-numbers .divider {
    color: var(--c-wheat-3);
    margin: 0 8px;
    font-weight: normal;
}

.modern-progress-bar {
    width: 150px;
    height: 3px;
    background-color: rgba(255,255,255,0.2);
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    margin-inline-end: 20px;
}

.progress-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0; /* في حالة RTL نعكس لاحقاً إذا أردت الحركة من اليمين، لكن اليسار لليمين قياسي لخط التقدم */
    width: 0%;
    background-color: var(--c-wheat-2);
}

html[dir="rtl"] .progress-fill { left: auto; right: 0; } /* يملأ الشريط من اليمين لليسار في العربي */

.animate-progress {
    animation: progressBar 7s linear forwards;
}

@keyframes progressBar {
    0% { width: 0; }
    100% { width: 100%; }
}

.nav-buttons {
    display: flex;
    border-inline-start: 1px solid rgba(255,255,255,0.2);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--c-wheat-1);
    padding: 15px 15px;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.nav-btn:hover {
    color: var(--c-wheat-2);
    transform: scale(1.1);
}

/* 
  تأثير حركة النصوص المتتالية الاحترافية
  استبدلنا TranslateX بـ TranslateY لتجنب أي إشكالات في الإزاحة مع RTL
*/
.carousel-item .panel-inner > * {
    opacity: 0;
    transform: translateY(20px);
}
.carousel-item.active .panel-inner .modern-category { animation: textFadeUp 0.8s ease forwards 0.4s; }
.carousel-item.active .panel-inner .modern-title { animation: textFadeUp 0.8s ease forwards 0.6s; }
.carousel-item.active .panel-inner .modern-excerpt { animation: textFadeUp 0.8s ease forwards 0.8s; }
.carousel-item.active .panel-inner .modern-btn { animation: textFadeUp 0.8s ease forwards 1s; }


.official-indicators {
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) !important;
  width: max-content;
}


@keyframes textFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* شاشات الجوال */
@media (max-width: 991px) {
    .modern-hero-section {
        height: calc(100vh - 75px);
    }
    
    .hero-content-panel {
        width: 100%;
        max-width: 100%;
        padding: 2.5rem 1.5rem;
        margin-top: auto; /* يجعله في الأسفل على الجوال */
        margin-bottom: 120px; /* لترك مساحة لأزرار التحكم */
    }
    
    .hero-layout-grid {
        align-items: flex-end; /* وضع المحتوى بالأسفل للموبايل */
    }
    
    .modern-title { font-size: 2rem; }
    .modern-excerpt { font-size: 1rem; }
    
    .modern-progress-bar { width: 100px; }
}

/* --------------------------------------
   Footer Section
-------------------------------------- */
.main-footer {
    background-color: var(--c-forest-3);
    border-top: 5px solid var(--c-wheat-2);
}

.footer-logo {
    height: 70px;
    width: auto;
}

.footer-title {
    color: var(--c-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--c-wheat-2);
    border-radius: 2px;
}
html[dir="rtl"] .footer-title::after { right: 0; }
html[dir="ltr"] .footer-title::after { left: 0; }

.footer-text {
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.8;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--c-wheat-1);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.8;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--c-wheat-2);
    opacity: 1;
    transform: translateX(-5px);
}
html[dir="ltr"] .footer-links a:hover { transform: translateX(5px); }

.footer-contact li {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.05);
    color: var(--c-wheat-1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--c-wheat-2);
    color: var(--c-forest-3);
    transform: translateY(-5px);
}

.border-top {
    border-top-color: rgba(255,255,255,0.1) !important;
}

.footer-bottom p, .footer-bottom a {
    font-size: 0.95rem;
}
.footer-bottom a {
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: var(--c-white) !important;
}

/* --------------------------------------
   Official & Professional Hero Slider
-------------------------------------- */
.hero-section-official {
    position: relative;
    height: calc(100vh - 110px);
    min-height: 550px;
    background-color: var(--c-forest-3);
}

/* حل جذري لمشكلة حجم الصورة: طبقة ثابتة الأبعاد تماماً */
.slider-bg-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05); /* تقريب بسيط ليتم تصغيره */
    transition: transform 8s ease-out;
    z-index: 1;
}

.carousel-item.active .slider-bg-layer {
    transform: scale(1); /* تأثير التقريب الاحترافي */
}

/* غطاء غامق محايد الاتجاه (يلغي مشاكل الدرجات الخطية LTR/RTL) */
.slider-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 38, 35, 0.4) 0%, rgba(0, 38, 35, 0.8) 100%);
    z-index: 2;
}

/* تنسيق موقع الحاوية في المنتصف/الجانب */
.slider-content-container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center; /* يتوسط عمودياً */
}

/* --- تصميم البطاقة المستطيلة (المستطيل الاحترافي الأصغر) --- */
.official-card {
    width: 100%;
    max-width: 700px;                    /* ← أعرض من قبل */
    background: linear-gradient(135deg,
        rgba(0, 38, 35, 0.94) 0%,
        rgba(5, 66, 57, 0.88) 100%);    /* ← تدرّج يضيف عمقاً */
    
    
    border: 1px solid rgba(185, 167, 121, 0.35);
    border-inline-start: 4px solid var(--c-wheat-2); /* خط ذهبي جانبي احترافي */
    border-radius: 6px;
    padding: 1.75rem 2.25rem;            /* ← أقصر رأسياً، أوسع أفقياً */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* لمعة خفيفة في الزاوية العلوية (لمسة فخمة) */
.official-card::before {
    content: '';
    position: absolute;
    top: -60%;
    inset-inline-end: -20%;              /* يدعم RTL/LTR */
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(185, 167, 121, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

/* العلامة (tag) — أصغر قليلاً */
.official-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
     color: var(--c-white);
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 0.85rem;
    letter-spacing: 0.5px;
}

/* العنوان — أنسب لعرض 700px */
.official-title {
    color: var(--c-white);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

/* المقتطف — سطران كحد أقصى لضمان بقاء البطاقة عريضة وقصيرة */
.official-excerpt {
    color: var(--c-wheat-1);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    opacity: 0.88;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* الزر — أخف وأرشق */
.official-btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    background-color: transparent;
    color: var(--c-wheat-2);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--c-wheat-2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.official-btn:hover {
    background-color: var(--c-wheat-2);
    color: var(--c-forest-3);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(185, 167, 121, 0.3);
}

.official-indicators {
    bottom: 35px;
    margin-bottom: 0;
    justify-content: flex-start; /* تتموضع على الطرف المعاكس للأسهم */
    margin-inline-start: auto; /* دعم تلقائي للغة */
}

.official-indicators button {
    width: 30px !important;
    height: 4px !important;
    background-color: rgba(255,255,255,0.4) !important;
    border: none !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
}

.official-indicators button.active {
    width: 50px !important;
    background-color: var(--c-wheat-2) !important;
}

/* حركات الدخول (Animations) */
.carousel-item .official-card {
    opacity: 0;
    transform: translateY(30px);
}
.carousel-item.active .official-card {
    animation: cardEntrance 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 0.3s;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* التوافق مع شاشات الموبايل */
@media (max-width: 768px) {
    .official-card {
        padding: 1.8rem;
        max-width: 95%; /* في الموبايل يأخذ مساحة الشاشة بشكل جيد */
        margin: 0 auto;
    }
    .slider-content-container {
        align-items: center; 
        justify-content: center;
    }
    .slider-nav-arrows {
        justify-content: center;
        bottom: 80px;
    }
    .official-indicators {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .official-card {
        padding: 1.25rem 1.4rem;         /* ← أقصر */
        max-width: 95%;
        margin: 0 auto;
    }
    .official-title {
        font-size: 1.2rem;               /* ← أصغر على الجوال */
        margin-bottom: 0.6rem;
    }
    .official-excerpt {
        font-size: 0.88rem;
        -webkit-line-clamp: 2;           /* سطران فقط */
        margin-bottom: 1rem;
    }
    .official-tag {
        font-size: 0.72rem;
        padding: 0.25rem 0.75rem;
        margin-bottom: 0.65rem;
    }
    .slider-content-container {
        align-items: center;
        justify-content: center;
    }
    .slider-nav-arrows {
        justify-content: center;
        bottom: 80px;
    }
    .official-indicators {
        justify-content: center;
    }
}

/* --------------------------------------
   Director Message Section
-------------------------------------- */
.director-section {
    
    position: relative;
    overflow: hidden;
    /* إعداد خلفية المضلعات */
    background-image: url('../img/pattern.png'); /* تأكد من وضع مسار صورتك هنا */
    background-size: 400px; /* تحكم بحجم المضلعات هنا */
    background-repeat: repeat;
    background-position: center;
}

/* إضافة طبقة تداخل لدمج المضلعات مع اللون الأبيض */
.director-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* دمج تدرج أبيض مع لون الخلفية لضمان نعومة المضلعات */
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.95) 60%);
    z-index: 0;
}

/* تحديث المحتوى ليكون فوق الطبقة المدمجة */
.director-section .container {
    position: relative;
    z-index: 1;
}

/* تأثير الـ Blur الاحترافي على المضلعات نفسها */
/* ملاحظة: الـ Blur على خلفية الصورة الكاملة قد يكون ثقيلاً، لذا نعتمد الشفافية العالية */
.director-section {
    background-blend-mode: overlay; /* يدمج المضلعات مع الخلفية */
    opacity: 1;
}

/* إضافة لمسة احترافية: خطوط إضاءة جانبية خفيفة */
.director-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--c-wheat-2), transparent);
    z-index: 1;
}



/* الصورة نفسها */
.director-img {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 38, 35, 0.15);
    width: 80%;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* الشارة العائمة */
.experience-badge {
    position: absolute;
    bottom: 5px;
    background: var(--c-forest-2);
    color: var(--c-white);
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(5, 66, 57, 0.3);
    z-index: 3;
    border: 4px solid var(--c-white);
}

html[dir="rtl"] .experience-badge { right: -15px; }
html[dir="ltr"] .experience-badge { left: -15px; }

/* تأثيرات الحركة (Hover) */
.director-image-box:hover .director-img {
    transform: translateY(-5px);
}
.director-image-box:hover .image-offset-bg {
    background-color: var(--c-wheat-2);
}

/* تنسيق النص */
.title-with-line {
    position: relative;
    padding-bottom: 15px;
}

.title-with-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--c-forest-1);
    border-radius: 2px;
}
html[dir="rtl"] .title-with-line::after { right: 0; }
html[dir="ltr"] .title-with-line::after { left: 0; }

.quote-wrapper {
    position: relative;
    padding-top: 20px;
}

.quote-icon {
    font-size: 1.5rem;
    
    position: absolute;
    top: -10px;
    opacity: 1;
    z-index: 0;
}

html[dir="rtl"] .quote-icon { right: -10px; }
html[dir="ltr"] .quote-icon { left: -10px; }

.director-text {
    font-size: 1.15rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.director-signature {
    border-top-color: var(--c-wheat-1) !important;
}

/* حركة الظهور عند التمرير (Scroll Reveal) */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }

.pattern-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/pattern.png');
    filter: blur(10px) opacity(0.05); /* بلور خفيف وشفافية منخفضة جداً */
    z-index: 0;
}

/* --------------------------------------
   Citizen Services Section (Premium Look)
-------------------------------------- */
.services-section {
    /* تدرج لوني احترافي: يبدأ من الأبيض ليندمج مع القسم السابق، وينتهي باللون القمحي الفاتح جداً */
    background: linear-gradient(135deg, var(--c-white) 0%, var(--c-wheat-1) 100%);
    border-top: 1px solid rgba(185, 167, 121, 0.15);
    position: relative;
}

.service-card {
    background-color: var(--c-white);
    border: 1px solid rgba(185, 167, 121, 0.2); /* إطار قمحي ناعم جداً */
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* ظل خفيف مائل للون الغابة لضمان بروز البطاقة فوق التدرج اللوني */
    box-shadow: 0 10px 30px rgba(5, 66, 57, 0.04); 
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* حركة البطاقة عند التمرير (رفع ناعم وتلوين الإطار وزيادة عمق الظل) */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(5, 66, 57, 0.09);
    border-color: var(--c-wheat-2);
}

.service-icon-box {
    width: 65px;
    height: 65px;
    background-color: var(--c-white); 
    color: var(--c-forest-1);
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    border: 1.5px solid rgba(185, 167, 121, 0.3); /* تمييز الأيقونة */
    box-shadow: 0 5px 15px rgba(185, 167, 121, 0.1);
}

.service-card:hover .service-icon-box {
    background-color: var(--c-forest-2);
    border-color: var(--c-forest-2);
    color: var(--c-white);
    transform: scale(1.05) translateY(-5px); /* حركة رفع داخلية للأيقونة */
}

.service-title {
    color: var(--c-forest-3);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--c-charcoal);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-action {
    display: flex;
    align-items: center;
    color: var(--c-forest-1);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service-arrow {
    margin-inline-start: 10px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-action {
    color: var(--c-umber-1);
}

html[dir="rtl"] .service-card:hover .service-arrow {
    transform: translateX(-8px);
}

html[dir="ltr"] .service-card:hover .service-arrow {
    transform: translateX(8px);
}

.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }

/* --- Evaluation Banner (CTA) --- */
.evaluation-banner {
    background: linear-gradient(135deg, var(--c-forest-2) 10%, var(--c-forest-3) 100%);    
    padding: 4rem 17rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(5, 66, 57, 0.25);
    border: 1px solid rgba(185, 167, 121, 0.2);
}

/* الأيقونة المائية الكبيرة في الخلفية لدعم الفخامة */
.banner-watermark {
    position: absolute;
    font-size: 14rem;
    color: rgba(255, 255, 255, 0.03); /* شفافية عالية جداً لتبدو كالظل */
    top: -30px;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.8s ease;
}

html[dir="rtl"] .banner-watermark { left: -20px; transform: rotate(-15deg); }
html[dir="ltr"] .banner-watermark { right: -20px; transform: rotate(15deg); }

.evaluation-banner:hover .banner-watermark {
    transform: rotate(0deg) scale(1.1);
}

html[dir="rtl"] .evaluation-banner { text-align: right; }
html[dir="ltr"] .evaluation-banner { text-align: left; }

/* زر التقييم التفاعلي */
.eval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-wheat-2);
    color: var(--c-forest-3);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(185, 167, 121, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid var(--c-wheat-2);
}

.eval-btn:hover {
    background-color: transparent;
    color: var(--c-wheat-2);
    box-shadow: 0 15px 25px rgba(185, 167, 121, 0.1);
    transform: translateY(-5px);
}

/* حركة النجمة داخل الزر عند التمرير */
.eval-btn:hover i {
    animation: starPulse 1s infinite alternate;
}

@keyframes starPulse {
    0% { transform: scale(1); color: var(--c-wheat-2); }
    100% { transform: scale(1.2); color: var(--c-white); }
}

/* توافق الجوال */
@media (max-width: 991px) {
    .evaluation-banner {
        padding: 2.5rem 1.5rem;
    }
    
    html[dir="rtl"] .evaluation-banner,
    html[dir="ltr"] .evaluation-banner {
        text-align: center; /* توسيط النص في الجوال */
    }
    
    .eval-btn {
        width: 100%; /* زر بعرض الشاشة في الموبايل */
        padding: 1rem;
    }
    
    .banner-watermark {
        font-size: 10rem;
        top: 10%;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) rotate(0deg) !important;
        opacity: 0.05;
    }
}

/* --------------------------------------
   Latest News Section
-------------------------------------- */
.news-section {
    border-top: 1px solid rgba(185, 167, 121, 0.15);
}

/* بطاقة الخبر */
.news-card {
    background-color: var(--c-white);
    border: 1px solid rgba(185, 167, 121, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(5, 66, 57, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(5, 66, 57, 0.12);
    border-color: var(--c-wheat-2);
}

/* حاوية الصورة وتأثير التكبير (Zoom) */
.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

/* شارة التاريخ العائمة */
.news-date-badge {
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 38, 35, 0.9); /* Forest 3 */
    color: var(--c-wheat-2);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
}

/* تموضع شارة التاريخ حسب اللغة (L/R) */
html[dir="rtl"] .news-date-badge { right: 0; border-top-left-radius: 12px; }
html[dir="ltr"] .news-date-badge { left: 0; border-top-right-radius: 12px; }

/* محتوى البطاقة */
.news-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1rem;
    /* تحديد سطرين كحد أقصى للعنوان للحفاظ على التناسق */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--c-wheat-3) !important;
}

.news-excerpt {
    color: var(--c-charcoal);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    /* تحديد 3 أسطر كحد أقصى للنص */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* يدفع زر "اقرأ المزيد" دائماً للأسفل */
}

/* رابط قراءة المزيد */
.news-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--c-forest-1);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding-top: 1rem;
    border-top: 1px dashed rgba(185, 167, 121, 0.4);
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-read-more {
    color: var(--c-umber-1);
}

html[dir="rtl"] .news-card:hover .news-read-more i { transform: translateX(-8px); }
html[dir="ltr"] .news-card:hover .news-read-more i { transform: translateX(8px); }


/* توسيط محتوى الـ collapse */
#navbarContent {
    justify-content: center;
}

#navbarContent .navbar-nav {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* على الموبايل: توسيط نص الروابط أيضًا */
@media (max-width: 991.98px) {
    #navbarContent {
        text-align: center;
    }
    #navbarContent .nav-item {
        width: 100%;
        text-align: center;
    }
}


/* --------------------------------------
   Announcements & Circulars Section
-------------------------------------- */
.ann-section {
    position: relative;
    overflow: hidden;
    /* تدرج هادئ يناسب تسلسل الأقسام */
    background: linear-gradient(180deg, var(--c-white) 0%, var(--c-wheat-1) 100%);
    border-top: 1px solid rgba(185, 167, 121, 0.15);
}

/* زخرفة خفيفة في الخلفية لتعزيز الابتكار */
.ann-section::before {
    content: '';
    position: absolute;
    top: -120px;
    inset-inline-end: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(185, 167, 121, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ann-section::after {
    content: '';
    position: absolute;
    bottom: -180px;
    inset-inline-start: -140px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 66, 57, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ann-section .container { position: relative; z-index: 1; }

/* --- فلاتر التصنيفات --- */
.ann-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.ann-filter-btn {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(185, 167, 121, 0.3);
    color: var(--c-forest-2);
    padding: 0.5rem 1.15rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ann-filter-btn:hover {
    border-color: var(--c-wheat-2);
    color: var(--c-umber-1);
    transform: translateY(-2px);
}

.ann-filter-btn.active {
    background: var(--c-forest-2);
    border-color: var(--c-forest-2);
    color: var(--c-white);
    box-shadow: 0 8px 18px rgba(5, 66, 57, 0.25);
}

/* --- بطاقة الإعلان --- */
.ann-card {
    position: relative;
    height: 100%;
    padding: 1.75rem 1.6rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgba(185, 167, 121, 0.28);
    box-shadow: 0 10px 30px rgba(5, 66, 57, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* خط الأولوية الجانبي */
.ann-card::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    bottom: 1.25rem;
    inset-inline-start: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--c-forest-1);
    transition: all 0.4s ease;
}
html[dir="rtl"] .ann-card::before { border-radius: 4px 0 0 4px; }

.ann-card.priority-important::before { background: var(--c-wheat-2); }
.ann-card.priority-urgent::before    { background: var(--c-umber-1); }

/* حركة الرفع */
.ann-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(5, 66, 57, 0.12);
    border-color: var(--c-wheat-2);
}
.ann-card:hover::before {
    top: 0; bottom: 0; /* الخط يمتد ليطول البطاقة */
}

/* هيدر البطاقة: أيقونة + تصنيف */
.ann-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ann-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(5, 66, 57, 0.08);
    color: var(--c-forest-2);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.ann-card.priority-important .ann-icon-box {
    background: rgba(185, 167, 121, 0.18);
    color: var(--c-wheat-3);
}
.ann-card.priority-urgent .ann-icon-box {
    background: rgba(107, 31, 42, 0.12);
    color: var(--c-umber-1);
}

.ann-card:hover .ann-icon-box {
    transform: scale(1.08) rotate(-4deg);
    background: var(--c-forest-2);
    color: var(--c-white);
}
.ann-card.priority-important:hover .ann-icon-box {
    background: var(--c-wheat-2);
    color: var(--c-forest-3);
}
.ann-card.priority-urgent:hover .ann-icon-box {
    background: var(--c-umber-1);
    color: var(--c-white);
}

.ann-category {
    background: rgba(5, 66, 57, 0.08);
    color: var(--c-forest-2);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* العنوان */
.ann-title {
    color: var(--c-forest-3);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.ann-card:hover .ann-title { color: var(--c-umber-1); }

/* المقتطف */
.ann-excerpt {
    color: var(--c-charcoal);
    font-size: 0.92rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* الفوتر */
.ann-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed rgba(185, 167, 121, 0.4);
}

.ann-date {
    font-size: 0.83rem;
    color: var(--c-charcoal);
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.ann-link {
    display: inline-flex;
    align-items: center;
    color: var(--c-forest-1);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.ann-link i { transition: transform 0.3s ease; }
.ann-card:hover .ann-link { color: var(--c-umber-1); }
html[dir="rtl"] .ann-card:hover .ann-link i { transform: translateX(-6px); }
html[dir="ltr"] .ann-card:hover .ann-link i { transform: translateX(6px); }

/* مرفق */
.ann-attachment {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 167, 121, 0.15);
    color: var(--c-wheat-3);
    border-radius: 50%;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.ann-attachment:hover {
    background: var(--c-wheat-2);
    color: var(--c-white);
    transform: rotate(15deg) scale(1.1);
}

/* شريط العاجل (Ribbon) */
.ann-urgent-ribbon {
    position: absolute;
    top: 14px;
    inset-inline-end: -34px;
    background: var(--c-umber-1);
    color: var(--c-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 2.5rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(107, 31, 42, 0.4);
    z-index: 2;
    letter-spacing: 0.5px;
}
html[dir="rtl"] .ann-urgent-ribbon { transform: rotate(-45deg); }

/* نبضة خفيفة على خط الأولوية للعاجل */
.ann-card.priority-urgent::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    inset-inline-start: 0;
    width: 4px;
    height: 40px;
    background: var(--c-umber-1);
    border-radius: 4px;
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; box-shadow: 0 0 12px var(--c-umber-1); }
}

/* زر عرض الكل */
.ann-view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    border: 1.5px solid var(--c-forest-2);
    color: var(--c-forest-2);
    background: transparent;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s ease;
}
.ann-view-all-btn:hover {
    background: var(--c-forest-2);
    color: var(--c-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(5, 66, 57, 0.25);
}

/* الموبايل */
@media (max-width: 767.98px) {
    .ann-filter-wrapper { gap: 0.45rem; }
    .ann-filter-btn     { padding: 0.42rem 0.95rem; font-size: 0.83rem; }
    .ann-card           { padding: 1.4rem 1.2rem; }
    .ann-title          { font-size: 1.05rem; }
}
.ann-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ann-views {
    font-size: 0.83rem;
    color: var(--c-wheat-3);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
}

/* =========================================
   1) حركة الهيدر — خط ذهبي متحرك + shimmer
========================================= */
.header-line {
    position: relative;
    overflow: visible;
}

/* خط ذهبي يتحرك عبر أسفل الـ nav */
.header-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--c-wheat-2) 20%,
        var(--c-forest-1) 50%,
        var(--c-wheat-2) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: headerFlow 6s linear infinite;
    opacity: 0.85;
}

@keyframes headerFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* shimmer على اللوجو */
.site-logo {
    position: relative;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.navbar-brand:hover .site-logo {
    transform: rotate(-3deg) scale(1.06);
    filter: drop-shadow(0 0 10px rgba(185, 167, 121, 0.6));
}

/* توهج خفيف على الشريط العلوي */
.top-bar {
    position: relative;
    background: linear-gradient(90deg,
        var(--c-forest-3) 0%,
        var(--c-forest-2) 50%,
        var(--c-forest-3) 100%);
    background-size: 200% 100%;
    animation: topBarShift 8s ease-in-out infinite;
}

@keyframes topBarShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* عند التمرير: يظهر توهج ذهبي أسفل الهيدر */
.main-header.scrolled {
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(185, 167, 121, 0.15);
}

/* =========================================
   2) زر تقديم الشكوى — Barز + نبض + Hover
========================================= */
.complaint-btn {
    display: inline-flex !important;
    align-items: center;
    background: linear-gradient(135deg, var(--c-umber-1) 0%, var(--c-umber-2) 100%);
    color: var(--c-white) !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    margin: 0.25rem 8px !important;
    border: 1.5px solid var(--c-wheat-2);
    box-shadow:
        0 6px 16px rgba(107, 31, 42, 0.35),
        0 0 0 0 rgba(185, 167, 121, 0.7);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: complaintPulse 2.5s ease-in-out infinite;
}

/* إلغاء خط الـ ::after الافتراضي للروابط */
.complaint-btn::after { display: none !important; }

/* النبض (Halo) */
@keyframes complaintPulse {
    0%, 100% {
        box-shadow:
            0 6px 16px rgba(107, 31, 42, 0.35),
            0 0 0 0 rgba(185, 167, 121, 0.55);
    }
    50% {
        box-shadow:
            0 6px 16px rgba(107, 31, 42, 0.35),
            0 0 0 8px rgba(185, 167, 121, 0);
    }
}

/* لمعة ضوئية تعبر الزر */
.complaint-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 70%
    );
    transition: left 0.6s ease;
}

.complaint-btn:hover::before {
    left: 100%;
}

.complaint-btn:hover {
    background: linear-gradient(135deg, var(--c-umber-2) 0%, var(--c-umber-3) 100%);
    color: var(--c-wheat-2) !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 10px 22px rgba(107, 31, 42, 0.45),
        0 0 0 3px rgba(185, 167, 121, 0.25);
    animation-play-state: paused;
}

/* أيقونة داخل الزر تنبض بلطف */
.complaint-btn i {
    animation: iconWiggle 3s ease-in-out infinite;
}

@keyframes iconWiggle {
    0%, 90%, 100% { transform: rotate(0deg); }
    93%            { transform: rotate(-12deg); }
    96%            { transform: rotate(12deg); }
}

.complaint-btn:hover i {
    animation: none;
    transform: scale(1.15);
}

/* الموبايل: الزر يأخذ العرض كاملًا */
@media (max-width: 991.98px) {
    .complaint-btn {
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0 !important;
    }
}

.main-header {
    animation: headerSlideDown 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --------------------------------------
   About Us Page Styles
-------------------------------------- */
.bg-wheat-light { background-color: var(--c-wheat-1); }

/* الـ Pattern العام */
.pattern-bgabout {
    position: absolute;
    inset: 0;
    background-image: url('../img/pattern.png'); /* مسار صورة المضلعات الذهبية */
    background-size: 450px;
    background-repeat: repeat;
    background-position: center;
    z-index: 0;
}

/* تداخل الـ Pattern للترويسة (خلفية غامقة) */
.about-hero {
    background: linear-gradient(135deg, var(--c-forest-3) 0%, var(--c-forest-2) 80%);
    overflow: hidden;
}
.pattern-gold-overlay {
    opacity: 0.05; /* شفافية منخفضة ليعطي فخامة دون إزعاج النص */
    background-blend-mode: overlay;
}

/* تداخل الـ Pattern للإحصائيات (خلفية بنية/Umber) */
.about-stats {
    background: linear-gradient(135deg, var(--c-umber-2) 0%, var(--c-umber-3) 100%);
    overflow: hidden;
    border-top: 4px solid var(--c-wheat-2);
}
.pattern-forest-overlay {
    opacity: 0.03;
}

/* بطاقات الرؤية والرسالة (Pillar Cards) */
.pillar-card {
    background-color: var(--c-white);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(185, 167, 121, 0.2);
    box-shadow: 0 10px 30px rgba(0, 38, 35, 0.04);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background-color: var(--c-wheat-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 38, 35, 0.08);
}
.pillar-card:hover::before {
    transform: scaleX(1);
}
.pillar-icon {
    font-size: 3rem;
    color: var(--c-forest-1);
    margin-bottom: 1.5rem;
}
.pillar-title {
    color: var(--c-forest-3);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.pillar-text {
    color: var(--c-charcoal);
    line-height: 1.8;
    opacity: 0.85;
}

/* قائمة الاختصاصات */
.specialty-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--c-charcoal);
    font-weight: 500;
    padding: 10px 15px;
    background-color: var(--c-wheat-1);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.specialty-list li:hover {
    background-color: var(--c-white);
    border-color: var(--c-wheat-2);
    box-shadow: 0 5px 15px rgba(185, 167, 121, 0.1);
}
.specialty-list i {
    margin-top: 5px;
    margin-inline-end: 15px;
}

/* بطاقات المنظومة الصحية */
.system-box {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background-color: var(--c-white);
    border: 1px solid rgba(5, 66, 57, 0.1);
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
}
.system-box:hover {
    border-color: var(--c-forest-1);
    box-shadow: 0 5px 15px rgba(5, 66, 57, 0.05);
}
.system-icon {
    font-size: 2rem;
    color: var(--c-forest-2);
    margin-inline-end: 15px;
    background: var(--c-wheat-1);
    padding: 15px;
    border-radius: 8px;
}
.system-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-forest-3);
    line-height: 1.5;
}

/* الإحصائيات (Stats) */
.stat-item {
    color: var(--c-white);
}
.stat-number, .stat-text {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--c-wheat-2);
    display: inline-block;
    margin-bottom: 0;
    line-height: 1;
}
.stat-plus {
    font-size: 3rem;
    font-weight: 700;
    color: var(--c-wheat-2);
    vertical-align: top;
}
.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 10px;
    opacity: 0.9;
}

/* زر فيسبوك */
.btn-facebook {
    background-color: #1877F2;
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.btn-facebook:hover {
    background-color: #166fe5;
    color: white;
    transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════
   NEWS PAGE — Editorial Masterpiece
══════════════════════════════════════════════════════ */

/* ───── 1) HERO ───── */
.news-hero {
    position: relative;
    background:
        /* 1) طبقة الباترن الذهبي فوق التدرج */
        url('../img/pattern.png') center / 380px repeat,
        /* 2) التدرج الأساسي */
        linear-gradient(135deg, var(--c-forest-3) 0%, var(--c-forest-2) 60%, var(--c-forest-1) 100%);
    background-blend-mode: soft-light;
    padding: 5rem 0 6rem;
    overflow: hidden;
    color: var(--c-white);
    isolation: isolate;
    
}
/* تعزيز ظهور الباترن بلون ذهبي خفيف دون إثقال النص */


@keyframes patternDrift {
    from { background-position: 0 0; }
    to   { background-position: 380px 380px; }
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, var(--c-wheat-2), transparent 70%);
    top: -120px;
    inset-inline-end: -100px;
    animation-delay: 0s;
}
.orb-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, var(--c-forest-1), transparent 70%);
    bottom: -150px;
    inset-inline-start: -120px;
    animation-delay: -6s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--c-umber-1), transparent 70%);
    top: 30%;
    inset-inline-end: 30%;
    animation-delay: -12s;
    opacity: 0.22;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.1); }
}

.news-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.news-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--c-wheat-2);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}
.news-breadcrumb a {
    color: var(--c-wheat-2);
    text-decoration: none;
    transition: color 0.3s;
}
.news-breadcrumb a:hover { color: var(--c-white); }

.news-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--c-white) 0%, var(--c-wheat-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-hero-sub {
    font-size: 1.1rem;
    color: var(--c-wheat-1);
    opacity: 0.8;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.news-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(185, 167, 121, 0.25);
    border-radius: 60px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}
.stat-item { text-align: center; }
.stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c-wheat-2);
    line-height: 1;
}
.stat-lbl {
    font-size: 0.75rem;
    color: var(--c-wheat-1);
    opacity: 0.75;
    margin-top: 0.3rem;
    display: block;
}
.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(185, 167, 121, 0.3);
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    margin-inline-end: 6px;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* ───── 2) TICKER ───── */
.news-ticker {
    background: var(--c-forest-3);
    border-block: 1px solid rgba(185, 167, 121, 0.2);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 3;
    margin-top: -2rem;
    box-shadow: 0 10px 30px rgba(5, 66, 57, 0.2);
}
.ticker-label {
    background: var(--c-umber-1);
    color: var(--c-white);
    padding: 0.9rem 1.4rem;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.ticker-label i {
    animation: tickerBolt 1.5s ease-in-out infinite;
}
@keyframes tickerBolt {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.7; color: var(--c-wheat-2); }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-move {
    display: flex;
    gap: 3rem;
    padding-inline: 2rem;
    animation: tickerScroll 60s linear infinite;
    white-space: nowrap;
}
html[dir="rtl"] .ticker-move { animation-direction: reverse; }
.news-ticker:hover .ticker-move { animation-play-state: paused; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker-item {
    color: var(--c-wheat-1);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.3s;
}
.ticker-item i { color: var(--c-wheat-2); font-size: 0.35rem; }
.ticker-item:hover { color: var(--c-wheat-2); }

/* ───── 3) FILTER BAR ───── */
.news-filter-wrap {
    position: sticky;
    top: 90px;
    z-index: 100;
    padding: 0.5rem 0;
    background: linear-gradient(180deg, var(--c-wheat-1) 70%, transparent);
    backdrop-filter: blur(4px);
}

.news-filter-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(185, 167, 121, 0.25);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(5, 66, 57, 0.06);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nf-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    flex: 1;
    min-width: 200px;
    scrollbar-width: none;
}
.nf-tabs::-webkit-scrollbar { display: none; }

.nf-tab {
    background: transparent;
    border: none;
    color: var(--c-forest-2);
    padding: 0.55rem 1.05rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nf-tab:hover {
    background: rgba(185, 167, 121, 0.15);
    color: var(--c-umber-1);
}
.nf-tab.active {
    background: var(--c-forest-2);
    color: var(--c-white);
    box-shadow: 0 4px 12px rgba(5, 66, 57, 0.25);
}

.nf-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nf-search {
    position: relative;
    display: flex;
    align-items: center;
}
.nf-search i {
    position: absolute;
    inset-inline-start: 14px;
    color: var(--c-forest-1);
    pointer-events: none;
    font-size: 0.9rem;
}
.nf-search input {
    background: rgba(237, 235, 224, 0.6);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 12px;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    font-size: 0.88rem;
    color: var(--c-forest-3);
    width: 240px;
    transition: all 0.3s;
}
html[dir="rtl"] .nf-search input { padding: 0.55rem 2.5rem 0.55rem 1rem; }
.nf-search input:focus {
    outline: none;
    border-color: var(--c-forest-1);
    background: var(--c-white);
    box-shadow: 0 0 0 3px rgba(185, 167, 121, 0.2);
}

.nf-sort {
    background: rgba(237, 235, 224, 0.6);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 12px;
    padding: 0.55rem 2rem 0.55rem 1rem;
    font-size: 0.88rem;
    color: var(--c-forest-3);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.nf-sort:focus {
    outline: none;
    border-color: var(--c-forest-1);
}

/* ───── 4) FEATURED STORY ───── */
.news-main {
    padding-top: 1rem !important;
}

.featured-story {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(5, 66, 57, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.featured-story:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(5, 66, 57, 0.2);
}

.fs-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    min-height: 520px;
}

.fs-image {
    position: absolute;
    inset: 0;
}
.fs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.featured-story:hover .fs-image img {
    transform: scale(1.05);
}

.fs-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 38, 35, 0.95) 0%,
        rgba(0, 38, 35, 0.7) 40%,
        rgba(0, 38, 35, 0.2) 70%,
        transparent 100%
    );
}

.fs-body {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 2.5rem;
    color: var(--c-white);
    z-index: 2;
}

.fs-badges {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.badge-cat, .badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.badge-cat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--c-white);
}
.badge-featured {
    background: var(--c-wheat-2);
    color: var(--c-forest-3);
    animation: featuredGlow 2.5s ease-in-out infinite;
}
@keyframes featuredGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(185, 167, 121, 0.6); }
    50%      { box-shadow: 0 0 0 8px rgba(185, 167, 121, 0); }
}

.fs-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--c-white);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-wheat-1);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--c-wheat-2);
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.fs-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.fs-read {
    margin-inline-start: auto;
    color: var(--c-white);
    font-weight: 700;
    transition: gap 0.3s ease;
}
.fs-read i { transition: transform 0.3s ease; }
.featured-story:hover .fs-read i {
    transform: translateX(var(--tw, 5px));
}
html[dir="rtl"] .featured-story:hover .fs-read i { transform: translateX(-5px); }

/* ───── 5) NEWS GRID ───── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.grid-card {
    background: var(--c-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(185, 167, 121, 0.15);
    box-shadow: 0 6px 20px rgba(5, 66, 57, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.grid-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--c-wheat-2);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
    z-index: 3;
}
.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(5, 66, 57, 0.12);
    border-color: var(--c-wheat-2);
}
.grid-card:hover::before {
    transform: scaleY(1);
}

.gc-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.gc-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.gc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.grid-card:hover .gc-image img {
    transform: scale(1.08);
}

.gc-cat {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: rgba(0, 38, 35, 0.9);
    backdrop-filter: blur(8px);
    color: var(--c-wheat-2);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.gc-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gc-title {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--c-forest-3);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.grid-card:hover .gc-title {
    color: var(--c-umber-1);
}

.gc-excerpt {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--c-charcoal);
    opacity: 0.75;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gc-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.76rem;
    color: var(--c-wheat-3);
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(185, 167, 121, 0.35);
}
.gc-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* ───── 6) EMPTY + LOAD MORE ───── */
.news-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--c-forest-2);
}
.news-empty i {
    font-size: 4rem;
    color: var(--c-wheat-2);
    margin-bottom: 1rem;
    opacity: 0.7;
}
.news-empty h3 { font-weight: 800; margin-bottom: 0.5rem; }
.news-empty p { opacity: 0.7; }

.news-loadmore-wrap {
    text-align: center;
    margin-top: 1rem;
}

.news-loadmore {
    background: transparent;
    color: var(--c-forest-2);
    border: 1.5px solid var(--c-forest-2);
    padding: 0.85rem 2.2rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.4s ease;
}
.news-loadmore i {
    transition: transform 0.6s ease;
}
.news-loadmore:hover {
    background: var(--c-forest-2);
    color: var(--c-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(5, 66, 57, 0.25);
}
.news-loadmore:hover i { transform: rotate(360deg); }
.news-loadmore:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ───── 7) SIDEBAR ───── */
.news-sidebar {
    position: sticky;
    top: 210px;
    align-self: flex-start;
}

.side-card {
    background: var(--c-white);
    border: 1px solid rgba(185, 167, 121, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px rgba(5, 66, 57, 0.04);
}

.side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(185, 167, 121, 0.2);
    position: relative;
}
.side-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 45px;
    height: 2px;
    background: var(--c-wheat-2);
}

.side-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.side-header h3 i { color: var(--c-umber-1); }

.live-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--c-umber-1);
    letter-spacing: 1px;
}

/* الأكثر قراءة */
.trending-list { display: flex; flex-direction: column; gap: 0.25rem; }

.trending-item {
    display: flex;
    gap: 0.9rem;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s;
    align-items: flex-start;
}
.trending-item:hover {
    background: rgba(185, 167, 121, 0.08);
}

.tr-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c-wheat-2);
    line-height: 1;
    min-width: 32px;
    transition: all 0.3s;
}
.trending-item:hover .tr-num {
    color: var(--c-umber-1);
    -webkit-text-stroke: 0;
}

.tr-body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--c-forest-3);
    margin-bottom: 0.35rem;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-item:hover .tr-body h4 { color: var(--c-umber-1); }

.tr-meta {
    font-size: 0.72rem;
    color: var(--c-wheat-3);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* التصنيفات */
.cat-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cat-pill {
    background: rgba(5, 66, 57, 0.06);
    border: 1px solid rgba(185, 167, 121, 0.25);
    color: var(--c-forest-2);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}
.cat-pill span {
    background: var(--c-wheat-2);
    color: var(--c-forest-3);
    border-radius: 20px;
    padding: 0 0.4rem;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
}
.cat-pill:hover {
    background: var(--c-forest-2);
    color: var(--c-white);
    border-color: var(--c-forest-2);
    transform: translateY(-2px);
}
.cat-pill:hover span {
    background: var(--c-wheat-2);
    color: var(--c-forest-3);
}

/* النشرة */
.newsletter-card {
    background: linear-gradient(135deg, var(--c-forest-3) 0%, var(--c-forest-2) 100%);
    color: var(--c-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-color: rgba(185, 167, 121, 0.35);
}
.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50px;
    inset-inline-end: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(185, 167, 121, 0.2), transparent 70%);
    border-radius: 50%;
    animation: orbFloat 12s ease-in-out infinite;
}
.newsletter-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    inset-inline-start: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    border-radius: 50%;
    animation: orbFloat 15s ease-in-out infinite reverse;
}

.nl-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 1rem;
    background: rgba(185, 167, 121, 0.2);
    border: 1px solid rgba(185, 167, 121, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--c-wheat-2);
    position: relative;
    z-index: 1;
}

.newsletter-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--c-white);
    position: relative;
    z-index: 1;
}
.newsletter-card p {
    font-size: 0.85rem;
    color: var(--c-wheat-1);
    opacity: 0.8;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.nl-form {
    display: flex;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 40px;
    padding: 0.35rem;
    position: relative;
    z-index: 1;
}
.nl-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    color: var(--c-white);
    font-size: 0.85rem;
    outline: none;
}
.nl-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.nl-form button {
    background: var(--c-wheat-2);
    color: var(--c-forest-3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}
.nl-form button:hover {
    background: var(--c-white);
    transform: rotate(-15deg) scale(1.1);
}

.nl-form.sent {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}
.nl-form.sent::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4caf50;
    color: #fff;
    border-radius: 40px;
    font-weight: 800;
}

.nl-note {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.72rem;
    color: var(--c-wheat-1);
    opacity: 0.6;
    position: relative;
    z-index: 1;
}
.nl-note i { margin-inline-end: 0.3rem; }

/* ───── 8) HIDE STATE ───── */
.news-item.hide-news {
    display: none !important;
}

/* ───── 9) RESPONSIVE ───── */
@media (max-width: 991.98px) {
    .news-hero { padding: 3rem 0 5rem; }
    .news-hero-stats { gap: 1rem; padding: 0.75rem 1.25rem; }
    .stat-num { font-size: 1.1rem; }

    .news-ticker { margin-top: -1.5rem; }
    .ticker-label { padding: 0.7rem 1rem; font-size: 0.75rem; }

    .news-filter-wrap { top: 80px; padding: 1rem 0; }
    .news-filter-bar { flex-direction: column; align-items: stretch; }
    .nf-actions { width: 100%; }
    .nf-search { flex: 1; }
    .nf-search input { width: 100%; }

    .fs-link { min-height: 420px; }
    .fs-body { padding: 1.5rem; }

    .news-sidebar { position: static; }
}

@media (max-width: 575.98px) {
    .news-grid { grid-template-columns: 1fr; }
    .fs-link { min-height: 340px; }
    .fs-title { font-size: 1.3rem; }
    .fs-excerpt { display: none; }
    .fs-meta { font-size: 0.75rem; gap: 1rem; }
    .news-hero-stats { flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; }
    .stat-divider { display: none; }
}

/* ═══════════════════════════════════
   ANNOUNCEMENTS PAGE — Gazette
═══════════════════════════════════ */

.ann-hero {
    position: relative;
    padding: 5rem 0 6rem;
    background:
        url('../img/pattern.png') center / 480px repeat,
        linear-gradient(135deg, var(--c-forest-3) 0%, var(--c-forest-2) 60%, var(--c-forest-1) 100%);
    background-blend-mode: soft-light;
    overflow: hidden;
    color: var(--c-white);
    isolation: isolate;
}

.ann-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern.png') center / 480px repeat;
    opacity: 0.08;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
    animation: annPatternDrift 60s linear infinite;
}

@keyframes annPatternDrift {
    from { background-position: 0 0; }
    to   { background-position: 480px 480px; }
}

.ann-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.ann-hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: annOrbFloat 18s ease-in-out infinite;
}
.ann-hero-bg .orb-1 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, var(--c-wheat-2), transparent 70%);
    top: -100px; inset-inline-end: -80px;
}
.ann-hero-bg .orb-2 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, var(--c-forest-1), transparent 70%);
    bottom: -120px; inset-inline-start: -100px;
    animation-delay: -6s;
}
.ann-hero-bg .orb-3 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, var(--c-umber-1), transparent 70%);
    top: 40%; inset-inline-end: 35%;
    opacity: 0.18;
    animation-delay: -12s;
}

@keyframes annOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -25px) scale(1.08); }
}

.ann-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ann-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--c-wheat-2);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}
.ann-breadcrumb a { color: var(--c-wheat-2); text-decoration: none; transition: color 0.3s; }
.ann-breadcrumb a:hover { color: var(--c-white); }

.ann-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--c-white) 0%, var(--c-wheat-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ann-hero-sub {
    font-size: 1.05rem;
    color: var(--c-wheat-1);
    opacity: 0.82;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.ann-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(185, 167, 121, 0.25);
    border-radius: 60px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}
.ann-hero-stats .stat-item { text-align: center; }
.ann-hero-stats .stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-wheat-2);
    line-height: 1;
}
.ann-hero-stats .stat-lbl {
    font-size: 0.72rem;
    color: var(--c-wheat-1);
    opacity: 0.7;
    margin-top: 0.35rem;
    display: block;
    letter-spacing: 0.3px;
}
.ann-hero-stats .stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(185, 167, 121, 0.3);
}
.ann-hero-stats .text-urgent { color: #e07a7a; }
.ann-hero-stats .text-wheat  { color: var(--c-wheat-2); }
.ann-hero-stats .text-forest { color: #8fbfb3; }

/* ── Toolbar ── */
.ann-toolbar-wrap {
    position: sticky;
    top: 90px;
    z-index: 100;
    padding: 0.5rem 0;
    background: linear-gradient(180deg, var(--c-wheat-1) 70%, transparent);
    backdrop-filter: blur(2px);
}

.ann-toolbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(185, 167, 121, 0.25);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(5, 66, 57, 0.06);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ann-priority-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ann-p-btn {
    background: transparent;
    border: none;
    color: var(--c-forest-2);
    padding: 0.55rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}
.ann-p-btn:hover {
    background: rgba(185, 167, 121, 0.15);
    color: var(--c-umber-1);
}
.ann-p-btn.active {
    background: var(--c-forest-2);
    color: var(--c-white);
    box-shadow: 0 4px 12px rgba(5, 66, 57, 0.25);
}

.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.p-dot.p-urgent    { background: var(--c-umber-1); box-shadow: 0 0 0 0 rgba(107, 31, 42, 0.6); animation: prioPulse 2s infinite; }
.p-dot.p-important { background: var(--c-wheat-2); }
.p-dot.p-normal    { background: var(--c-forest-1); }

@keyframes prioPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(107, 31, 42, 0.6); }
    50%      { box-shadow: 0 0 0 6px rgba(107, 31, 42, 0); }
}

.ann-tools {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.ann-select {
    background: rgba(237, 235, 224, 0.6);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 12px;
    padding: 0.55rem 2rem 0.55rem 1rem;
    font-size: 0.85rem;
    color: var(--c-forest-3);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.ann-select:focus {
    outline: none;
    border-color: var(--c-forest-1);
    background: var(--c-white);
}

.ann-search {
    position: relative;
    display: flex;
    align-items: center;
}
.ann-search i {
    position: absolute;
    inset-inline-start: 14px;
    color: var(--c-forest-1);
    font-size: 0.85rem;
    pointer-events: none;
}
.ann-search input {
    background: rgba(237, 235, 224, 0.6);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 12px;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    font-size: 0.85rem;
    color: var(--c-forest-3);
    width: 200px;
    transition: all 0.3s;
}
html[dir="rtl"] .ann-search input { padding: 0.55rem 2.4rem 0.55rem 1rem; }
.ann-search input:focus {
    outline: none;
    border-color: var(--c-forest-1);
    background: var(--c-white);
    box-shadow: 0 0 0 3px rgba(185, 167, 121, 0.2);
}

/* ── Main ── */
.ann-main {
    padding: 2rem 0 5rem;
}

/* ── Gazette Row ── */
.ann-row {
    display: flex;
    gap: 1.5rem;
    background: var(--c-white);
    border: 1px solid rgba(185, 167, 121, 0.18);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ann-row::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--c-forest-1);
    transition: width 0.4s ease;
}
.ann-row[data-priority="important"]::before { background: var(--c-wheat-2); }
.ann-row[data-priority="urgent"]::before    { background: var(--c-umber-1); }

.ann-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(5, 66, 57, 0.1);
    border-color: var(--c-wheat-2);
}
.ann-row:hover::before { width: 6px; }

.ann-row-num {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c-wheat-2);
    min-width: 55px;
    flex-shrink: 0;
    transition: all 0.3s;
    padding-top: 0.2rem;
}
.ann-row:hover .ann-row-num {
    color: var(--c-forest-2);
    -webkit-text-stroke: 0;
}

.ann-row[data-priority="urgent"]:hover .ann-row-num {
    color: var(--c-umber-1);
}
.ann-row[data-priority="important"]:hover .ann-row-num {
    color: var(--c-wheat-3);
}

.ann-row-body {
    flex: 1;
    min-width: 0;
}

.ann-row-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.ann-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.7rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.ann-pill.p-urgent    { background: rgba(107, 31, 42, 0.12); color: var(--c-umber-1); }
.ann-pill.p-important { background: rgba(185, 167, 121, 0.2); color: var(--c-wheat-3); }
.ann-pill.p-normal    { background: rgba(5, 66, 57, 0.1);    color: var(--c-forest-2); }
.ann-pill.p-cat {
    background: rgba(5, 66, 57, 0.06);
    color: var(--c-forest-1);
    font-weight: 700;
}

.ann-meta-date, .ann-meta-views {
    font-size: 0.78rem;
    color: var(--c-wheat-3);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.ann-meta-date i, .ann-meta-views i { font-size: 0.75rem; opacity: 0.85; }

.ann-row-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--c-forest-3);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}
.ann-row:hover .ann-row-title {
    color: var(--c-umber-1);
}

.ann-row-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--c-charcoal);
    opacity: 0.82;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ann-row-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.ann-action-read {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--c-forest-1);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}
.ann-action-read i { transition: transform 0.3s; }
.ann-row:hover .ann-action-read { color: var(--c-umber-1); }
html[dir="rtl"] .ann-row:hover .ann-action-read i { transform: translateX(-4px); }
html[dir="ltr"] .ann-row:hover .ann-action-read i { transform: translateX(4px); }

.ann-action-file {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.75rem;
    background: rgba(185, 167, 121, 0.12);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 6px;
    color: var(--c-wheat-3);
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    transition: all 0.3s;
}
.ann-action-file:hover {
    background: var(--c-wheat-2);
    border-color: var(--c-wheat-2);
    color: var(--c-forest-3);
}

/* ── Empty / Load more ── */
.ann-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--c-forest-2);
}
.ann-empty i {
    font-size: 4rem;
    color: var(--c-wheat-2);
    opacity: 0.7;
    margin-bottom: 1rem;
}
.ann-empty h3 { font-weight: 800; margin-bottom: 0.5rem; font-size: 1.3rem; }
.ann-empty p  { opacity: 0.7; font-size: 0.9rem; }

.ann-loadmore-wrap { text-align: center; margin-top: 1.5rem; }

.ann-loadmore {
    background: transparent;
    color: var(--c-forest-2);
    border: 1.5px solid var(--c-forest-2);
    padding: 0.75rem 2rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.4s;
}
.ann-loadmore i { transition: transform 0.4s; }
.ann-loadmore:hover {
    background: var(--c-forest-2);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 66, 57, 0.25);
}
.ann-loadmore:hover i { transform: rotate(90deg); }

/* ── Sidebar ── */
.ann-sidebar {
    position: sticky;
    top: 210px;
    align-self: flex-start;
}

.side-card {
    background: var(--c-white);
    border: 1px solid rgba(185, 167, 121, 0.18);
    border-radius: 16px;
    padding: 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px rgba(5, 66, 57, 0.04);
}

.side-head {
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(185, 167, 121, 0.18);
    position: relative;
}
.side-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 42px;
    height: 2px;
    background: var(--c-wheat-2);
}
.side-head h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.side-head h3 i { color: var(--c-umber-1); }

.prio-list { display: flex; flex-direction: column; gap: 0.4rem; }

.prio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    background: rgba(237, 235, 224, 0.5);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: start;
    width: 100%;
}
.prio-item:hover {
    background: rgba(185, 167, 121, 0.12);
    border-color: rgba(185, 167, 121, 0.3);
}
.prio-name {
    flex: 1;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--c-forest-2);
}
.prio-count {
    background: var(--c-forest-2);
    color: var(--c-white);
    border-radius: 20px;
    padding: 0.1rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 26px;
    text-align: center;
}

.cat-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cat-pill {
    background: rgba(5, 66, 57, 0.06);
    border: 1px solid rgba(185, 167, 121, 0.25);
    color: var(--c-forest-2);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}
.cat-pill span {
    background: var(--c-wheat-2);
    color: var(--c-forest-3);
    border-radius: 20px;
    padding: 0 0.4rem;
    font-size: 0.68rem;
    min-width: 18px;
    text-align: center;
}
.cat-pill:hover {
    background: var(--c-forest-2);
    color: var(--c-white);
    border-color: var(--c-forest-2);
    transform: translateY(-2px);
}

.side-info {
    background: linear-gradient(135deg, rgba(5, 66, 57, 0.06), rgba(185, 167, 121, 0.1));
    border-color: rgba(185, 167, 121, 0.3);
}
.side-info p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--c-charcoal);
    opacity: 0.85;
    margin: 0;
}

/* ── Hide state ── */
.ann-row.hide-ann { display: none !important; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .ann-hero { padding: 3rem 0 4.5rem; }
    .ann-hero-stats { gap: 1rem; padding: 0.75rem 1.25rem; }
    .ann-hero-stats .stat-num { font-size: 1.15rem; }

    .ann-toolbar-wrap { top: 80px; padding: 1rem 0; }
    .ann-toolbar { flex-direction: column; align-items: stretch; }
    .ann-tools { width: 100%; }
    .ann-search { flex: 1; }
    .ann-search input { width: 100%; }

    .ann-row { padding: 1.25rem; gap: 1rem; }
    .ann-row-num { font-size: 1.6rem; min-width: 40px; }

    .ann-sidebar { position: static; }
}

@media (max-width: 575.98px) {
    .ann-row { flex-direction: column; gap: 0.75rem; }
    .ann-row-num { padding-top: 0; font-size: 1.4rem; }
    .ann-row-title { font-size: 1.02rem; }
    .ann-priority-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .ann-p-btn { white-space: nowrap; }
    .ann-hero-stats { flex-direction: column; gap: 0.6rem; }
    .ann-hero-stats .stat-divider { display: none; }
}

.ann-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.ann-page-btn,
.ann-page-num {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid rgba(185, 167, 121, 0.35);
    background: var(--c-white);
    color: var(--c-forest-2);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ann-page-btn:hover:not(:disabled),
.ann-page-num:hover:not(.active) {
    border-color: var(--c-wheat-2);
    color: var(--c-umber-1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(185, 167, 121, 0.15);
}

.ann-page-num.active {
    background: var(--c-forest-2);
    border-color: var(--c-forest-2);
    color: var(--c-white);
    box-shadow: 0 8px 20px rgba(5, 66, 57, 0.25);
    transform: translateY(-2px);
}

.ann-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ann-page-numbers {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.ann-page-dots {
    color: var(--c-wheat-3);
    font-weight: 800;
    padding: 0 0.25rem;
    user-select: none;
}
/* ═══════════════════════════════════
   CALENDAR PAGE
═══════════════════════════════════ */

/* Slim Header */
.cal-header {
    position: relative;
    padding: 2.5rem 0 2rem;
    background: linear-gradient(135deg, var(--c-forest-3) 0%, var(--c-forest-2) 100%);
    color: var(--c-white);
    overflow: hidden;
    isolation: isolate;
}

/* ── طبقة الباترن المبلّرة ── */
.cal-header::before {
    content: '';
    position: absolute;
    inset: -40px;                              /* امتداد يخفي حواف البلور */
    background: url('../img/pattern.png') center / 480px repeat;
    filter: blur(1px) saturate(1.3);          /* ← قوة البلور هنا */
    opacity: 0.1;                              /* ← شدة ظهور الباترن */
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

/* المحتوى فوق الباترن */
.cal-header > .container {
    position: relative;
    z-index: 2;
}

.cal-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--c-wheat-2);
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(185,167,121,0.3);
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    position: relative;
}
.cal-breadcrumb a { color: var(--c-wheat-2); text-decoration: none; }
.cal-breadcrumb a:hover { color: var(--c-white); }

.cal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
}
.cal-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.4rem;
    background: linear-gradient(135deg, #fff, var(--c-wheat-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cal-subtitle {
    color: var(--c-wheat-1);
    opacity: 0.82;
    margin: 0;
    font-size: 0.95rem;
    max-width: 500px;
}
.cal-header-stats {
    display: flex;
    gap: 0.75rem;
}
.chs-item {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(185,167,121,0.3);
    border-radius: 12px;
    padding: 0.65rem 1.1rem;
    text-align: center;
    backdrop-filter: blur(8px);
    min-width: 80px;
}
.chs-num {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-wheat-2);
    line-height: 1;
}
.chs-lbl {
    display: block;
    font-size: 0.7rem;
    color: var(--c-wheat-1);
    opacity: 0.75;
    margin-top: 0.3rem;
    letter-spacing: 0.3px;
}

/* Toolbar */
.cal-toolbar-wrap {
    position: sticky;
    top: 65px;
    z-index: 100;
    padding: 0.1rem 0;
    background: linear-gradient(180deg, var(--c-wheat-1) 70%, transparent);
    backdrop-filter: blur(4px);
}
.cal-toolbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(185,167,121,0.25);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(5,66,57,0.06);
    padding: 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cal-view-tabs {
    display: flex;
    gap: 0.3rem;
    background: rgba(237,235,224,0.6);
    padding: 0.25rem;
    border-radius: 12px;
}
.cal-v-btn {
    background: transparent;
    border: none;
    color: var(--c-forest-2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s;
}
.cal-v-btn.active {
    background: var(--c-forest-2);
    color: var(--c-white);
    box-shadow: 0 4px 12px rgba(5,66,57,0.25);
}
.cal-tools {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.cal-select {
    background: rgba(237,235,224,0.6);
    border: 1px solid rgba(185,167,121,0.3);
    border-radius: 12px;
    padding: 0.55rem 2rem 0.55rem 1rem;
    font-size: 0.85rem;
    color: var(--c-forest-3);
    font-weight: 600;
    cursor: pointer;
}
.cal-select:focus { outline: none; border-color: var(--c-forest-1); }
.cal-search { position: relative; display: flex; align-items: center; }
.cal-search i {
    position: absolute;
    inset-inline-start: 14px;
    color: var(--c-forest-1);
    font-size: 0.85rem;
    pointer-events: none;
}
.cal-search input {
    background: rgba(237,235,224,0.6);
    border: 1px solid rgba(185,167,121,0.3);
    border-radius: 12px;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    font-size: 0.85rem;
    color: var(--c-forest-3);
    width: 200px;
    transition: all 0.3s;
}
html[dir="rtl"] .cal-search input { padding: 0.55rem 2.4rem 0.55rem 1rem; }
.cal-search input:focus {
    outline: none;
    border-color: var(--c-forest-1);
    background: var(--c-white);
    box-shadow: 0 0 0 3px rgba(185,167,121,0.2);
}

/* Main */
.cal-main { padding: 1rem 0 5rem; }

/* Calendar Card */
.cal-card {
    background: var(--c-white);
    border: 1px solid rgba(185,167,121,0.2);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(5,66,57,0.06);
}

.cal-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(185,167,121,0.2);
}
.cal-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid rgba(185,167,121,0.35);
    background: var(--c-white);
    color: var(--c-forest-2);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cal-nav-btn:hover {
    background: var(--c-forest-2);
    border-color: var(--c-forest-2);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5,66,57,0.2);
}
.cal-month-label { text-align: center; }
.cal-month-label h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.25rem;
}
.cal-today-btn {
    background: rgba(185,167,121,0.15);
    border: 1px solid rgba(185,167,121,0.3);
    color: var(--c-wheat-3);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.cal-today-btn:hover {
    background: var(--c-wheat-2);
    color: var(--c-forest-3);
}

/* Weekdays */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.cal-weekdays span {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--c-forest-1);
    padding: 0.5rem 0;
    letter-spacing: 0.3px;
}

/* Grid */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}
.cal-day {
    aspect-ratio: 1;
    background: rgba(237,235,224,0.3);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.4rem;
    position: relative;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70px;
}
.cal-day:hover {
    background: rgba(185,167,121,0.12);
    border-color: rgba(185,167,121,0.3);
    transform: translateY(-2px);
}
.cal-day.other-month {
    opacity: 0.35;
}
.cal-day.today {
    background: rgba(5,66,57,0.08);
    border-color: var(--c-forest-2);
    font-weight: 800;
}
.cal-day.today .cal-day-num {
    background: var(--c-forest-2);
    color: var(--c-white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cal-day.has-events {
    background: rgba(185,167,121,0.08);
}
.cal-day.selected {
    background: rgba(5,66,57,0.15);
    border-color: var(--c-forest-1);
    box-shadow: 0 0 0 3px rgba(5,66,57,0.1);
}
.cal-day-num {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--c-forest-3);
    margin-bottom: 0.25rem;
}
.cal-day-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}
.cal-day-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
}

/* Dot colors */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-inline-end: 0.35rem; }
.dot-forest, .cal-day-dots .dot-forest { background: var(--c-forest-1); }
.dot-wheat, .cal-day-dots .dot-wheat   { background: var(--c-wheat-2); }
.dot-umber, .cal-day-dots .dot-umber   { background: var(--c-umber-1); }
.dot-blue, .cal-day-dots .dot-blue     { background: #4a7fc1; }

/* Legend */
.cal-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(185,167,121,0.15);
}
.cal-legend span {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-charcoal);
}

/* List View */
.cal-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cal-list-item {
    background: var(--c-white);
    border: 1px solid rgba(185,167,121,0.18);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.cal-list-item::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--c-forest-1);
}
.cal-list-item[data-color="wheat"]::before { background: var(--c-wheat-2); }
.cal-list-item[data-color="umber"]::before { background: var(--c-umber-1); }
.cal-list-item[data-color="blue"]::before  { background: #4a7fc1; }
.cal-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5,66,57,0.08);
    border-color: var(--c-wheat-2);
}
.cli-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    padding: 0.5rem;
    background: rgba(5,66,57,0.06);
    border-radius: 10px;
}
.cli-day { font-size: 1.6rem; font-weight: 900; color: var(--c-forest-2); line-height: 1; }
.cli-month { font-size: 0.72rem; font-weight: 700; color: var(--c-wheat-3); text-transform: uppercase; letter-spacing: 0.5px; }
.cli-body { flex: 1; min-width: 0; }
.cli-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    background: rgba(185,167,121,0.2);
    color: var(--c-wheat-3);
    margin-bottom: 0.4rem;
}
.cli-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.35rem;
    line-height: 1.4;
}
.cli-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--c-wheat-3);
    font-weight: 600;
    flex-wrap: wrap;
}
.cli-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

.cal-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--c-forest-2);
}
.cal-empty i { font-size: 3.5rem; color: var(--c-wheat-2); opacity: 0.6; margin-bottom: 1rem; }
.cal-empty h3 { font-size: 1.2rem; font-weight: 800; }

/* Sidebar */
.cal-sidebar {
    position: sticky;
    top: 210px;
    align-self: flex-start;
}
.side-card {
    background: var(--c-white);
    border: 1px solid rgba(185,167,121,0.18);
    border-radius: 16px;
    padding: 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px rgba(5,66,57,0.04);
}
.side-head {
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(185,167,121,0.18);
    position: relative;
}
.side-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 42px;
    height: 2px;
    background: var(--c-wheat-2);
}
.side-head h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.side-head h3 i { color: var(--c-umber-1); }

/* Countdown */
.countdown-card {
    background: linear-gradient(135deg, var(--c-forest-3) 0%, var(--c-forest-2) 100%);
    color: var(--c-white);
    border-color: rgba(185,167,121,0.35);
    position: relative;
    overflow: hidden;
}
.countdown-card::before {
    content: '';
    position: absolute;
    top: -60px;
    inset-inline-end: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(185,167,121,0.2), transparent 70%);
    border-radius: 50%;
    animation: cdFloat 12s ease-in-out infinite;
}
@keyframes cdFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-15px, 15px) scale(1.1); }
}
.countdown-card .side-head h3 { color: var(--c-white); }
.countdown-card .side-head h3 i { color: var(--c-wheat-2); }
.countdown-card .side-head { border-color: rgba(185,167,121,0.3); }
.cd-title {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    color: var(--c-white);
    line-height: 1.4;
    position: relative;
}
.cd-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--c-wheat-2);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    position: relative;
}
.cd-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.cd-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    position: relative;
}
.cd-unit {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(185,167,121,0.25);
    border-radius: 10px;
    padding: 0.6rem 0.3rem;
    text-align: center;
    backdrop-filter: blur(4px);
}
.cd-unit span {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--c-wheat-2);
    line-height: 1;
    font-family: 'Courier New', monospace;
}
.cd-unit small {
    display: block;
    font-size: 0.65rem;
    color: var(--c-wheat-1);
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* Category cloud */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-pill {
    background: rgba(5,66,57,0.06);
    border: 1px solid rgba(185,167,121,0.25);
    color: var(--c-forest-2);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}
.cat-pill span {
    background: var(--c-wheat-2);
    color: var(--c-forest-3);
    border-radius: 20px;
    padding: 0 0.4rem;
    font-size: 0.68rem;
    min-width: 18px;
    text-align: center;
}
.cat-pill:hover {
    background: var(--c-forest-2);
    color: var(--c-white);
    border-color: var(--c-forest-2);
    transform: translateY(-2px);
}

.side-info {
    background: linear-gradient(135deg, rgba(5,66,57,0.06), rgba(185,167,121,0.1));
    border-color: rgba(185,167,121,0.3);
}
.side-info p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--c-charcoal);
    opacity: 0.85;
    margin: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .cal-toolbar-wrap { top: 80px; }
    .cal-toolbar { flex-direction: column; align-items: stretch; }
    .cal-tools { width: 100%; }
    .cal-search { flex: 1; }
    .cal-search input { width: 100%; }
    .cal-card { padding: 1.25rem; }
    .cal-day { min-height: 55px; padding: 0.25rem; }
    .cal-day-num { font-size: 0.8rem; }
    .cal-sidebar { position: static; }
    .cal-header-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
    .cal-title { font-size: 1.5rem; }
    .cal-day { min-height: 44px; }
    .cal-day-num { font-size: 0.75rem; }
    .cal-day-dots span { width: 4px; height: 4px; }
    .cli-date { width: 55px; }
    .cli-day { font-size: 1.3rem; }
    .cd-countdown { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ Newsletter Card — توسيط كامل ═══ */
.newsletter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.4rem; /* مساحة رأسية إضافية */
    gap: 0.75rem;          /* مسافة موحّدة بين العناصر */
}

/* الأيقونة */
.newsletter-card .nl-icon {
    margin: 0 auto 0.5rem;
}

/* العنوان */
.newsletter-card h3 {
    margin: 0;
    text-align: center;
    width: 100%;
}

/* الوصف */
.newsletter-card p {
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 280px;
}

/* النموذج */
.newsletter-card .nl-form {
    width: 100%;
    max-width: 320px;
    margin: 0.5rem auto;
}

/* الملاحظة الصغيرة */
.newsletter-card small {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* ── أزرار إضافة للتقويم ── */
.cli-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.cli-add {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
}

/* Google */
.cli-add.gcal {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
    border-color: rgba(66, 133, 244, 0.25);
}
.cli-add.gcal:hover {
    background: #4285f4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(66, 133, 244, 0.3);
}

/* Apple */
.cli-add.apple {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
    border-color: rgba(0, 0, 0, 0.15);
}
.cli-add.apple:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Tooltip (اختياري) */
.cli-add::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--c-forest-3);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s;
}
.cli-add:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* الجوال: أزرار أصغر */
@media (max-width: 575.98px) {
    .cli-add { width: 32px; height: 32px; font-size: 0.9rem; }
    .cal-list-item { flex-wrap: wrap; }
    .cli-actions { margin-inline-start: auto; }
}

/* ═══ Day Events Modal ═══ */
.cal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: calModalFade 0.25s ease;
}
.cal-modal.closing {
    animation: calModalFadeOut 0.2s ease forwards;
}

@keyframes calModalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes calModalFadeOut {
    to { opacity: 0; }
}

.cal-modal-back {
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 35, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cal-modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(185, 167, 121, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: calModalIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes calModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cal-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--c-forest-3) 0%, var(--c-forest-2) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cal-modal-head::after {
    content: '';
    position: absolute;
    top: -30px;
    inset-inline-end: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(185, 167, 121, 0.3), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cal-modal-head small {
    display: block;
    font-size: 0.72rem;
    color: var(--c-wheat-2);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.cal-modal-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.cal-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.cal-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.cal-modal-list {
    padding: 1rem 1.5rem 1.25rem;
    overflow-y: auto;
    max-height: calc(85vh - 90px);
}

.cal-modal-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(185, 167, 121, 0.2);
}
.cal-modal-item:last-child { border-bottom: none; }

.cal-modal-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    background: rgba(185, 167, 121, 0.2);
    color: var(--c-wheat-3);
    margin-bottom: 0.5rem;
}

.cal-modal-item h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.cal-modal-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--c-wheat-3);
    font-weight: 600;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.cal-modal-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

.cal-modal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cal-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.cal-modal-btn.gcal {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
    border-color: rgba(66, 133, 244, 0.25);
}
.cal-modal-btn.gcal:hover {
    background: #4285f4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(66, 133, 244, 0.3);
}

.cal-modal-btn.apple {
    background: rgba(5, 66, 57, 0.08);
    color: var(--c-forest-2);
    border-color: rgba(5, 66, 57, 0.2);
}
.cal-modal-btn.apple:hover {
    background: var(--c-forest-2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 66, 57, 0.25);
}

/* الموبايل */
@media (max-width: 575.98px) {
    .cal-modal-box { border-radius: 14px; }
    .cal-modal-head { padding: 1rem 1.15rem; }
    .cal-modal-head h3 { font-size: 1rem; }
    .cal-modal-list { padding: 0.75rem 1.15rem 1rem; }
    .cal-modal-btn { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════════
   COMPLAINT PAGE — Formal & Professional
═══════════════════════════════════════════ */

.cp-page {
    padding: 2.5rem 0 5rem;
    background: linear-gradient(180deg, var(--c-wheat-1) 0%, #f9f8f3 100%);
    min-height: calc(100vh - 110px);
}
.cp-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.cp-head {
    text-align: center;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid rgba(185, 167, 121, 0.25);
    margin-bottom: 2.5rem;
}
.cp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--c-wheat-3);
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}
.cp-breadcrumb a { color: var(--c-forest-1); text-decoration: none; }
.cp-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.5rem;
}
.cp-subtitle {
    color: var(--c-charcoal);
    opacity: 0.75;
    max-width: 620px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}
.cp-head-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.cp-track-btn {
    background: var(--c-forest-2);
    color: #fff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}
.cp-track-btn:hover {
    background: var(--c-umber-1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 31, 42, 0.25);
}
.cp-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--c-forest-1);
    font-weight: 600;
}
.cp-secure i { color: #22c55e; }

/* Steps indicator */
.cp-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}
.cp-step {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.cp-step.active, .cp-step.done { opacity: 1; }
.cp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(185, 167, 121, 0.4);
    color: var(--c-wheat-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}
.cp-step.active .cp-step-num {
    background: var(--c-forest-2);
    border-color: var(--c-forest-2);
    color: #fff;
    box-shadow: 0 6px 15px rgba(5, 66, 57, 0.3);
}
.cp-step.done .cp-step-num {
    background: var(--c-wheat-2);
    border-color: var(--c-wheat-2);
    color: var(--c-forest-3);
}
.cp-step.done .cp-step-num::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-wheat-2);
    border-radius: 50%;
}
.cp-step.done .cp-step-num span { display: none; }
.cp-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-forest-2);
}
.cp-step-line {
    position: absolute;
    top: 20px;
    inset-inline-start: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: rgba(185, 167, 121, 0.3);
    z-index: 1;
}
.cp-step:last-child .cp-step-line { display: none; }
.cp-step.done .cp-step-line { background: var(--c-wheat-2); }

/* Form */
.cp-form {
    background: #fff;
    border: 1px solid rgba(185, 167, 121, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(5, 66, 57, 0.06);
}
.cp-step-panel { display: none; }
.cp-step-panel.active { display: block; animation: cpFadeIn 0.4s ease; }

@keyframes cpFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cp-panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.5rem;
}
.cp-panel-sub {
    font-size: 0.9rem;
    color: var(--c-charcoal);
    opacity: 0.75;
    margin-bottom: 1.75rem;
}

/* Step 1: Type cards */
.cp-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.cp-type-card {
    background: #fff;
    border: 2px solid rgba(185, 167, 121, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: inherit;
    font-family: inherit;
}
.cp-type-card:hover {
    border-color: var(--c-wheat-2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(185, 167, 121, 0.15);
}
.cp-type-card.selected {
    border-color: var(--c-forest-2);
    background: linear-gradient(180deg, rgba(5, 66, 57, 0.02), rgba(5, 66, 57, 0.06));
    box-shadow: 0 8px 25px rgba(5, 66, 57, 0.12);
}
.cp-type-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}
.cp-t-complaint  { background: rgba(107, 31, 42, 0.1); color: var(--c-umber-1); }
.cp-t-corruption { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.cp-t-suggestion { background: rgba(5, 66, 57, 0.1); color: var(--c-forest-1); }
.cp-t-thanks     { background: rgba(185, 167, 121, 0.2); color: var(--c-wheat-3); }

.cp-type-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.35rem;
}
.cp-type-card p {
    font-size: 0.8rem;
    color: var(--c-charcoal);
    opacity: 0.7;
    margin: 0;
}
.cp-type-check {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 24px;
    height: 24px;
    background: var(--c-forest-2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}
.cp-type-card.selected .cp-type-check {
    opacity: 1;
    transform: scale(1);
}

/* Fields */
.cp-field {
    margin-bottom: 1.25rem;
    position: relative;
}
.cp-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-forest-3);
    margin-bottom: 0.5rem;
}
.cp-field label small {
    color: var(--c-wheat-3);
    font-weight: 500;
    font-size: 0.72rem;
}
.cp-req { color: var(--c-umber-1); font-weight: 800; }
.cp-field input[type="text"],
.cp-field input[type="tel"],
.cp-field input[type="email"],
.cp-field textarea,
.cp-select {
    width: 100%;
    border: 1.5px solid rgba(185, 167, 121, 0.35);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--c-forest-3);
    background: #fff;
    transition: all 0.3s;
    font-family: inherit;
}
.cp-field input:focus,
.cp-field textarea:focus,
.cp-select:focus {
    outline: none;
    border-color: var(--c-forest-1);
    box-shadow: 0 0 0 3px rgba(5, 66, 57, 0.1);
}
.cp-field textarea { resize: vertical; min-height: 140px; }
.cp-hint { display: block; font-size: 0.72rem; color: var(--c-wheat-3); margin-top: 0.35rem; }
.cp-counter {
    position: absolute;
    inset-inline-end: 0.75rem;
    bottom: 0.5rem;
    font-size: 0.7rem;
    color: var(--c-wheat-3);
    background: #fff;
    padding: 0 0.25rem;
}
.cp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.cp-field.disabled { opacity: 0.4; pointer-events: none; }

/* Anonymous toggle */
.cp-anon-toggle {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(5, 66, 57, 0.04);
    border: 1px solid rgba(5, 66, 57, 0.12);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.cp-anon-toggle:hover { background: rgba(5, 66, 57, 0.06); }
.cp-anon-toggle input { display: none; }
.cp-anon-box {
    width: 44px;
    height: 24px;
    background: rgba(185, 167, 121, 0.4);
    border-radius: 20px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s;
}
.cp-anon-knob {
    position: absolute;
    top: 2px;
    inset-inline-start: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.cp-anon-toggle input:checked ~ .cp-anon-box { background: var(--c-forest-2); }
.cp-anon-toggle input:checked ~ .cp-anon-box .cp-anon-knob {
    transform: translateX(20px);
}
html[dir="rtl"] .cp-anon-toggle input:checked ~ .cp-anon-box .cp-anon-knob {
    transform: translateX(-20px);
}
.cp-anon-label strong {
    display: block;
    font-size: 0.9rem;
    color: var(--c-forest-3);
}
.cp-anon-label small {
    font-size: 0.75rem;
    color: var(--c-charcoal);
    opacity: 0.7;
}

/* Entity search */
.cp-entity-search { position: relative; }
.cp-entity-search > i {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-wheat-3);
    pointer-events: none;
}
.cp-entity-search input {
    padding-inline-start: 2.5rem !important;
}
.cp-entity-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(5, 66, 57, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}
.cp-entity-dropdown.open { display: block; }
.cp-entity-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--c-forest-3);
    border-bottom: 1px solid rgba(185, 167, 121, 0.1);
    transition: background 0.2s;
}
.cp-entity-option:last-child { border-bottom: none; }
.cp-entity-option:hover,
.cp-entity-option.highlighted {
    background: rgba(5, 66, 57, 0.06);
    color: var(--c-forest-2);
    font-weight: 700;
}

/* Dropzone */
.cp-dropzone {
    border: 2px dashed rgba(185, 167, 121, 0.5);
    border-radius: 14px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.cp-dropzone:hover,
.cp-dropzone.dragover {
    border-color: var(--c-forest-1);
    background: rgba(5, 66, 57, 0.03);
}
.cp-dropzone i {
    font-size: 2.2rem;
    color: var(--c-wheat-2);
    display: block;
    margin-bottom: 0.6rem;
}
.cp-dropzone strong {
    display: block;
    color: var(--c-forest-2);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.cp-dropzone small {
    font-size: 0.78rem;
    color: var(--c-wheat-3);
}
.cp-dropzone input { display: none; }
.cp-files-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cp-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(5, 66, 57, 0.04);
    border: 1px solid rgba(185, 167, 121, 0.2);
    border-radius: 10px;
    font-size: 0.82rem;
}
.cp-file-item i { color: var(--c-forest-1); }
.cp-file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--c-forest-3);
    font-weight: 600;
}
.cp-file-size { color: var(--c-wheat-3); font-size: 0.72rem; }
.cp-file-remove {
    background: none;
    border: none;
    color: var(--c-umber-1);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.25rem;
}

/* Audio recorder */
.cp-recorder {
    background: rgba(5, 66, 57, 0.04);
    border: 1px solid rgba(5, 66, 57, 0.12);
    border-radius: 12px;
    padding: 1rem;
}
.cp-rec-btn {
    background: var(--c-forest-2);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.cp-rec-btn:hover {
    background: var(--c-umber-1);
    transform: translateY(-2px);
}
.cp-rec-live {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: #fff;
    border-radius: 40px;
    border: 1px solid rgba(185, 167, 121, 0.3);
    display: inline-flex;
}
.cp-rec-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: cpRecPulse 1.2s infinite;
}
@keyframes cpRecPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50%      { opacity: 0.6; box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
.cp-rec-timer {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 1rem;
    color: var(--c-umber-1);
    min-width: 52px;
}
.cp-rec-stop, .cp-rec-cancel {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s;
}
.cp-rec-stop { background: var(--c-forest-2); color: #fff; }
.cp-rec-cancel { background: rgba(107, 31, 42, 0.1); color: var(--c-umber-1); }
.cp-rec-stop:hover { background: var(--c-forest-3); transform: scale(1.08); }
.cp-rec-cancel:hover { background: var(--c-umber-1); color: #fff; }

.cp-rec-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cp-rec-result audio {
    flex: 1;
    height: 40px;
}
.cp-rec-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(107, 31, 42, 0.1);
    color: var(--c-umber-1);
    cursor: pointer;
    transition: all 0.3s;
}
.cp-rec-remove:hover { background: var(--c-umber-1); color: #fff; }

/* Agreement */
.cp-agree {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(185, 167, 121, 0.08);
    border-radius: 10px;
    cursor: pointer;
    margin-top: 0.75rem;
}
.cp-agree input { margin-top: 3px; }
.cp-agree span { font-size: 0.83rem; color: var(--c-charcoal); line-height: 1.6; }

/* Navigation */
.cp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(185, 167, 121, 0.2);
    gap: 1rem;
}
.cp-nav-btn {
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 1.5px solid transparent;
}
.cp-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cp-prev {
    background: #fff;
    border-color: rgba(185, 167, 121, 0.35);
    color: var(--c-forest-2);
}
.cp-prev:not(:disabled):hover {
    border-color: var(--c-forest-2);
    background: rgba(5, 66, 57, 0.04);
}
.cp-next, .cp-submit {
    background: var(--c-forest-2);
    color: #fff;
    border-color: var(--c-forest-2);
    margin-inline-start: auto;
}
.cp-next:not(:disabled):hover,
.cp-submit:not(:disabled):hover {
    background: var(--c-forest-3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 66, 57, 0.25);
}

/* Success */
.cp-success {
    text-align: center;
    padding: 2rem 1rem;
}
.cp-success-icon {
    width: 80px;
    height: 80px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    animation: cpSuccessPop 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.3);
}
@keyframes cpSuccessPop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.cp-success h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.5rem;
}
.cp-success p {
    color: var(--c-charcoal);
    opacity: 0.75;
    margin-bottom: 2rem;
}
.cp-tracking-box {
    background: rgba(5, 66, 57, 0.04);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.cp-tracking-item { text-align: center; }
.cp-tracking-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--c-wheat-3);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}
.cp-tracking-val {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.cp-tracking-val code {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c-forest-2);
    background: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    letter-spacing: 1px;
    border: 1px dashed var(--c-wheat-2);
}
.cp-copy {
    background: var(--c-forest-2);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.cp-copy:hover { background: var(--c-forest-3); transform: scale(1.05); }
.cp-copy.copied { background: #22c55e; }
.cp-tracking-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.cp-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
    border: 1.5px solid transparent;
    font-family: inherit;
}
.cp-btn-primary {
    background: var(--c-forest-2);
    color: #fff;
    border-color: var(--c-forest-2);
}
.cp-btn-primary:hover { background: var(--c-forest-3); color: #fff; transform: translateY(-2px); }
.cp-btn-outline {
    background: transparent;
    color: var(--c-forest-2);
    border-color: var(--c-forest-2);
}
.cp-btn-outline:hover { background: var(--c-forest-2); color: #fff; }
.cp-success-note {
    background: rgba(185, 167, 121, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--c-wheat-3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Track modal */
.cp-track-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: cpFadeIn 0.25s ease;
}
.cp-track-back {
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 35, 0.6);
    backdrop-filter: blur(6px);
}
.cp-track-box {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.cp-track-close {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--c-forest-3);
}
.cp-track-box h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cp-track-box h3 i { color: var(--c-wheat-2); }
.cp-track-box > p {
    color: var(--c-charcoal);
    opacity: 0.75;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}
.cp-track-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.cp-track-input input {
    flex: 1;
    border: 1.5px solid rgba(185, 167, 121, 0.4);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--c-forest-3);
}
.cp-track-input input:focus {
    outline: none;
    border-color: var(--c-forest-1);
    box-shadow: 0 0 0 3px rgba(5, 66, 57, 0.1);
}
.cp-track-input button {
    width: 46px;
    background: var(--c-forest-2);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}
.cp-track-input button:hover { background: var(--c-forest-3); }
.cp-track-result {
    padding: 1rem;
    background: rgba(5, 66, 57, 0.04);
    border-radius: 10px;
    margin-top: 1rem;
}
.cp-track-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cp-status-pending   { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.cp-status-reviewing { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.cp-status-resolved  { background: rgba(34, 197, 94, 0.15);  color: #16a34a; }
.cp-status-rejected  { background: rgba(239, 68, 68, 0.15);  color: #dc2626; }

/* Responsive */
@media (max-width: 767.98px) {
    .cp-form { padding: 1.5rem; }
    .cp-row { grid-template-columns: 1fr; }
    .cp-type-grid { grid-template-columns: 1fr; }
    .cp-step-label { font-size: 0.65rem; }
    .cp-steps { gap: 0.25rem; }
    .cp-step-num { width: 34px; height: 34px; font-size: 0.8rem; }
    .cp-nav { flex-wrap: wrap; }
    .cp-nav-btn { flex: 1; justify-content: center; }
    .cp-tracking-val code { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════
   UBER-STYLE MAP
═══════════════════════════════════════════════ */

.health-map-container {
    height: 600px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #0a1220;
    box-shadow: 0 20px 60px rgba(5, 20, 40, 0.4);
}

/* ── Dark Tiles: قلب Uber-look ── */
.uber-style-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.65) contrast(1.3) saturate(0.55);
}

/* ── منع أي عنصر من تغطية الخريطة ── */
.uber-style-map .leaflet-control-container {
    pointer-events: none;
}
.uber-style-map .leaflet-control-container > * {
    pointer-events: auto;
}

/* ═══ 1) العلامات النابضة — Uber Pin ═══ */
.uber-marker {
    background: transparent !important;
    border: none !important;
}

.uber-marker .marker-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    transform: translate(-30px, -30px);
    pointer-events: auto;
    cursor: pointer;
}

/* الهالة الخارجية */
.uber-marker .marker-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(59, 130, 246, 0.55) 0%,
        rgba(59, 130, 246, 0.15) 40%,
        transparent 70%);
    animation: uberPulse 2.4s ease-out infinite;
}

/* الحلقة */
.uber-marker .marker-ring {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid rgba(96, 165, 250, 0.9);
    animation: uberRing 2.4s ease-out infinite;
}

/* النواة */
.uber-marker .marker-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    background: #3b82f6;
    border: 2.5px solid #fff;
    border-radius: 50%;
    box-shadow:
        0 0 8px #3b82f6,
        0 0 20px rgba(59, 130, 246, 0.7),
        0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: transform 0.25s ease;
}

.uber-marker:hover .marker-core {
    transform: scale(1.35);
    box-shadow:
        0 0 12px #60a5fa,
        0 0 30px rgba(96, 165, 250, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ألوان حسب النوع */
.uber-marker.hospital .marker-pulse { background: radial-gradient(circle, rgba(239,68,68,0.55) 0%, transparent 70%); }
.uber-marker.hospital .marker-ring  { border-color: rgba(248, 113, 113, 0.9); }
.uber-marker.hospital .marker-core  { background: #ef4444; box-shadow: 0 0 8px #ef4444, 0 0 20px rgba(239,68,68,0.7); }

.uber-marker.center .marker-pulse   { background: radial-gradient(circle, rgba(34,197,94,0.55) 0%, transparent 70%); }
.uber-marker.center .marker-ring    { border-color: rgba(74, 222, 128, 0.9); }
.uber-marker.center .marker-core    { background: #22c55e; box-shadow: 0 0 8px #22c55e, 0 0 20px rgba(34,197,94,0.7); }

.uber-marker.clinic .marker-pulse   { background: radial-gradient(circle, rgba(168,85,247,0.55) 0%, transparent 70%); }
.uber-marker.clinic .marker-ring    { border-color: rgba(196, 141, 255, 0.9); }
.uber-marker.clinic .marker-core    { background: #a855f7; box-shadow: 0 0 8px #a855f7, 0 0 20px rgba(168,85,247,0.7); }

@keyframes uberPulse {
    0%   { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes uberRing {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ═══ 2) الخطوط المتحركة — Uber Route ═══ */

/* الطبقة الأساسية (باهتة، ثابتة) */
.uber-route-base {
    stroke: #3b82f6;
    stroke-width: 2;
    stroke-opacity: 0.22;
    stroke-linecap: round;
}

/* الطبقة المتدفقة (شرطات تتحرك) */
.uber-route-flow {
    stroke: #60a5fa;
    stroke-width: 3;
    stroke-opacity: 0.85;
    stroke-linecap: round;
    animation: uberRouteFlow 1.8s linear infinite;
    filter: drop-shadow(0 0 4px #3b82f6) drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

@keyframes uberRouteFlow {
    to { stroke-dashoffset: -48; }
}

/* "السيارة" — نقطة بيضاء تجري على الخط */
.uber-route-traveler {
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-opacity: 1;
    animation: uberRouteTravel 3s linear infinite;
    filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #60a5fa);
}

@keyframes uberRouteTravel {
    to { stroke-dashoffset: -160; }
}

/* ═══ 3) Popup عصري ═══ */
.uber-popup .leaflet-popup-content-wrapper {
    background: rgba(10, 20, 35, 0.96);
    backdrop-filter: blur(16px);
    color: #fff;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.15);
    padding: 0;
}
.uber-popup .leaflet-popup-content {
    margin: 0;
    padding: 1.1rem 1.25rem;
    min-width: 220px;
}
.uber-popup .leaflet-popup-tip {
    background: rgba(10, 20, 35, 0.96);
    border: 1px solid rgba(96, 165, 250, 0.35);
}
.uber-popup .leaflet-popup-close-button {
    color: #60a5fa !important;
    font-size: 1.4rem !important;
    padding: 6px 8px !important;
}


.uber-popup h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}
.uber-popup p {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.uber-popup p i { color: #60a5fa; font-size: 0.75rem; }

.uber-popup .popup-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    margin-top: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.uber-popup .popup-nav-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

/* ═══ 4) Legend + Live indicator ═══ */
.uber-legend {
    position: absolute;
    bottom: 20px;
    inset-inline-start: 20px;
    background: rgba(10, 20, 35, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 500;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}
.uber-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.uber-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 0 6px currentColor;
}
.uber-legend-dot.hospital { background: #ef4444; color: #ef4444; }
.uber-legend-dot.center   { background: #22c55e; color: #22c55e; }
.uber-legend-dot.clinic   { background: #a855f7; color: #a855f7; }

.uber-live {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    background: rgba(10, 20, 35, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 30px;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 500;
    font-size: 0.72rem;
    font-weight: 800;
    color: #60a5fa;
    letter-spacing: 1px;
}
.uber-live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: uberLivePulse 1.5s infinite;
}
@keyframes uberLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.3); }
}

/* ═══ 5) أزرار التكبير Uber-style ═══ */
.uber-style-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 10px !important;
    overflow: hidden;
}
.uber-style-map .leaflet-control-zoom a {
    background: rgba(10, 20, 35, 0.95) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    font-weight: 800;
    width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
    font-size: 1.2rem !important;
}
.uber-style-map .leaflet-control-zoom a:hover {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* ═══ 6) Responsive ═══ */
@media (max-width: 767.98px) {
    .health-map-container { height: 450px; }
    .uber-legend { font-size: 0.68rem; padding: 0.5rem 0.75rem; }
    .uber-live { font-size: 0.65rem; padding: 0.35rem 0.75rem; }
}

@keyframes uberFlow {
    to { stroke-dashoffset: -36; }
}

.uber-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 350;
    overflow: visible;
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.35));
}

.uber-overlay line.uber-base {
    stroke: #3b82f6;
    stroke-width: 1.5;
    stroke-opacity: 0.18;
    stroke-linecap: round;
}

.uber-overlay line.uber-flow {
    stroke: #60a5fa;
    stroke-width: 2.5;
    stroke-opacity: 0.75;
    stroke-dasharray: 6 12;
    stroke-linecap: round;
    animation: uberFlow 1.5s linear infinite;
}


/* ═══════════════════ علامات المناطق ═══════════════════ */
.region-marker {
    background: transparent !important;
    border: none !important;
}
.region-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: linear-gradient(135deg, rgba(42, 211, 197, 0.96), rgba(5,66,57,.92));
    border: 2px solid var(--region-color, #b9a779);
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,.5), 0 0 15px var(--region-color);
    color: #edebe0;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    transform: translate(-50%, -50%);
}
.region-inner:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,.6), 0 0 25px var(--region-color);
}
.region-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}
.region-bar {
    display: flex;
    gap: 1px;
    height: 8px;
    min-width: 32px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0,0,0,.3);
}
.region-bar .seg { display: block; height: 100%; }
.region-bar .seg.ope { background: #22c55e; }
.region-bar .seg.par { background: #f59e0b; }
.region-bar .seg.ina { background: #c94a4a; }
.region-bar .seg.unk { background: #6b7280; }
.region-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    background: var(--region-color, #b9a779);
    color: #002623;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
}

/* مؤشر المستوى */
.map-level-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(0,38,35,.55);
    border: 1px solid rgba(185,167,121,.35);
    border-radius: 10px;
    color: #edebe0;
    font-size: .78rem;
    font-weight: 700;
}

/* Popup المنطقة */
.region-popup {
    padding: .9rem 1rem;
    min-width: 180px;
}
.region-popup h5 {
    color: #b9a779;
    font-size: .95rem;
    margin: 0 0 .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(185,167,121,.3);
}
.region-popup p {
    font-size: .82rem;
    margin: 4px 0;
    color: #edebe0;
}

/* ═══ Notice Banner ═══ */
.cp-notice-banner {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-right: 4px solid #3b82f6;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
html[dir="ltr"] .cp-notice-banner { border-right: none; border-left: 4px solid #3b82f6; }
.cp-notice-banner i { color: #3b82f6; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.cp-notice-banner strong { display: block; font-size: .9rem; color: var(--c-forest-3); margin-bottom: .3rem; }
.cp-notice-banner p { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--c-charcoal); }

/* ═══ Anonymous Note ═══ */
.cp-anon-note {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-right: 4px solid #8b5cf6;
    border-radius: 10px;
    margin-top: 1rem;
}
html[dir="ltr"] .cp-anon-note { border-right: none; border-left: 4px solid #8b5cf6; }
.cp-anon-note i { color: #8b5cf6; font-size: 1.3rem; flex-shrink: 0; }
.cp-anon-note strong { display: block; font-size: .9rem; color: #6d28d9; margin-bottom: .3rem; }
.cp-anon-note p { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--c-charcoal); }

/* ═══ Entity Dropdown ═══ */
.cp-entity-option {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(185, 167, 121, 0.12);
    cursor: pointer;
    transition: background 0.2s;
}
.cp-entity-option:last-child { border-bottom: none; }
.cp-entity-option:hover { background: rgba(5, 66, 57, 0.06); }
.ceo-name { font-weight: 700; font-size: 0.85rem; color: var(--c-forest-3); margin-bottom: 0.2rem; }
.ceo-meta { font-size: 0.72rem; color: var(--c-wheat-3); display: flex; gap: 0.75rem; font-weight: 600; }
.ceo-meta i { font-size: 0.65rem; }
.cp-entity-empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--c-wheat-3);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ═══ Modals ═══ */
.cp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: cpModalIn 0.25s ease;
}
@keyframes cpModalIn { from { opacity: 0; } to { opacity: 1; } }

.cp-modal-back {
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 35, 0.65);
    backdrop-filter: blur(6px);
}

.cp-modal-box {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: cpModalSlide 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes cpModalSlide {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cp-modal-head {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--c-forest-2), var(--c-forest-3));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cp-modal-head h3 { margin: 0; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.cp-modal-head h3 i { color: var(--c-wheat-2); }
.cp-modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.cp-modal-close:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }

.cp-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cp-modal-foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(185, 167, 121, 0.2);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ═══ Review List ═══ */
.cp-review-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(185, 167, 121, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.cp-review-row {
    display: flex;
    padding: 0.75rem 1rem;
    border-bottom: 1px dashed rgba(185, 167, 121, 0.15);
    font-size: 0.85rem;
}
.cp-review-row:last-child { border-bottom: none; }
.cp-review-row:nth-child(odd) { background: rgba(237, 235, 224, 0.3); }
.cp-review-label {
    font-weight: 700;
    color: var(--c-wheat-3);
    min-width: 120px;
    flex-shrink: 0;
}
.cp-review-value {
    color: var(--c-forest-3);
    font-weight: 600;
    word-break: break-word;
}
.cp-anon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
}

.cp-review-confirm {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.6;
}
.cp-review-confirm i { color: #f59e0b; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

/* ═══ Progress Modal ═══ */
.cp-progress-box {
    max-width: 420px;
    padding: 2.5rem 2rem;
    text-align: center;
}
.cp-progress-spinner {
    font-size: 3rem;
    color: var(--c-wheat-2);
    margin-bottom: 1.5rem;
}
.cp-progress-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.5rem;
}
.cp-progress-box p {
    font-size: 0.85rem;
    color: var(--c-charcoal);
    opacity: 0.7;
    margin: 0 0 1.5rem;
}
.cp-progress-bar {
    height: 6px;
    background: rgba(185, 167, 121, 0.2);
    border-radius: 3px;
    overflow: hidden;
}
.cp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-wheat-2), var(--c-forest-2));
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}

/* ═══ Success + Notice ═══ */
.cp-success-box {
    max-width: 620px;
    padding: 0;
}
.cp-success-head {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}
.cp-success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
    animation: cpSuccessPop 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes cpSuccessPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.cp-success-head h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--c-forest-3);
    margin: 0 0 0.35rem;
}
.cp-success-head p {
    font-size: 0.85rem;
    color: var(--c-charcoal);
    opacity: 0.7;
    margin: 0;
}


.cp-notice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--c-wheat-2);
    margin-bottom: 1rem;
}
.cp-notice-logo img { width: 48px; height: 48px; object-fit: contain; }
.cp-notice-title h3 { font-size: 1rem; font-weight: 800; color: var(--c-forest-3); margin: 0 0 0.15rem; }
.cp-notice-title p { font-size: 0.72rem; color: var(--c-wheat-3); margin: 0; font-weight: 600; }

.cp-notice-body { display: flex; flex-direction: column; gap: 0.65rem; }
.cp-notice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(237, 235, 224, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
}
.cp-notice-label { font-weight: 700; color: var(--c-wheat-3); }
.cp-notice-track {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    color: var(--c-forest-2);
    font-size: 1rem;
    letter-spacing: 1px;
}
#cp-notice-date, #cp-notice-subject { color: var(--c-forest-3); font-weight: 600; }

.cp-notice-qr {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(5, 66, 57, 0.04);
    border: 1px solid rgba(5, 66, 57, 0.1);
    border-radius: 10px;
    margin-top: 0.5rem;
}
#cp-notice-qrcode {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
}
#cp-notice-qrcode img, #cp-notice-qrcode canvas { display: block; }
.cp-notice-qr-text { flex: 1; min-width: 0; }
.cp-notice-qr-text strong { display: block; font-size: 0.78rem; color: var(--c-wheat-3); margin-bottom: 0.35rem; font-weight: 700; }
.cp-notice-qr-text a {
    color: var(--c-forest-1);
    font-size: 0.72rem;
    word-break: break-all;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    display: block;
}

.cp-notice-foot {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    text-align: center;
}
.cp-notice-foot i { color: #f59e0b; font-size: 1.1rem; }
.cp-notice-foot strong { display: block; margin: 0.35rem 0; color: #92400e; font-size: 0.85rem; }
.cp-notice-foot p { margin: 0; font-size: 0.75rem; color: #78350f; opacity: 0.85; }

.cp-success-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    flex-wrap: wrap;
}
.cp-success-actions .cp-btn { flex: 1; min-width: 150px; justify-content: center; }

/* ═══ Track input ═══ */
.cp-track-input { display: flex; gap: 0.5rem; }
.cp-track-input input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(185, 167, 121, 0.35);
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--c-forest-3);
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.cp-track-input button {
    width: 46px;
    background: var(--c-forest-2);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
}
.cp-track-input button:hover { background: var(--c-forest-3); }

.cp-track-status {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
}
.cp-status-pending { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.cp-status-reviewing { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.cp-status-resolved { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.cp-status-rejected { background: rgba(239, 68, 68, 0.15); color: #dc2626; }

/* Responsive */
@media (max-width: 575.98px) {
    .cp-notice-qr { flex-direction: column; text-align: center; }
    #cp-notice-qrcode { margin: 0 auto; }
    .cp-notice-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .cp-modal-box { max-width: 100%; }
}

.cp-success-box {
    max-width: 620px;
    width: 100%;
    padding: 0;
    max-height: 92vh;
    overflow-y: auto;              /* ← بدل overflow: hidden */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 167, 121, 0.4) transparent;
}
.cp-success-box::-webkit-scrollbar { width: 6px; }
.cp-success-box::-webkit-scrollbar-thumb {
    background: rgba(185, 167, 121, 0.4);
    border-radius: 3px;
}

/* استبدل .cp-success-head */
.cp-success-head {
    padding: 1.5rem 1.5rem 0.5rem;
    text-align: center;
    flex-shrink: 0;
}
.cp-success-icon {
    width: 60px;              /* ← أصغر */
    height: 60px;
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
}
.cp-success-head h2 { font-size: 1.15rem; margin: 0 0 0.25rem; }
.cp-success-head p  { font-size: 0.82rem; margin: 0; }

/* ═══ الأزرار — لاصقة في الأسفل ═══ */
.cp-success-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem 1rem;
    background: #fff;
    border-top: 1px solid rgba(185, 167, 121, 0.25);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    margin-top: auto;
    flex-shrink: 0;
}
.cp-success-actions .cp-btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
}
/* استبدل .cp-notice-card */



/* استبدل .cp-notice-header */
.cp-notice-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--c-wheat-2);
}
.cp-notice-logo img { width: 40px; height: 40px; }   /* ← أصغر من 48 */
.cp-notice-title h3 { font-size: 0.92rem; margin: 0 0 0.1rem; }
.cp-notice-title p  { font-size: 0.68rem; margin: 0; }

/* استبدل .cp-notice-body */
.cp-notice-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;                                       /* ← أقرب */
}

/* استبدل .cp-notice-row */
.cp-notice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.65rem;                           /* ← أنحف */
    background: rgba(237, 235, 224, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    gap: 0.5rem;
}
.cp-notice-label { flex-shrink: 0; }

/* استبدل .cp-notice-track */
.cp-notice-track {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ═══ QR أصغر ═══ */
.cp-notice-qr {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(5, 66, 57, 0.04);
    border: 1px solid rgba(5, 66, 57, 0.1);
    border-radius: 10px;
    margin-top: 0.5rem;
}
#cp-notice-qrcode {
    flex-shrink: 0;
    width: 120px;                /* ← كان 160 */
    height: 120px;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
}
#cp-notice-qrcode img,
#cp-notice-qrcode canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.cp-notice-qr-text { flex: 1; min-width: 0; }
.cp-notice-qr-text strong {
    display: block;
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
}
.cp-notice-qr-text a {
    font-size: 0.68rem;
    line-height: 1.4;
    word-break: break-all;
    display: block;
}

/* استبدل .cp-notice-foot */
.cp-notice-foot {
    margin-top: 0.75rem;
    padding: 0.6rem 0.85rem;
}
.cp-notice-foot i { font-size: 1rem; }
.cp-notice-foot strong { font-size: 0.8rem; margin: 0.25rem 0; }
.cp-notice-foot p { font-size: 0.7rem; }


@media (max-width: 575.98px) {
    .cp-success-box { max-height: 95vh; }
    
    .cp-success-head {
        padding: 1rem 1rem 0.5rem;
    }
    .cp-success-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    .cp-success-head h2 { font-size: 1rem; }
    .cp-success-head p  { font-size: 0.75rem; }
    
    .cp-notice-card {
        margin: 0.5rem 0.85rem;
        padding: 0.85rem 0.9rem;
    }
    .cp-notice-header { padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
    .cp-notice-logo img { width: 32px; height: 32px; }
    .cp-notice-title h3 { font-size: 0.82rem; }
    .cp-notice-title p  { font-size: 0.62rem; }
    
    .cp-notice-row { padding: 0.35rem 0.5rem; font-size: 0.72rem; }
    .cp-notice-track { font-size: 0.78rem; }
    
    /* QR فوق النص */
    .cp-notice-qr {
        flex-direction: column;
        text-align: center;
        padding: 0.65rem;
    }
    #cp-notice-qrcode {
        width: 110px;
        height: 110px;
        margin: 0 auto;
    }
    .cp-notice-qr-text { width: 100%; }
    
    .cp-success-actions {
        padding: 0.65rem 0.85rem 0.85rem;
        gap: 0.4rem;
    }
    .cp-success-actions .cp-btn {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 0;
        padding: 0.55rem 0.5rem;
        font-size: 0.72rem;
    }
    .cp-success-actions .cp-btn:first-child {
        flex-basis: 100%;
    }
}

/* ═══════════════════════════════════════════════════════
   COMPLAINT PAGE — Light Professional Theme
   ═══════════════════════════════════════════════════════ */

.cp-page-single {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 1.5rem 1rem 3rem;
    background: linear-gradient(180deg, #fcfbf8 0%, var(--c-wheat-1, #edebe0) 100%);
    
    overflow: hidden;
}

/* باترن خفيف جدًا */
.cp-page-single::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/pattern.png') center / 480px repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* خلفية زخرفية — هالات فاتحة جدًا */
.cp-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.cp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: cpOrbFloat 22s ease-in-out infinite;
}
.cp-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(185, 167, 121, 0.28), transparent 70%);
    top: -180px; inset-inline-end: -160px;
}
.cp-orb-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(5, 66, 57, 0.12), transparent 70%);
    bottom: -180px; inset-inline-start: -140px;
    animation-delay: -8s;
}
.cp-orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(107, 31, 42, 0.08), transparent 70%);
    top: 45%; inset-inline-end: 35%;
    animation-delay: -15s;
}
@keyframes cpOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(35px, -40px) scale(1.08); }
}

.cp-wrap {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* ═══ Top Bar — شريط فاتح أنيق ═══ */
.cp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(5, 66, 57, 0.06);
}

.cp-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(185, 167, 121, 0.4);
    border-radius: 8px;
    color: var(--c-forest-2, #054239);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.25s;
}
.cp-topbar-btn:hover {
    background: rgba(185, 167, 121, 0.12);
    border-color: var(--c-wheat-2, #b9a779);
    color: var(--c-forest-2, #054239);
    transform: translateY(-1px);
}
.cp-topbar-btn.cp-topbar-primary {
    background: linear-gradient(135deg, var(--c-forest-2, #054239), var(--c-forest-3, #002623));
    color: #ffffff;
    border-color: var(--c-forest-2, #054239);
}
.cp-topbar-btn.cp-topbar-primary:hover {
    background: linear-gradient(135deg, var(--c-forest-3, #002623), #001411);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(5, 66, 57, 0.25);
}

.cp-topbar-center {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-forest-2, #054239);
    font-weight: 800;
    font-size: 0.92rem;
}
.cp-topbar-center i {
    color: var(--c-wheat-2, #b9a779);
}

/* ═══ Form Layout ═══ */
.cp-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.cp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* ═══ Card — زجاج فاتح على خلفية قمحية ═══ */
.cp-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow:
        0 8px 30px rgba(5, 66, 57, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.cp-card:hover {
    border-color: rgba(185, 167, 121, 0.55);
    box-shadow:
        0 12px 40px rgba(5, 66, 57, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}
.cp-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--c-wheat-2, #b9a779), transparent);
    border-radius: 0 0 3px 0;
}
.cp-card-full {
    grid-column: 1 / -1;
}

/* Card Header */
.cp-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(185, 167, 121, 0.2);
}
.cp-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.cp-card-icon.ic-forest { background: linear-gradient(135deg, var(--c-forest-1, #428177), var(--c-forest-2, #054239)); }
.cp-card-icon.ic-wheat  { background: linear-gradient(135deg, var(--c-wheat-2, #b9a779), var(--c-wheat-3, #988561)); color: var(--c-forest-3, #002623); }
.cp-card-icon.ic-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.cp-card-icon.ic-umber  { background: linear-gradient(135deg, var(--c-umber-1, #6b1f2a), #4a151e); }
.cp-card-icon.ic-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.cp-card-icon.ic-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.cp-card-head-text {
    flex: 1;
    min-width: 0;
}
.cp-card-head-text h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-forest-3, #002623);
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.cp-card-head-text p {
    font-size: 0.78rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.65;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* ═══ Type Cards ═══ */
.cp-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.cp-type-card {
    background: #ffffff;
    border: 1.5px solid rgba(185, 167, 121, 0.35);
    border-radius: 14px;
    padding: 1.15rem 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    font-family: inherit;
    color: var(--c-forest-3, #002623);
}
.cp-type-card:hover {
    background: rgba(237, 235, 224, 0.6);
    border-color: var(--c-wheat-2, #b9a779);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(185, 167, 121, 0.15);
}
.cp-type-card.selected {
    background: linear-gradient(135deg, var(--c-forest-2, #054239), var(--c-forest-3, #002623));
    border-color: var(--c-wheat-2, #b9a779);
    box-shadow: 0 10px 30px rgba(5, 66, 57, 0.3);
}
.cp-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
    transition: all 0.3s;
}
.cp-t-complaint  { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.cp-t-corruption { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.cp-t-suggestion { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.cp-t-thanks     { background: rgba(185, 167, 121, 0.2); color: var(--c-wheat-3, #988561); }

.cp-type-card.selected .cp-type-icon {
    background: rgba(185, 167, 121, 0.25) !important;
    color: var(--c-wheat-2, #b9a779) !important;
    transform: scale(1.08) rotate(-5deg);
}
.cp-type-card h3 {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: var(--c-forest-3, #002623);
    transition: color 0.25s;
}
.cp-type-card p {
    font-size: 0.72rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.7;
    margin: 0;
    transition: color 0.25s;
}
.cp-type-card.selected h3 {
    color: #ffffff;
}
.cp-type-card.selected p {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
}
.cp-type-check {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 22px;
    height: 22px;
    background: var(--c-wheat-2, #b9a779);
    color: var(--c-forest-3, #002623);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}
.cp-type-card.selected .cp-type-check {
    opacity: 1;
    transform: scale(1);
}

/* ═══ Fields — حقول فاتحة واضحة ═══ */
.cp-field {
    margin-bottom: 1rem;
    position: relative;
}
.cp-field:last-child { margin-bottom: 0; }
.cp-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-forest-3, #002623);
    margin-bottom: 0.5rem;
}
.cp-field label small {
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.55;
    font-weight: 500;
    font-size: 0.72rem;
}
.cp-req {
    color: #dc2626;
    font-weight: 800;
}

.cp-field input[type="text"],
.cp-field input[type="tel"],
.cp-field input[type="email"],
.cp-field textarea,
.cp-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1.5px solid rgba(185, 167, 121, 0.4);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--c-forest-3, #002623);
    transition: all 0.25s;
}
.cp-field input::placeholder,
.cp-field textarea::placeholder {
    color: rgba(61, 58, 59, 0.4);
}
.cp-field input:focus,
.cp-field textarea:focus,
.cp-select:focus {
    outline: none;
    border-color: var(--c-forest-1, #428177);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 129, 119, 0.15);
}
.cp-field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}
.cp-select option {
    background: #ffffff;
    color: var(--c-forest-3, #002623);
    padding: 8px;
}
.cp-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.6;
    margin-top: 0.35rem;
    font-weight: 500;
}
.cp-counter {
    position: absolute;
    inset-inline-end: 0.85rem;
    bottom: 0.55rem;
    font-size: 0.7rem;
    color: var(--c-wheat-3, #988561);
    background: rgba(255, 255, 255, 0.95);
    padding: 0 0.4rem;
    border-radius: 4px;
    pointer-events: none;
    font-weight: 700;
}

/* ═══ Anonymous toggle — قمحي فاتح ═══ */
.cp-anon-toggle {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 1rem;
    background: rgba(237, 235, 224, 0.6);
    border: 1px solid rgba(185, 167, 121, 0.35);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.25s;
}
.cp-anon-toggle:hover {
    background: rgba(237, 235, 224, 0.9);
    border-color: var(--c-wheat-2, #b9a779);
}
.cp-anon-toggle input { display: none; }
.cp-anon-box {
    width: 44px;
    height: 24px;
    background: rgba(185, 167, 121, 0.4);
    border-radius: 20px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s;
}
.cp-anon-knob {
    position: absolute;
    top: 2px;
    inset-inline-start: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.cp-anon-toggle input:checked ~ .cp-anon-box {
    background: var(--c-forest-2, #054239);
}
.cp-anon-toggle input:checked ~ .cp-anon-box .cp-anon-knob {
    transform: translateX(20px);
}
html[dir="rtl"] .cp-anon-toggle input:checked ~ .cp-anon-box .cp-anon-knob {
    transform: translateX(-20px);
}
.cp-anon-label strong {
    display: block;
    font-size: 0.88rem;
    color: var(--c-forest-3, #002623);
    font-weight: 800;
    margin-bottom: 0.1rem;
}
.cp-anon-label small {
    font-size: 0.72rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.65;
    font-weight: 500;
}

.cp-anon-note {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    margin-top: 0.75rem;
}
.cp-anon-note i {
    color: #7c3aed;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cp-anon-note strong {
    display: block;
    font-size: 0.85rem;
    color: #6d28d9;
    margin-bottom: 0.15rem;
}
.cp-anon-note p {
    font-size: 0.75rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.75;
    margin: 0;
    line-height: 1.5;
}

/* ═══ Entity Search ═══ */
.cp-entity-search {
    position: relative;
}
.cp-entity-search > i {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-wheat-3, #988561);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}
.cp-entity-search input {
    padding-inline-start: 2.5rem !important;
}
.cp-entity-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(185, 167, 121, 0.35);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(5, 66, 57, 0.15);
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}
.cp-entity-dropdown.open { display: block; }
.cp-entity-option {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(185, 167, 121, 0.15);
    cursor: pointer;
    transition: background 0.2s;
}
.cp-entity-option:hover {
    background: rgba(237, 235, 224, 0.7);
}
.ceo-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-forest-3, #002623);
    margin-bottom: 0.2rem;
}
.ceo-meta {
    font-size: 0.72rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.65;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-weight: 600;
}
.ceo-meta i { font-size: 0.65rem; color: var(--c-wheat-3, #988561); }
.cp-entity-empty,
.cp-entity-more {
    padding: 1rem;
    text-align: center;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.6;
    font-size: 0.82rem;
    font-weight: 600;
}
.cp-entity-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    color: var(--c-wheat-2, #b9a779);
}
.cp-entity-more {
    background: rgba(185, 167, 121, 0.1);
    font-size: 0.72rem;
}

/* ═══ Dropzone ═══ */
.cp-dropzone {
    padding: 1.75rem 1rem;
    border: 2px dashed rgba(185, 167, 121, 0.55);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(237, 235, 224, 0.4);
}
.cp-dropzone:hover,
.cp-dropzone.dragover {
    border-color: var(--c-forest-1, #428177);
    background: rgba(185, 167, 121, 0.12);
}
.cp-dropzone i {
    font-size: 2rem;
    color: var(--c-wheat-2, #b9a779);
    display: block;
    margin-bottom: 0.5rem;
}
.cp-dropzone strong {
    display: block;
    color: var(--c-forest-3, #002623);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.cp-dropzone small {
    font-size: 0.72rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.6;
}
.cp-dropzone input { display: none; }

.cp-files-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.cp-file-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    background: rgba(237, 235, 224, 0.6);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 8px;
    font-size: 0.82rem;
}
.cp-file-item i {
    color: var(--c-wheat-2, #b9a779);
}
.cp-file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--c-forest-3, #002623);
    font-weight: 700;
}
.cp-file-size {
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.6;
    font-size: 0.72rem;
    font-weight: 600;
}
.cp-file-remove {
    background: rgba(239, 68, 68, 0.12);
    border: none;
    color: #dc2626;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.cp-file-remove:hover {
    background: #dc2626;
    color: #fff;
}

/* ═══ Audio Recorder ═══ */
.cp-recorder {
    background: rgba(237, 235, 224, 0.4);
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 12px;
    padding: 1rem;
}
.cp-rec-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--c-umber-1, #6b1f2a), #4a151e);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(107, 31, 42, 0.25);
}
.cp-rec-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 31, 42, 0.35);
}
.cp-rec-live {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem;
    background: #ffffff;
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 10px;
}
.cp-rec-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: cpRecPulse 1.2s infinite;
}
@keyframes cpRecPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50%      { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
.cp-rec-timer {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--c-forest-2, #054239);
    flex: 1;
}
.cp-rec-stop,
.cp-rec-cancel {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.cp-rec-stop {
    background: var(--c-forest-2, #054239);
    color: #ffffff;
}
.cp-rec-cancel {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}
.cp-rec-stop:hover { transform: scale(1.1); }
.cp-rec-cancel:hover {
    background: #dc2626;
    color: #ffffff;
}

.cp-rec-result {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.cp-rec-result audio {
    flex: 1;
    height: 40px;
}
.cp-rec-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    cursor: pointer;
    transition: all 0.25s;
}
.cp-rec-remove:hover {
    background: #dc2626;
    color: #ffffff;
}

/* ═══ Submit Card — تمييز ذهبي خفيف ═══ */
.cp-card-submit {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(237, 235, 224, 0.8) 100%);
    border-color: rgba(185, 167, 121, 0.5);
    box-shadow:
        0 12px 35px rgba(5, 66, 57, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}
.cp-card-submit::before {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--c-wheat-2, #b9a779), var(--c-forest-1, #428177), var(--c-wheat-2, #b9a779));
    border-radius: 3px 3px 0 0;
}

.cp-submit-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cp-submit-notice {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
}
.cp-submit-notice i {
    color: #2563eb;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.cp-submit-notice strong {
    display: block;
    font-size: 0.85rem;
    color: #1e40af;
    margin-bottom: 0.15rem;
}
.cp-submit-notice p {
    font-size: 0.75rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.cp-agree {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(185, 167, 121, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
}
.cp-agree:hover {
    background: rgba(237, 235, 224, 0.5);
    border-color: var(--c-wheat-2, #b9a779);
}
.cp-agree input {
    margin-top: 3px;
    accent-color: var(--c-forest-2, #054239);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.cp-agree span {
    font-size: 0.82rem;
    color: var(--c-forest-3, #002623);
    line-height: 1.6;
    font-weight: 600;
}

.cp-submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--c-forest-2, #054239), var(--c-forest-3, #002623));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(5, 66, 57, 0.25);
    position: relative;
    overflow: hidden;
}
.cp-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transition: left 0.6s;
}
.cp-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}
.cp-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(5, 66, 57, 0.35);
}
.cp-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
}

/* ═══ Modals ═══ */
.cp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: cpModalIn 0.25s ease;
}
@keyframes cpModalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.cp-modal-back {
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 35, 0.75);
    backdrop-filter: blur(8px);
}
.cp-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: cpModalSlide 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes cpModalSlide {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cp-modal-head {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--c-forest-2, #054239), var(--c-forest-3, #002623));
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cp-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cp-modal-head h3 i {
    color: var(--c-wheat-2, #b9a779);
}
.cp-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s;
}
.cp-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}
.cp-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.cp-modal-foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(185, 167, 121, 0.2);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Review */
.cp-review-list {
    border: 1px solid rgba(185, 167, 121, 0.25);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.cp-review-row {
    display: flex;
    padding: 0.75rem 1rem;
    border-bottom: 1px dashed rgba(185, 167, 121, 0.2);
    font-size: 0.85rem;
}
.cp-review-row:last-child {
    border-bottom: none;
}
.cp-review-row:nth-child(odd) {
    background: rgba(237, 235, 224, 0.4);
}
.cp-review-label {
    font-weight: 800;
    color: var(--c-wheat-3, #988561);
    min-width: 120px;
    flex-shrink: 0;
}
.cp-review-value {
    color: var(--c-forest-3, #002623);
    font-weight: 600;
    word-break: break-word;
}
.cp-anon-badge {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
}
.cp-review-confirm {
    display: flex;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.6;
}
.cp-review-confirm i {
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    border: 1.5px solid transparent;
}
.cp-btn-primary {
    background: var(--c-forest-2, #054239);
    color: #ffffff;
    border-color: var(--c-forest-2, #054239);
}
.cp-btn-primary:hover {
    background: var(--c-forest-3, #002623);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 66, 57, 0.3);
}
.cp-btn-outline {
    background: transparent;
    color: var(--c-forest-2, #054239);
    border-color: var(--c-forest-2, #054239);
}
.cp-btn-outline:hover {
    background: var(--c-forest-2, #054239);
    color: #ffffff;
}

/* Progress */
.cp-progress-box {
    max-width: 420px;
    padding: 2.5rem 2rem;
    text-align: center;
}
.cp-progress-spinner {
    font-size: 3rem;
    color: var(--c-wheat-2, #b9a779);
    margin-bottom: 1.5rem;
}
.cp-progress-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-forest-3, #002623);
    margin: 0 0 0.5rem;
}
.cp-progress-box p {
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 0 0 1.5rem;
}
.cp-progress-bar {
    height: 6px;
    background: rgba(185, 167, 121, 0.2);
    border-radius: 3px;
    overflow: hidden;
}
.cp-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--c-wheat-2, #b9a779), var(--c-forest-2, #054239));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Success */
.cp-success-box {
    max-width: 620px;
    padding: 0;
}
.cp-success-head {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}
.cp-success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
    animation: cpSuccessPop 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes cpSuccessPop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.cp-success-head h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-forest-3, #002623);
    margin: 0 0 0.35rem;
}
.cp-success-head p {
    font-size: 0.85rem;
    color: var(--c-charcoal, #3d3a3b);
    opacity: 0.7;
    margin: 0;
}

.cp-notice-card {
    margin: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 2px dashed rgba(185, 167, 121, 0.5);
    border-radius: 14px;
}
.cp-notice-header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--c-wheat-2, #b9a779);
    margin-bottom: 1rem;
}
.cp-notice-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.cp-notice-title h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-forest-3, #002623);
    margin: 0 0 0.15rem;
}
.cp-notice-title p {
    font-size: 0.72rem;
    color: var(--c-wheat-3, #988561);
    margin: 0;
    font-weight: 700;
}
.cp-notice-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cp-notice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(237, 235, 224, 0.5);
    border-radius: 8px;
    font-size: 0.85rem;
    gap: 0.5rem;
}
.cp-notice-label {
    font-weight: 700;
    color: var(--c-wheat-3, #988561);
}
.cp-notice-track {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    color: var(--c-forest-2, #054239);
    font-size: 1rem;
    letter-spacing: 1px;
}
#cp-notice-date,
#cp-notice-subject {
    color: var(--c-forest-3, #002623);
    font-weight: 700;
}
.cp-notice-qr {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    background: rgba(5, 66, 57, 0.05);
    border: 1px solid rgba(185, 167, 121, 0.2);
    border-radius: 10px;
    margin-top: 0.5rem;
}
#cp-notice-qrcode {
    width: 120px;
    height: 120px;
    background: #ffffff;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
}
#cp-notice-qrcode img,
#cp-notice-qrcode canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.cp-notice-qr-text {
    flex: 1;
    min-width: 0;
}
.cp-notice-qr-text strong {
    display: block;
    font-size: 0.75rem;
    color: var(--c-wheat-3, #988561);
    margin-bottom: 0.35rem;
    font-weight: 800;
}
.cp-notice-qr-text a {
    color: var(--c-forest-1, #428177);
    font-size: 0.72rem;
    word-break: break-all;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    display: block;
}
.cp-notice-foot {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    text-align: center;
}
.cp-notice-foot i {
    color: #f59e0b;
    font-size: 1.1rem;
}
.cp-notice-foot strong {
    display: block;
    margin: 0.35rem 0;
    color: #92400e;
    font-size: 0.85rem;
}
.cp-notice-foot p {
    margin: 0;
    font-size: 0.75rem;
    color: #78350f;
}

.cp-success-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    flex-wrap: wrap;
}
.cp-success-actions .cp-btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
    .cp-grid-2 { grid-template-columns: 1fr; }
    .cp-type-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .cp-page-single { padding: 1rem 0.75rem 2rem; }
    .cp-card { padding: 1.25rem; border-radius: 16px; }
    .cp-card-head { margin-bottom: 1.15rem; padding-bottom: 0.9rem; }
    .cp-card-icon { width: 38px; height: 38px; font-size: 0.95rem; }
    .cp-card-head-text h2 { font-size: 0.95rem; }
    .cp-card-head-text p { font-size: 0.72rem; }
    .cp-topbar { padding: 0.6rem 0.75rem; gap: 0.5rem; }
    .cp-topbar-center { display: none; }
    .cp-topbar-btn { padding: 0.45rem 0.85rem; font-size: 0.75rem; }
    .cp-notice-qr { flex-direction: column; text-align: center; }
    #cp-notice-qrcode { margin: 0 auto; }
    .cp-success-actions .cp-btn { flex: 1 1 100%; }
}

@media (max-width: 575.98px) {
    .cp-type-grid { grid-template-columns: 1fr; }
    .cp-card { padding: 1rem; }
    .cp-card-head-text h2 { font-size: 0.9rem; }
    .cp-notice-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .cp-modal-box { max-width: 100%; }
}

/* Print */
@media print {
    .cp-page-single { background: #ffffff !important; padding: 0; }
    .cp-topbar, .cp-form { display: none !important; }
    .cp-modal-back { display: none !important; }
    .cp-modal { position: static !important; background: #ffffff; }
    .cp-success-actions { display: none !important; }
}

#cp-notice-qrcode {
    width: 120px;
    height: 120px;
    background: #ffffff;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cp-notice-qrcode canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* اخفِ عنصر img الاحتياطي */
#cp-notice-qrcode img {
    display: none !important;
}

.cp-success-box {
    max-width: 620px;
    width: 100%;
    padding: 0;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 167, 121, 0.5) transparent;
}
.cp-success-box::-webkit-scrollbar {
    width: 6px;
}
.cp-success-box::-webkit-scrollbar-thumb {
    background: rgba(185, 167, 121, 0.5);
    border-radius: 3px;
}

/* رأ س النجاح — يبقى في الأعلى أثناء التمرير */
.cp-success-head {
    padding: 1.5rem 1.5rem 0.75rem;
    text-align: center;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 5;
    border-bottom: 1px solid rgba(185, 167, 121, 0.15);
}

/* بطاقة الإشعار — مساحة تنفّس أقل */
.cp-notice-card {
    margin: 1rem 1.5rem 0.5rem;
    padding: 1.35rem;
    background: #ffffff;
    border: 2px dashed rgba(185, 167, 121, 0.5);
    border-radius: 14px;
}

/* الأزرار — لاصقة في الأسفل دائمًا */
.cp-success-actions {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px solid rgba(185, 167, 121, 0.25);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* على الموبايل — قسم فرعي داخل البطاقة */
@media (max-width: 575.98px) {
    .cp-notice-card {
        margin: 0.75rem 0.85rem 0.5rem;
        padding: 1rem;
    }
    .cp-notice-row {
        flex-wrap: wrap;
    }
    .cp-notice-track {
        font-size: 0.92rem;
        word-break: break-all;
    }
    #cp-notice-qrcode {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
    .cp-notice-qr {
        flex-direction: column;
        text-align: center;
    }
}

.news-gallery { margin: 2rem 0; }
.gallery-title {
    font-size: 1.1rem; font-weight: 800;
    color: var(--c-forest-3); margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.gallery-title i { color: var(--c-wheat-2); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.gallery-item {
    display: block;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(5,66,57,0.05);
    transition: all 0.3s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(5,66,57,0.15); }
.gallery-item img,
.gallery-item video,
.gallery-item iframe {
    width: 100%; height: 100%; object-fit: cover; display: block;
}