/* CSS Reset وتحديدات أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #e63946;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* شريط التنقل */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 150px;
    margin-left: 150px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* قسم البطل */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

/* قسم الميزات */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* قسم الاشتراكات */
.pricing-preview {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price span {
    font-size: 1rem;
    color: var(--gray-color);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pricing-card li i.fa-check {
    color: var(--success-color);
}

.pricing-card li i.fa-times {
    color: var(--gray-color);
}

/* الفوتر */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-section p {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-section i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 100%;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* صفحات تسجيل الدخول والتسجيل */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--dark-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.auth-form button {
    width: 100%;
    margin-top: 10px;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.auth-divider span {
    background-color: white;
    padding: 0 15px;
    color: var(--gray-color);
}

.google-login-btn {
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.google-login-btn:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.google-login-btn img {
    width: 20px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-color);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* صفحة التواصل */
.contact-container {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--gray-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    min-height: 150px;
    resize: vertical;
    transition: var(--transition);
}

.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Cloudflare Turnstile (Captcha) */
.cf-turnstile {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
/* أضف هذه التنسيقات لملف style.css الخاص بك */

/* تنسيقات الصفحات القانونية */
.legal-container {
    padding: 60px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #212529;
    margin-bottom: 10px;
}

.last-updated {
    color: #6c757d;
    font-size: 1rem;
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: #4361ee;
    margin-bottom: 15px;
    padding-right: 15px;
    border-right: 3px solid #4361ee;
}

.legal-section p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.legal-section ul {
    margin-right: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.legal-section strong {
    color: #333;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .legal-container {
        padding: 40px 0;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
    }
}
/* أضف هذه التنسيقات لملف style.css */

/* تنسيقات صفحة استعادة كلمة المرور */
.recovery-steps {
    margin: 30px 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20%;
    left: 20%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    border: 3px solid white;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #4361ee;
    color: white;
}

.step-text {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.step.active .step-text {
    color: #4361ee;
    font-weight: 600;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

.step-description {
    color: #6c757d;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

/* CAPTCHA */
.captcha-container {
    margin: 20px 0;
    text-align: center;
}

.simple-captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.captcha-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 5px;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px dashed #4361ee;
    user-select: none;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #4361ee;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}

/* رمز التحقق */
.verification-code {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* متطلبات كلمة المرور */
.password-requirements {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.password-requirements ul {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.password-requirements li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-requirements li i {
    width: 20px;
}

/* زر التحكم */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* رسالة النجاح */
.success-icon {
    width: 80px;
    height: 80px;
    background: #2a9d8f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    animation: scaleIn 0.5s ease;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* رسوم متحركة */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .steps::before {
        right: 15%;
        left: 15%;
    }
    
    .step-text {
        font-size: 0.75rem;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
}
/* =========================
   CONTACT PAGE - UI ENHANCER
   (No HTML changes needed)
   ========================= */

/* تحسين الخطوط والقراءة */
body {
  font-family: 'Cairo', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* حاوية الصفحة */
.contact-container {
  padding: 50px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
}

.contact-container .container {
  max-width: 1100px;
}

/* عنوان الصفحة */
.section-title {
  text-align: center;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 28px;
}

.section-title .highlight {
  position: relative;
  display: inline-block;
}

.section-title .highlight::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.25;
  background: var(--primary-color);
}

/* شبكة المحتوى */
.contact-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* بطاقات (معلومات/نموذج) */
.contact-info,
.contact-form {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.07);
  padding: 22px;
  backdrop-filter: blur(8px);
}

/* عنوان قسم المعلومات */
.contact-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.contact-info p {
  margin: 0 0 18px;
  line-height: 1.9;
  opacity: 0.85;
}

/* تفاصيل التواصل */
.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-detail:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.contact-detail i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.04);
  color: var(--primary-color);
  font-size: 18px;
  flex: 0 0 42px;
}

.contact-detail h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.contact-detail p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* النموذج */
.contact-form form {
  display: grid;
  gap: 14px;
}

.form-group label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.95);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.06s ease;
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.8;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0,0,0,0.22);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

/* زر الإرسال (يحترم الكلاسات الموجودة) */
.contact-form .btn.btn-primary {
  border-radius: 14px !important;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.contact-form .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  filter: brightness(1.03);
}

.contact-form .btn.btn-primary:active {
  transform: translateY(0px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

/* رسالة النموذج */
#form-message {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}

/* Turnstile */
.cf-turnstile {
  margin-top: 6px;
  margin-bottom: 2px;
  display: flex;
  justify-content: center;
}

.cf-turnstile iframe {
  border-radius: 14px;
  overflow: hidden;
}

/* تحسين الفوتر (بدون تغيير هيكله) */
.footer {
  margin-top: 50px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer .footer-section a {
  display: inline-block;
  margin: 6px 0;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer .footer-section a:hover {
  opacity: 1;
  transform: translateX(-2px);
}

/* تحسين استجابة الهاتف */
@media (max-width: 576px) {
  .contact-info,
  .contact-form {
    padding: 16px;
    border-radius: 16px;
  }

  .contact-detail {
    padding: 12px;
    border-radius: 14px;
  }
}
