/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* الصفحة الرئيسية */
.content {
    background: #f5f3ff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.welcome-section {
    margin-bottom: 40px;
}

.welcome-message {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
}

.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* الأزرار */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    min-height: 54px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: white;
    min-width: 200px;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(188, 24, 136, 0.4);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

/* زر سحب الرصيد في الصفحة الرئيسية */
/* زر سحب الرصيد في الصفحة الرئيسية - مخفي (أزل display:none لإظهاره) */
body:not(.withdraw-page-body) .btn-withdraw {
    display: none !important;
}
.btn-withdraw {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    width: 100%;
    margin-bottom: 20px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* زر اختبر نسبة الحب */
.btn-love-test {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%) !important;
    color: #fff !important;
    width: 100%;
    margin-bottom: 20px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.35);
}
.btn-love-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.45);
}

/* زر اكتشف شريك حياتك - مخفي (أزل display:none لإظهاره) */
@keyframes partnerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 6px 25px rgba(233, 30, 99, 0.6); }
}

.btn-partner {
    display: none; /* مخفي - احذف هذا السطر لإظهار الزر */
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%) !important;
    color: #fff !important;
    width: 100%;
    max-width: 100%;
    margin-bottom: 25px;
    font-size: 19px;
    padding: 18px 30px;
    min-height: 58px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    animation: partnerPulse 1.8s ease-in-out infinite;
}

.btn-partner:hover {
    animation: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

/* زر كبسولة الخيانة */
.btn-capsule {
    background: linear-gradient(135deg, #4a148c 0%, #1a237e 100%) !important;
    color: #fff !important;
    width: 100%;
    margin-bottom: 20px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.4);
}
.btn-capsule:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.5);
}

/* إحصائيات كبسولة الخيانة */
.capsule-stats {
    background: rgba(74, 20, 140, 0.15);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 25px;
    text-align: center;
}
.capsule-stats-title {
    font-size: 15px;
    color: #555;
    font-weight: 600;
    margin-bottom: 14px;
}
.capsule-stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.capsule-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}
.capsule-stat-item .stat-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.stat-male .stat-num { color: #1565c0; }
.stat-female .stat-num { color: #ad1457; }
.capsule-stat-item .stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* زر أرسل رسالة سرّية */
.btn-secret {
    background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%) !important;
    color: #fff !important;
    width: 100%;
    margin-bottom: 25px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.4);
}
.btn-secret:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 36, 170, 0.5);
}

/* عنوان تنزيل التطبيق */
.download-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 18px;
    font-weight: 700;
}

/* تسمية تابعنا */
.follow-label {
    font-size: 18px;
    color: #555;
    font-weight: 600;
    margin: 25px 0 10px 0;
}

/* أزرار تنزيل التطبيق - أوضح وأكبر */
.btn-download {
    font-size: 19px;
    padding: 18px 32px;
    min-height: 60px;
}

.btn-googleplay {
    background: linear-gradient(135deg, #3ddc84 0%, #0f9d58 100%);
}

.btn-googleplay:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(15, 157, 88, 0.4);
}

.btn-appstore {
    background: linear-gradient(135deg, #555 0%, #000 100%);
}

.btn-appstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-logout {
    background: #dc3545;
    font-size: 14px;
    padding: 8px 16px;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.admin-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.admin-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* صفحة تسجيل الدخول */
.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

/* لوحة التحكم */
.admin-panel {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.admin-header h2 {
    color: #333;
    font-size: 28px;
}

/* النماذج */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.settings-form {
    margin-top: 20px;
}

/* الرسائل */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .content,
    .login-box,
    .admin-panel {
        padding: 30px 20px;
    }

    .welcome-message {
        font-size: 22px;
    }

    .btn {
        font-size: 16px;
        padding: 12px 25px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .admin-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .welcome-message {
        font-size: 20px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}
