/* --- إعدادات عامة --- */
:root {
    --primary: #ff8c00; /* اللون البرتقالي */
    --primary-dark: #e67e00;
    --dark-bg: #121212;
    --card-bg: rgba(30, 30, 30, 0.6);
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --blur-val: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent; /* إزالة لون الضغط الازرق في الموبايل */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- الخلفية المتحركة (Gradient Animation) --- */
.background-animate {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, #2a1a00, #000000);
    z-index: -1;
}

/* --- 1. شاشة التحميل الاحترافية --- */
.loader-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    text-align: center;
    width: 80%;
    max-width: 300px;
}

.logo-placeholder {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.brand-name {
    font-size: 1.8rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    border-radius: 10px;
    transition: width 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.loading-text {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* --- المحتوى الرئيسي --- */
.app-container {
    padding: 20px 15px;
    max-width: 600px; /* لتقييد العرض على شاشات الكمبيوتر ليصبح مثل الموبايل */
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.app-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* الهيدر */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-info h1 { font-size: 1.6rem; font-weight: 700; }
.header-info p { font-size: 0.9rem; color: var(--text-gray); }

.header-status {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px; height: 8px; background: #2ecc71; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite;
}

/* إطار المنيو */
.menu-frame-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(255, 140, 0, 0.15); /* ظل برتقالي خفيف */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.canva-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 141.4286%;
    background: #1a1a1a;
}

.canva-embed iframe {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0; border: none;
}

.spacer { height: 80px; } /* مسافة عشان البار السفلي */

/* --- شريط التنقل السفلي (مثل التطبيقات) --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.75rem;
    gap: 5px;
    transition: 0.3s;
    cursor: pointer;
}

.nav-item i { font-size: 1.2rem; margin-bottom: 2px; }

.nav-item:hover, .nav-item:active { color: #fff; }

/* الزر المميز (اطلب واتساب) */
.cta-main {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    flex-direction: row; /* الأيقونة بجانب النص */
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}
.cta-main i { margin-left: 5px; margin-bottom: 0; }

/* --- الأنيميشن --- */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
@keyframes fadeIn { to { opacity: 1; } }