/* Charcoal - Professional System Styles 
    Design Theme: Modern Dark Mode (Navy & Aqua)
*/

:root {
    --primary: #2FB7B3;
    --primary-dark: #259a96;
    --bg-navy: #0E1C2A;
    --card-bg: #1C2B36;
    --text-white: #FFFFFF;
    --text-gray: #A0AEC0;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --glass: rgba(28, 43, 54, 0.9);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-navy);
    color: var(--text-white);
    margin: 0;
    direction: rtl;
    line-height: 1.6;
}

/* Container */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* --- Screens & Transitions --- */
.screen {
    display: none;
    padding: 20px;
    animation: slideUp 0.4s ease-out;
}

.screen.active {
    display: block;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Typography --- */
.logo-container {
    text-align: center;
    padding: 60px 0 40px;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* --- Buttons --- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-navy);
    box-shadow: 0 10px 20px rgba(47, 183, 179, 0.2);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    margin-top: 10px;
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(47, 183, 179, 0.05);
}

/* --- Family & Type Selectors --- */
.family-selector, .distributor-type-selector, .candle-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
}

.family-btn, .distributor-type-btn, .candle-type-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.family-btn.active, .distributor-type-btn.active, .candle-type-btn.active {
    background: var(--primary);
    color: var(--bg-navy);
    border-color: var(--primary);
}

/* --- Customer Cards --- */
.customer-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.customer-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.customer-card h4 { margin: 0 0 8px 0; font-size: 1.2rem; }
.customer-card p { margin: 0; color: var(--text-gray); font-size: 0.9rem; }

/* --- Modals --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-end; /* يفتح من الأسفل في الموبايل */
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-navy);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 25px 25px 0 0;
    padding: 30px 20px;
    border-top: 4px solid var(--primary);
    animation: slideUp 0.3s ease-out;
}

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-navy);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader.active { display: flex; }

.loader-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(47, 183, 179, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
/* تعديل طريقة عرض الشمع */
.candles-grid {
    display: flex;
    flex-direction: column; /* رص العناصر تحت بعض */
    gap: 15px;
    padding: 10px 0;
}
.candle-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 5px;
    flex: 1;                    /* توزيع العرض بالتساوي */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;               /* منع العناصر من الخروج عن الحاوي */
}

/* تأثير عند تفعيل الشمعة */
.candle-item.active {
    background: rgba(47, 183, 179, 0.08);
    border-color: var(--primary);
    transform: translateY(-5px); /* حركة بسيطة للأعلى */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 5;
}

/* تصغير الدوائر لتناسب وجود 3 بجانب بعض */
.candle-progress {
    position: relative;
    width: 60px;       /* عرض ثابت للحاوية */
    height: 60px;
    margin-bottom: 5px;
}

.candle-progress svg {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg); /* تدوير الدائرة لتبدأ من الأعلى */
}

.candle-progress .progress-ring-circle-bg,
.candle-progress .progress-ring-circle {
    cx: 30;            /* مركز الدائرة الجديد (نصف الـ 60) */
    cy: 30;
    r: 26;             /* نصف القطر الجديد */
}

.candle-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem; /* تصغير الخط */
    font-weight: bold;
    color: white;
}

.candle-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

/* قسم التفاصيل (مخفي افتراضياً) */
.candle-details-hidden {
    display: none;
    width: 100%;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease;
}

/* إظهار التفاصيل لما الكلاس active يكون موجود */
.candle-item.active .candle-details-hidden {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.candle-label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 8px;
    color: white;
}

.candle-percentage {
    font-size: 0.8rem; /* تصغير الخط داخل الدائرة */
}
.screen-header {
    position: relative;
    padding-top: 50px; /* مسافة عشان الزرار */
    margin-bottom: 20px;
    text-align: center;
}

.btn-back-fixed {
    position: fixed;
    top: 20px;
    left: 20px; /* أو right حسب تفضيلك، هنا left عشان العربي */
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000; /* عشان يفضل فوق كل حاجة */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.candle-card-vertical {
    background: var(--card-bg);
    border-right: 5px solid var(--primary); /* خط ملون يمين الكارت */
    border-radius: 15px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr; /* عمود للرسم البياني وعمود للتفاصيل */
    gap: 20px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
/* ألوان الحالات */
.status-ok { border-right-color: #10b981; background: linear-gradient(90deg, rgba(16,185,129,0.05) 0%, rgba(28,43,54,1) 100%); }
.status-warning { border-right-color: #f59e0b; background: linear-gradient(90deg, rgba(245,158,11,0.05) 0%, rgba(28,43,54,1) 100%); }
.status-critical { border-right-color: #ef4444; background: linear-gradient(90deg, rgba(239,68,68,0.05) 0%, rgba(28,43,54,1) 100%); }

/* النصوص والأرقام */
.candle-meta h4 { margin: 0 0 5px 0; font-size: 1.1rem; }
.candle-status-text { font-weight: bold; font-size: 0.9rem; margin-bottom: 10px; }
.candle-dates p { margin: 2px 0; font-size: 0.8rem; color: #a0aec0; }
.candle-big-number { font-size: 1.4rem; font-weight: 800; }

/* --- 3. الأزرار الجديدة --- */
.actions-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.btn-urgent {
    background: #ef4444; /* لون مميز لطلب الفلتر */
    color: white;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-action-main {
    background: var(--primary);
    color: var(--bg-navy);
    padding: 16px;
    font-weight: bold;
}

.btn-neutral {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
}

/* --- 4. التنبيهات العلوية --- */
.alert-banner {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}
.alert-critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid #ef4444; }
.alert-warning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }

@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* --- تنسيقات مودال التغيير الجديد --- */

/* توسيط المحتوى وجعل الحواف ناعمة */
.modal-content-centered {
    border-radius: 20px 20px 0 0; /* في الموبايل */
    padding: 25px;
    position: relative;
}

@media (min-width: 500px) {
    .modal-content-centered {
        border-radius: 20px;
    }
}

/* الهيدر الجديد */
.modal-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header-new h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

/* زر الإغلاق الكبير */
.modal-close-large {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem; /* كبير جداً */
    line-height: 1;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close-large:hover {
    background: #ef4444;
}

/* تكبير حقول الإدخال */
.input-large {
    padding: 15px;
    font-size: 1.1rem;
    height: auto;
}

/* تكبير زر التأكيد ومنطقة الإبهام */
.btn-large {
    padding: 18px;
    font-size: 1.2rem;
    margin-top: 10px;
    margin-bottom: 20px; /* مسافة أمان للإبهام */
}

/* تنسيق حالة الزر المعطل */
button:disabled {
    background: #4b5563; /* لون رمادي */
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}
/* --- تحسينات الموبايل المتطورة (Mobile Optimization) --- */

/* 1. إصلاح القائمة المنسدلة (Dropdown) */
select.input-large {
    appearance: none; /* إخفاء السهم الافتراضي للنظام */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* سهم مخصص لونه أبيض */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center; /* مكان السهم (يسار عشان عربي) */
    background-size: 18px;
    
    padding: 15px 15px 15px 45px !important; /* مساحة للسهم */
    background-color: rgba(255, 255, 255, 0.08); /* لون الخلفية */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    height: 60px; /* ارتفاع كبير لسهولة الضغط */
    width: 100%;
    outline: none;
}

/* إصلاح لون الخلفية عند فتح القائمة (للأندرويد والويندوز) */
select.input-large option {
    background-color: #1C2B36; /* نفس لون الكروت */
    color: white;
    padding: 15px;
    font-size: 1rem;
}

/* 2. تحويل المودال إلى (Bottom Sheet) في الموبايل */
@media (max-width: 480px) {
    .modal {
        align-items: flex-end; /* تثبيت المودال في أسفل الشاشة */
        padding: 0; /* إزالة المسافات الجانبية */
    }

    .modal-content-centered {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 25px 25px 0 0; /* تدوير الحواف العلوية فقط */
        padding: 25px 20px 40px 20px; /* مسافة إضافية من الأسفل للآيفون (Safe Area) */
        
        /* تأثير الحركة (Slide Up) */
        transform: translateY(100%);
        animation: slideUpBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        
        background: #15202b; /* لون أغمق قليلاً للتمييز */
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    }
    
    /* زر الإغلاق (X) يكون أسهل في الوصول */
    .modal-close-large {
        background: rgba(255,255,255,0.05);
        width: 40px;
        height: 40px;
    }
}

/* أنيميشن الظهور من الأسفل */
@keyframes slideUpBottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* 3. تحسينات إضافية لحقول التاريخ والملاحظات */
input[type="date"].input-large {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: 'Cairo', sans-serif;
}

textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    color: white;
}
/* --- تصميم قائمة الاختيار المخصصة للموبايل --- */
.custom-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* مسافة بين الخيارات */
    margin-top: 10px;
    max-height: 200px; /* لو الشمع كتير، يعمل سكرول خفيف */
    overflow-y: auto;
}

.selection-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between; /* يوزع النص والعلامة */
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* عند الضغط (Active State) */
.selection-item.active {
    background: rgba(47, 183, 179, 0.15); /* لون خفيف من الثيم */
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary); /* إطار مضيء */
}

.selection-info {
    display: flex;
    flex-direction: column;
}

.selection-title {
    font-weight: bold;
    color: white;
    font-size: 1rem;
}

.selection-subtitle {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 2px;
}

/* دائرة الاختيار (Radio Circle Custom) */
.selection-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: 0.2s;
}

.selection-item.active .selection-check {
    border-color: var(--primary);
    background: var(--primary);
}

/* علامة الصح داخل الدائرة */
.selection-item.active .selection-check::after {
    content: '✔';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #0E1C2A;
    font-size: 12px;
    font-weight: bold;
}
/* --- تنسيقات صفحة البحث الجديدة --- */

/* الهيدر الخاص بالبحث */
.search-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 60px; /* مساحة لزر الرجوع */
    margin-bottom: 40px;
}

.search-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: white;
}

/* زر الرجوع الكبير والثابت */
.btn-back-large-fixed {
    position: fixed;
    top: 25px;
    right: 25px; /* يمين الشاشة حسب الطلب */
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(10px);
}

/* حاوية الفورم */
.search-form-container {
    padding: 0 10px;
}

/* تنسيق حقل الإدخال */
#searchPhone {
    height: 65px; /* حجم كبير */
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-align: right; /* الكتابة من اليمين */
    font-weight: bold;
    border-radius: 16px;
    background: #1C2B36;
    border: 2px solid rgba(255,255,255,0.05);
}

#searchPhone:focus {
    border-color: var(--primary);
    background: #15202b;
}

/* تنسيق زر البحث */
.btn-search-large {
    height: 60px;
    font-size: 1.3rem;
    margin-top: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* حالة التعطيل (Disabled) */
.btn-search-large:disabled {
    background: #2d3e4d;
    color: #5c7080;
    cursor: not-allowed;
    opacity: 1; /* عشان اللون يظهر بوضوح */
    box-shadow: none;
}

/* لودر خفيف داخل الزر */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
/* --- تنسيقات التحقق (Validation Styles) --- */

/* رسائل الخطأ */
.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none; /* مخفي افتراضياً */
}

.error-msg.visible {
    display: block;
    animation: fadeIn 0.3s;
}

/* حالة الحقل الخطأ */
input.invalid {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05);
}

/* تنسيق زر الحفظ المعطل */
button:disabled {
    background: #4b5563 !important; /* لون رمادي */
    color: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none !important;
}

/* تنسيق اللودر داخل الزر */
.loader-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* تحسين شكل زر إضافة شمعة */
.btn-add-candle {
    margin-top: 10px;
    border-style: dashed;
    justify-content: center;
}
/* --- إصلاح ألوان القوائم المنسدلة (Dropdown Fix) --- */

/* 1. إجبار المتصفح على استخدام الوضع الليلي للقوائم */
select {
    max-width: 100%; /* يمنع القائمة من تجاوز عرض الحاوية */
    text-overflow: ellipsis; /* يضع ... لو النص المختار طويل */
    overflow: hidden;
    white-space: nowrap;
}

/* 2. تلوين الخيارات الداخلية */
select option {
    background-color: #1C2B36; /* نفس لون الكروت */
    color: white;
    padding: 10px;
}

/* 3. تنسيق إضافي لضمان ظهور الخلفية */
select:focus option {
    background-color: #1C2B36;
    color: white;
}
/* --- توحيد تصميم زر الرجوع (ليشبه زر البحث) --- */

.screen-header {
    display: flex;
    align-items: center;
    gap: 15px; /* مسافة بين الزر والعنوان */
    margin-bottom: 30px;
    padding-top: 10px;
}

.btn-back {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1); /* خلفية زجاجية */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px; /* حواف دائرية ناعمة */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0; /* إزالة الحواف الداخلية الافتراضية */
    flex-shrink: 0; /* منع الزر من الانكماش */
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-back:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

/* تنسيق العنوان بجانب الزر */
.screen-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

/* تعديل أيقونة الـ SVG داخل الزر لتكون بحجم مناسب */
.btn-back svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5; /* جعل الخط أسمك قليلاً */
}
/* --- تنسيقات الشاشة الرئيسية الجديدة --- */

/* 1. اللوجو */
.app-logo {
    width: 150px; /* حجم متوسط */
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-text {
    font-family: 'Cairo', sans-serif; /* أو الخط المفضل لديك */
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 5px 0 0 0;
    letter-spacing: 1px;
}

/* 2. حاوية الأزرار الجديدة */
.secondary-actions-row {
    display: flex;
    gap: 15px; /* مسافة بين الزرين */
    margin-top: 15px; /* مسافة عن زر البحث */
}

/* 3. شكل الزر "Soft" */
.btn-soft {
    flex: 1; /* عرض متساوي */
    background: rgba(255, 255, 255, 0.03); /* لون خلفية هادئ جداً */
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a0aec0; /* لون نص رمادي فاتح (مش أبيض صريح) */
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column; /* الأيقونة فوق النص */
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: auto; /* يلغي الارتفاع الثابت للأزرار الكبيرة */
}

.btn-soft svg {
    color: var(--primary); /* الأيقونة بلون البراند */
    opacity: 0.8;
}

.btn-soft:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-soft:active {
    transform: scale(0.98);
}