/* استایل‌های اختصاصی صفحه اپلیکیشن هماهنگ با قالب جدید */
.app-page-wrapper { 
    width: 98%;
    max-width: 1100px;
    margin: 80px auto 35px; 
    padding: 0 12px;
    box-sizing: border-box;
    direction: rtl; 
}

.app-container { 
    width: 100%;
    margin: 0; 
    padding: 25px; 
    background: #fff; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border: 1px solid #edf0f2; 
    box-sizing: border-box;
}

/* عنوان داخل کادر با آیکون و خط نازک زیرین (مشابه تماس با ما) */
.app-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f4f8;
}

.app-card-header h1 {
    font-size: 20px;
    color: #003366;
    font-weight: bold;
    margin: 0;
}

.app-card-icon {
    color: #003366;
    flex-shrink: 0;
}

.app-warning-box {
    color: #e53935;
    font-size: 13px;
    background: #ffebee;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.app-contact-link { color: #c62828; text-decoration: underline; font-weight: bold; }

/* بخش دانلود سیستم‌عامل‌ها و پیامک (باکس‌های عمودی) */
.os-sections { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.os-card { flex: 1; min-width: 300px; background: #fff; border: 1px solid #edf0f2; border-radius: 12px; padding: 25px; text-align: center; transition: transform 0.3s; }
.os-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.os-card h2 { font-size: 18px; color: #333; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 2px solid #f0f2f5; padding-bottom: 15px; }

/* استایل‌های جدید فرم دریافت پیامک برای قرارگیری در باکس عمودی */
.sms-form-box { background: #fff; border: 1px solid #edf0f2; border-radius: 12px; }
.sms-form { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; }
.sms-form input[type="tel"] { padding: 12px 15px; width: 100%; max-width: 250px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; text-align: center; letter-spacing: 2px; }
.sms-form input[type="tel"]:focus { border-color: #0066cc; }
.sms-form input[type="submit"] { background: #2e7d32; color: #fff; border: none; padding: 12px 25px; border-radius: 8px; font-size: 14px; font-weight: bold; cursor: pointer; transition: background 0.3s; width: 100%; max-width: 250px; }
.sms-form input[type="submit"]:hover { background: #1b5e20; }

/* استایل پیام‌های خطا */
.custom-alert { padding: 12px; border-radius: 8px; margin-top: 15px; font-size: 14px; text-align: center; }
.custom-alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* دکمه‌های دانلود اندروید */
.android-links { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.android-links a { display: inline-flex; justify-content: center; transition: opacity 0.3s; }
.android-links a:hover { opacity: 0.8; }
.direct-dl-box { display: flex; flex-direction: column; align-items: center; background: #f0f8ff; padding: 15px; border-radius: 10px; width: 100%; max-width: 200px; border: 1px solid #cce0ff; color: #0066cc; font-weight: bold; font-size: 14px; text-decoration: none !important; }
.direct-dl-box img { margin-bottom: 10px; width: 45px; height: auto; }

/* چینش افقی دکمه‌های مایکت و بازار */
.store-badges { display: flex; flex-direction: row; gap: 10px; justify-content: center; width: 100%; margin-top: 5px; }
.store-badges img { width: 100%; max-width: 140px; height: auto; border-radius: 8px; }

/* باکس افقی جدید برای فیلم آپارات و آی او اس */
.horizontal-video-box { background: #fff; border: 1px solid #edf0f2; border-radius: 12px; padding: 30px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.horizontal-video-box h2 { font-size: 18px; color: #333; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 2px solid #f0f2f5; padding-bottom: 15px; }
.ios-instruction-text { color: #666; font-size: 14px; text-align: center; line-height: 1.8; margin-bottom: 20px; }

/* استایل ویدیوی آپارات بدون کادرهای اضافی */
.aparat-video { max-width: 800px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* استایل‌های ریسپانسیو اختصاصی برای یکپارچگی در موبایل */
@media (max-width: 768px) {
    .app-page-wrapper { margin-top: 75px; }
    .app-container { padding: 18px; }
    .app-card-header h1 { font-size: 18px; }
}