/* استدعاء الخطوط والأيقونات مباشرة لضمان ظهورها */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&family=Aref+Ruqaa:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,1,0');

:root {
    --primary: #4f46e5;
    --secondary: #ff512f;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #ff512f 100%);
    --bg-color: #f0f4f8;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; font-family: 'Cairo', sans-serif; margin: 0; padding: 0; }
body { background-color: var(--bg-color); direction: rtl; color: #2d3748; overflow-x: hidden; }

/* Preloader 2026 */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.6s ease; }
.spinner-container { position: relative; width: 80px; height: 80px; margin-bottom: 20px; }
.spinner { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--primary); border-right-color: var(--secondary); animation: spin 1s linear infinite; }
.spinner-inner { position: absolute; width: 60%; height: 60%; top: 20%; left: 20%; border-radius: 50%; background: var(--gradient); animation: pulse 1.5s ease-in-out infinite alternate; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 20px var(--secondary); } }

/* Header */
header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo h2 { margin: 0; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 24px;}
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { background: transparent; border: none; font-size: 28px; color: #4a5568; cursor: pointer; transition: var(--transition); display: flex; align-items: center; position: relative;}
.icon-btn:hover { color: var(--primary); transform: scale(1.1); }
.badge { position: absolute; top: -2px; right: -5px; background: #ff3366; color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid white;}

/* Sidebar */
.sidebar { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: #ffffff; box-shadow: -5px 0 25px rgba(0,0,0,0.1); z-index: 1001; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; padding: 30px 20px; }
.sidebar.active { right: 0; }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(3px); z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s; }
.sidebar-overlay.active { display: block; opacity: 1; }
.close-menu { position: absolute; top: 20px; left: 20px; cursor: pointer; color: #a0aec0; }
.menu-user { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #edf2f7; }
.menu-user .material-symbols-rounded { font-size: 50px; color: var(--primary); }
.menu-links { display: flex; flex-direction: column; gap: 15px; }
.menu-links a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #2d3748; font-weight: 600; padding: 12px 15px; border-radius: 12px; transition: var(--transition); }
.menu-links a:hover { background: var(--bg-color); color: var(--primary); padding-right: 25px; }

/* Content */
main { padding: 30px 20px; max-width: 900px; margin: 0 auto; }
.filter-select { width: 100%; padding: 15px; border-radius: var(--radius); border: 2px solid #e2e8f0; font-size: 16px; font-weight: 600; color: #2d3748; background: #fff; appearance: none; outline: none; transition: var(--transition); cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.02); margin-bottom: 30px; }
.filter-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); }

.card { background: var(--card-bg); border-radius: var(--radius); padding: 25px; margin-bottom: 20px; box-shadow: var(--shadow); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.6); transition: var(--transition); position: relative; overflow: hidden; }
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.card-header { display: flex; justify-content: space-between; align-items: center; }
.card-info { display: flex; align-items: center; gap: 18px; }
.text-logo { width: 65px; height: 65px; border-radius: 20px; background: var(--gradient); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Aref Ruqaa', serif; font-size: 32px; box-shadow: 0 8px 15px rgba(255, 81, 47, 0.3); }
.card-details h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.cat-badge { background: #ebf4ff; color: var(--primary); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;}
.address-text { color: #718096; font-size: 14px; margin: 15px 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 25px; border-radius: 12px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: var(--transition); width: 100%; font-size: 16px;}
.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: white; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4); }
.btn-fav { color: #cbd5e0; font-size: 28px; text-decoration: none; transition: var(--transition); display: flex;}
.btn-fav:hover { color: #ff3366; transform: scale(1.2); }

/* Popup */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.popup-box { background: #fff; padding: 25px 20px; border-radius: 20px; width: 85%; max-width: 320px; text-align: center; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.25); animation: popupIn 0.5s; }
@keyframes popupIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-close { position: absolute; top: 15px; left: 20px; cursor: pointer; color: #a0aec0; font-size: 28px; }
.auth-tabs { display: flex; background: #edf2f7; border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.auth-tab { flex: 1; padding: 12px; font-weight: bold; cursor: pointer; transition: var(--transition); color: #718096; }
.auth-tab.active { background: var(--primary); color: white; }
.popup-box input { width: 100%; padding: 12px; margin: 8px 0; border: 2px solid #edf2f7; border-radius: 12px; background: #f8fafc; outline: none; }
.popup-box button[type="submit"] { background: var(--gradient); color: white; margin-top: 10px; font-size: 16px; padding: 12px; border-radius: 12px; border: none; cursor: pointer; width: 100%; }

/* Install Button */
.install-btn { position: fixed; bottom: 20px; left: 20px; background: var(--gradient); color: white; padding: 10px 18px; border-radius: 50px; display: none; align-items: center; gap: 8px; z-index: 999; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: none; cursor: pointer; font-weight: bold; }