/* ==========================================================================
   Saf7ety - Smart Menu Manager System
   Master Stylesheet (v5.0 - Ultimate SaaS Edition)
   [Cleaned & Merged Version]
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & THEME SETUP
-------------------------------------------------------------------------- */
:root {
    /* --- Vibrant Identity Colors --- */
    --color-primary: #FF4B2B;       /* البرتقالي الرئيسي */
    --color-primary-hover: #E03E1F;
    --color-primary-light: #fff0eb;
    --color-secondary: #FF416C;     /* الوردي الثانوي */
    --color-accent: #F59E0B;        /* الذهبي/الأصفر */
    
    /* --- Gradients --- */
    --gradient-primary: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
    --gradient-text: linear-gradient(45deg, #FF416C, #FF8E53);
    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);

    /* --- Backgrounds & Text (Light Mode) --- */
    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F1F5F9;
    --bg-surface-secondary: #F1F5F9;
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    /* --- Shadows --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 10px 25px -5px rgba(255, 75, 43, 0.4);
    --shadow-primary: 0 10px 15px -3px rgba(255, 75, 43, 0.3);
    
    /* --- Dimensions & Utils --- */
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- Blob Colors --- */
    --blob-color-1: rgba(255, 65, 108, 0.15);
    --blob-color-2: rgba(255, 142, 83, 0.15);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
    --bg-body: #020617;
    --bg-surface: #0F172A;
    --bg-surface-hover: #1E293B;
    --bg-surface-secondary: #1E293B;
    --bg-glass: rgba(15, 23, 42, 0.75);
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #1E293B;
    
    --gradient-surface: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    
    --blob-color-1: rgba(255, 65, 108, 0.1);
    --blob-color-2: rgba(255, 142, 83, 0.1);
}


[data-theme="dark"] .text-muted { color: #94A3B8 !important; }
/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE
-------------------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: var(--header-height); /* مساحة للهيدر الثابت */
}

/* استثناء للصفحات التي لها تصميم خاص */
body.auth-page, body.landing-page { padding-top: 0; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }

/* --------------------------------------------------------------------------
   3. ANIMATIONS & UTILITIES
-------------------------------------------------------------------------- */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Blobs */
.blob {
    position: absolute; filter: blur(80px); z-index: -1; opacity: 0.5;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 {
    top: -10%; left: -10%; width: 500px; height: 500px;
    background: var(--blob-color-1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
.blob-2 {
    bottom: -10%; right: -10%; width: 600px; height: 600px;
    background: var(--blob-color-2);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}
@keyframes floatBlob {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(20deg); }
}

/* Float Animation */
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}

/* --------------------------------------------------------------------------
   4. COMPONENTS (Buttons & Badges)
-------------------------------------------------------------------------- */
/* Buttons - Vibrant & Primary */
.btn-vibrant, .btn-primary-custom {
    background: var(--gradient-primary);
    color: #fff !important;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 10px; justify-content: center;
    font-size: 1rem;
    position: relative; overflow: hidden;
}
.btn-vibrant:hover, .btn-primary-custom:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px -10px rgba(255, 75, 43, 0.6);
}

/* Buttons - Outline */
.btn-outline-vibrant, .btn-outline-custom {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 10px; justify-content: center;
}
.btn-outline-vibrant:hover, .btn-outline-custom:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 75, 43, 0.05);
}

/* Badges */
.badge-warning {
    background-color: #FFF7ED; color: #C2410C; border: 1px solid #FFEDD5;
}
[data-theme="dark"] .badge-warning {
    background-color: #431407; color: #FFEDD5; border-color: #7C2D12;
}

/* --------------------------------------------------------------------------
   5. NAVBAR & HEADER
-------------------------------------------------------------------------- */
.navbar-custom {
    background: var(--bg-glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    height: var(--header-height);
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
    display: flex; align-items: center;
    padding: 0;
}

.navbar-brand {
    font-size: 1.6rem; font-weight: 900;
    color: var(--text-main) !important;
    display: flex; align-items: center; gap: 5px;
}

.nav-icon-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    cursor: pointer; transition: var(--transition);
    font-size: 1.2rem;
}
.nav-icon-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 75, 43, 0.05);
}

/* --------------------------------------------------------------------------
   6. SIDEBAR (القائمة الجانبية)
-------------------------------------------------------------------------- */
.sidebar-menu {
    position: fixed; top: 0; bottom: 0; width: 300px;
    background-color: var(--bg-surface);
    z-index: 1050; padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    
    /* التعامل مع الاتجاهات RTL/LTR */
    right: -320px; left: auto;
    border-left: 1px solid var(--border-color);
    border-right: none;
    overflow-y: scroll !important;
}
[dir="ltr"] .sidebar-menu { 
    left: -320px; right: auto; 
    border-right: 1px solid var(--border-color);
    border-left: none;
}

.sidebar-menu.active { transform: translateX(-320px); }
[dir="ltr"] .sidebar-menu.active { transform: translateX(320px); }

.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 1040; opacity: 0; visibility: hidden;
    transition: 0.3s; backdrop-filter: blur(4px);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* روابط القائمة */
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
    display: flex; align-items: center; gap: 15px;
    padding: 14px; border-radius: var(--radius-md);
    color: var(--text-main); font-weight: 600;
    transition: 0.2s;
}
.sidebar-links a:hover, .sidebar-links a.active {
    background: rgba(255, 75, 43, 0.1);
    color: var(--color-primary);
}
.sidebar-links i { font-size: 1.3rem; width: 25px; text-align: center; }

.sidebar-cta {
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   7. AUTH PAGES
-------------------------------------------------------------------------- */
.auth-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; position: relative; z-index: 2;
    background-color: var(--bg-body);
}

.auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%; max-width: 550px;
    position: relative; overflow: hidden;
}
[data-theme="dark"] .auth-card { border-color: rgba(255,255,255,0.05); }

/* شريط علوي ملون */
.auth-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--gradient-primary);
}

/* تخصيص الحقول */
.form-control-custom, .auth-input {
    width: 100%; height: 52px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 0 15px;
    transition: 0.3s;
    /* مساحة للأيقونة */
    padding-inline-start: 45px; 
}
.form-control-custom:focus, .auth-input:focus {
    border-color: var(--color-primary);
    background: var(--bg-body);
    box-shadow: 0 0 0 4px rgba(255, 75, 43, 0.1);
    outline: none;
}

.input-icon {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 1.2rem; color: var(--text-muted);
    pointer-events: none;
    inset-inline-start: 15px; 
}
.form-control-custom:focus + .input-icon { color: var(--color-primary); }

/* حقل الـ Slug */
.slug-wrapper {
    display: flex; align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden; transition: 0.3s;
}
.slug-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 75, 43, 0.1);
}
.slug-prefix {
    background: rgba(255, 75, 43, 0.1);
    color: var(--color-primary);
    padding: 0 15px; height: 50px;
    display: flex; align-items: center; font-weight: 700; font-size: 0.9rem;
    border-inline-end: 1px solid var(--border-color);
}
.slug-input {
    border: none; height: 50px; flex: 1; padding: 0 15px;
    background: transparent; color: var(--text-main); font-weight: 600;
}
.slug-input:focus { outline: none; }

/* --------------------------------------------------------------------------
   8. LANDING PAGE SECTIONS
-------------------------------------------------------------------------- */
/* --- Hero Section --- */
.hero-wrapper, .hero-section {
    position: relative; overflow: hidden;
    padding-top: 140px; padding-bottom: 80px;
    background: linear-gradient(180deg, var(--bg-body) 0%, rgba(255, 107, 53, 0.05) 100%);
}

.hero-title {
    font-size: 3.5rem; font-weight: 900; line-height: 1.15;
    color: var(--text-main); margin-bottom: 25px;
    letter-spacing: -1px;
}
@media (min-width: 992px) { .hero-title { font-size: 4rem; } }

/* --- Feature Cards (Glass) --- */
.feature-glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px; height: 100%; transition: 0.3s;
    box-shadow: var(--shadow-sm);
}
.feature-glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.icon-box-vibrant {
    width: 60px; height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem; margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
    transform: rotate(-5deg); transition: 0.3s;
}
.feature-glass-card:hover .icon-box-vibrant { transform: rotate(0deg) scale(1.1); }

/* --- Pain Points --- */
.pain-point-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 25px; height: 100%;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.pain-point-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 53, 0.3);
}
.pain-point-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background-color: #EF4444; opacity: 0; transition: 0.3s;
}
.pain-point-card:hover::before { opacity: 1; }
.pain-icon {
    width: 56px; height: 56px; background: #FEF2F2; color: #EF4444;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}
[data-theme="dark"] .pain-icon { background: #450A0A; color: #FCA5A5; }

/* --- Solution & Steps --- */
.solution-card {
    text-align: center; padding: 30px 20px; border-radius: var(--radius-lg);
    background: var(--bg-surface); box-shadow: var(--shadow-sm);
    transition: var(--transition); border: 1px solid var(--border-color);
}
.solution-card:hover {
    border-color: var(--color-primary); transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.solution-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 15px; }

.step-circle {
    width: 64px; height: 64px; background: var(--color-primary); color: #fff;
    font-size: 1.5rem; font-weight: 800; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
    position: relative; z-index: 2;
}

/* --- Smart Preview Section --- */
.preview-controls {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap;
}
.preview-btn {
    background: transparent; border: 2px solid var(--border-color);
    color: var(--text-muted); padding: 10px 24px; border-radius: 30px;
    cursor: pointer; transition: var(--transition); font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.preview-btn.active, .preview-btn:hover {
    border-color: var(--color-primary); background: var(--color-primary); color: #fff;
}
.preview-container-frame {
    margin: 0 auto; background: #1E293B; /* خلفية الإطار */
    border: 12px solid #1E293B; border-radius: 20px;
    overflow: hidden; transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* Device Sizes */
.preview-mobile { width: 360px; height: 700px; border-radius: 40px; border-width: 12px; }
.preview-tablet { width: 768px; height: 600px; border-radius: 24px; border-width: 14px; }
.preview-desktop { 
    width: 100%; max-width: 1024px; height: 600px; 
    border-radius: 12px; border-width: 0 0 20px 0; border-bottom-color: #CBD5E1; 
}

/* --- Pricing --- */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px; text-align: center;
    position: relative; overflow: hidden; transition: 0.3s;
    height: 100%;
}
.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.03); z-index: 2;
    box-shadow: var(--shadow-lg);
}
.pricing-badge {
    position: absolute; top: 20px; right: -35px;
    background: var(--color-primary); color: #fff;
    padding: 5px 40px; transform: rotate(45deg);
    font-size: 0.8rem; font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.price-tag {
    font-size: 3.5rem; font-weight: 900; color: var(--text-main); margin: 20px 0;
}
.price-tag small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

/* --- FAQ Accordion --- */
.accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 15px; overflow: hidden;
}
.accordion-button {
    background: var(--bg-surface); color: var(--text-main); font-weight: 700;
    padding: 1.25rem; box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background: rgba(255, 75, 43, 0.05); color: var(--color-primary);
}
.accordion-body {
    background: var(--bg-surface); color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* --- Final CTA --- */
.final-cta {
    background: var(--gradient-primary); padding: 100px 0;
    color: #fff; text-align: center; position: relative; overflow: hidden;
}
.final-cta::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   9. DASHBOARD STYLES
-------------------------------------------------------------------------- */
/* كروت الإحصائيات */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: var(--shadow-sm);
}
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.stat-info h3 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.stat-info p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* الجداول */
.table-responsive {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
}
.table { color: var(--text-main); margin-bottom: 0; }
.table thead th {
    background-color: var(--bg-surface-hover);
    color: var(--text-muted);
    font-weight: 700; border-bottom: 2px solid var(--border-color);
}
.table td { border-color: var(--border-color); vertical-align: middle; }
.table-hover tbody tr:hover { background-color: var(--bg-surface-hover); }

/* المنيو بيلدر */
.menu-category-header {
    background: var(--bg-surface-hover);
    padding: 15px; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border: 1px solid var(--border-color);
}

/* Upsell Modal */
.upsell-modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: none;
}
.upsell-icon { font-size: 3rem; color: var(--color-accent); margin-bottom: 15px; }

/* --------------------------------------------------------------------------
   10. CULINARY CANVAS (Unique Addon)
-------------------------------------------------------------------------- */
/* إطار الصورة العصري */
.canvas-img-wrapper {
    position: relative; z-index: 1; transition: transform 0.4s ease;
}
.canvas-img-wrapper img {
    border-radius: 30px; position: relative; z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.canvas-img-wrapper::after {
    content: ''; position: absolute; top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: 30px; z-index: 1; transition: all 0.3s ease;
}
.canvas-img-wrapper:hover::after { top: 10px; left: 10px; }

/* الأشكال العضوية */
.blob-mask {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    box-shadow: 10px 10px 0px rgba(255, 107, 53, 0.2);
    transition: all 0.5s ease;
    animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Floating Ingredients */
.floating-ingredient {
    position: absolute; width: 80px; height: 80px; object-fit: contain; z-index: 3;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    animation: floatIng 6s ease-in-out infinite;
}
.ing-1 { top: -20px; right: -20px; animation-delay: 0s; }
.ing-2 { bottom: 40px; left: -30px; animation-delay: 2s; width: 60px; height: 60px; }
@keyframes floatIng {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* Hero Composition */
.hero-composition {
    position: relative; display: flex; justify-content: center; align-items: center;
}
.main-mockup {
    max-height: 550px; transform: rotate(-5deg); z-index: 5; transition: 0.5s;
}
.hero-composition:hover .main-mockup { transform: rotate(0deg) scale(1.05); }

.dish-card {
    position: absolute; width: 180px; height: 180px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 4px solid #fff;
}
.dish-1 { top: 50px; right: 0; transform: rotate(10deg); z-index: 2; }
.dish-2 { bottom: 80px; left: 0; transform: rotate(-15deg); z-index: 2; }

/* --------------------------------------------------------------------------
   11. RESPONSIVE UTILITIES
-------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .navbar-brand { font-size: 1.4rem; }
    .hero-title { font-size: 2.5rem; }
    .sidebar-menu { width: 280px; }
    .hero-section { text-align: center; }
    .preview-mobile { width: 100%; border-width: 8px; height: 600px; }
}

@media (max-width: 576px) {
    .auth-card { padding: 30px 20px; }
    .btn-vibrant, .btn-outline-vibrant, .btn-primary-custom, .btn-outline-custom { 
        width: 100%; justify-content: center; 
    }
    .preview-controls { display: none; }
    .hero-title { font-size: 2.2rem; }
}









/* -------------------------------------------------------------------------- */
/* Menu Images & Icons */
/* -------------------------------------------------------------------------- */
/* تصميم اختيار الأيقونات */
.icon-selector-container {
    border: 2px dashed #ddd;
    padding: 10px;
    border-radius: 12px;
    background: #f9f9f9;
    text-align: center;
}


/* تنسيق أيقونات Font Awesome داخل شبكة الاختيار */
.icon-option {
    font-size: 1.5rem; /* تكبير الايقونة */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* زيادة الارتفاع قليلاً */
}

/* تنسيق أيقونة المعاينة المختارة */
.selected-icon-preview {
    font-size: 2.5rem; /* أيقونة كبيرة وواضحة */
    line-height: 1;
}

.selected-icon-preview:hover { transform: scale(1.1); }
.icon-grid {
    display: none; /* مخفي افتراضياً */
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}
.icon-grid.show { display: grid; }
.icon-option:hover, .icon-option.active {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
/* تصميم مربع رفع الصور الجديد */
.image-upload-box {
    width: 100px; height: 100px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    background: #f8f9fa;
    background-size: cover;
    background-position: center;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}
.image-upload-box:hover { border-color: var(--color-primary); background-color: #fff; }
.image-upload-box i { font-size: 1.5rem; color: #aaa; }
.image-upload-box input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}