body { user-select: none; }
@keyframes moveBackground { from { background-position: 0 0; } to { background-position: 100% 100%; } }

.app-container { max-width: 480px; margin: 0 auto; padding: 20px 20px 40px 20px; min-height: 100vh; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05); padding-bottom: 80px !important; }
.app-header { text-align: center; margin-bottom: 30px; margin-top: 20px; }
.app-logo-img { max-width: 120px; max-height: 100px; margin-bottom: 15px; }
.app-logo-text { width: 80px; height: 80px; background: var(--primary); color: white; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: bold; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 15px; }

.custom-slider { border-radius: 20px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px; }
.carousel-item img { height: 180px; object-fit: cover; width: 100%; }
.carousel-caption { background: rgba(0,0,0,0.5); border-radius: 10px; padding: 5px; bottom: 15px; }

.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-box { background: #f8f9fa; border-radius: 24px; text-decoration: none; color: #2c3e50; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1/1; transition: 0.2s; border: 1px solid #eef0f2; }
.app-box:active { transform: scale(0.96); }
.app-box i { font-size: 2.8rem; margin-bottom: 12px; color: var(--primary); }
.app-box span { font-weight: bold; font-size: 1.1rem; }
.app-box.highlight { background: var(--primary); color: white; border: none; }
.app-box.highlight i { color: white; }

.top-nav { padding: 15px; position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.9); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.top-nav.absolute-nav { position: absolute; background: transparent; box-shadow: none; max-width: 480px; width: 100%; }
.top-nav.absolute-nav a { background: rgba(255,255,255,0.8); width: 40px; height: 40px; display: inline-flex; border-radius: 50%; align-items: center; justify-content: center; color: #000; text-decoration: none; }
.top-nav a { color: #000; text-decoration: none; font-size: 1.3rem; }

.system-card { display: flex; background: #fff; border-radius: 20px; padding: 15px; margin: 15px; text-decoration: none; color: inherit; border: 1px solid #eef0f2; transition: 0.2s; }
.system-card:active { transform: scale(0.98); }

/* الحل الجذري لمنع تمدد صور الأنظمة */
.sys-img { width: 90px !important; height: 90px !important; min-width: 90px !important; max-width: 90px !important; flex-shrink: 0 !important; border-radius: 15px; object-fit: cover !important; background: #e9ecef; margin-left: 15px; display: flex; align-items: center; justify-content: center; }

.brand-box { text-align: center; margin: 40px 0; }
.logo-w { width: 100px; height: 100px; background: var(--primary); color: white; font-size: 3rem; font-weight: bold; display: inline-flex; align-items: center; justify-content: center; border-radius: 30px; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.hero-img { width: 100%; height: 250px; object-fit: cover; background: #e9ecef; }
.details { padding: 20px; border-radius: 20px 20px 0 0; margin-top: -20px; position: relative; background: #fff; }
.buy-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; padding: 15px 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; z-index: 1000; }
.page-title { font-weight: 800; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }

.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #ffffff; box-shadow: 0 -4px 15px rgba(0,0,0,0.03); display: flex; justify-content: space-around; padding: 12px 0; z-index: 1000; border-top: 1px solid #f1f2f6; border-radius: 25px 25px 0 0; }
.bottom-nav a { text-decoration: none; color: #a4b0be; font-size: 0.75rem; font-weight: bold; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: 0.3s; }
.bottom-nav a i { font-size: 1.3rem; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--primary); }