/* ===== تصميم شكل الهاتف الواقعي ===== */
.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    margin: 0 auto;
    background-color: #111;
    border-radius: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 6px #333,
                inset 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 10px;
    overflow: hidden;
    transform: perspective(800px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: perspective(800px) rotateY(0deg);
}

/* إضافة الأزرار الجانبية للهاتف */
.phone-frame::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 100px;
    width: 3px;
    height: 40px;
    background-color: #444;
    border-radius: 3px 0 0 3px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 120px;
    width: 3px;
    height: 60px;
    background-color: #444;
    border-radius: 0 3px 3px 0;
}

/* إضافة الكاميرا والسماعة */
.phone-frame .phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background-color: #111;
    border-radius: 0 0 15px 15px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame .phone-camera {
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.5);
}

.phone-frame .phone-speaker {
    width: 60px;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
}

/* الشاشة الداخلية */
.phone-frame .phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
}

/* تعديل Swiper داخل الهاتف */
.phone-frame .swiper-container {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.phone-frame .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* تعديل أزرار التنقل في Swiper */
.phone-frame .swiper-button-next,
.phone-frame .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame .swiper-button-next:after,
.phone-frame .swiper-button-prev:after {
    font-size: 14px;
}

.phone-frame .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.7;
}

.phone-frame .swiper-pagination-bullet-active {
    background-color: var(--primary);
    opacity: 1;
}

/* تعديلات الوضع المظلم */
body.dark-mode .phone-frame {
    background-color: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
                0 0 0 6px #222,
                inset 0 0 10px rgba(0, 0, 0, 0.8);
}

body.dark-mode .phone-frame .phone-notch {
    background-color: #000;
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .phone-frame {
        width: 240px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .phone-frame {
        width: 220px;
        height: 460px;
    }
}

@media (max-width: 576px) {
    .phone-frame {
        width: 200px;
        height: 420px;
    }
    
    .phone-frame .phone-notch {
        width: 120px;
        height: 25px;
    }
}

/* ===== تصميم قسم مراجعات المستخدمين ===== */
.user-reviews {
    margin-top: var(--space-7);
    padding: var(--space-6) 0;
}

.user-reviews h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-5);
    text-align: center;
    position: relative;
    display: inline-block;
}

.user-reviews h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.review-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .review-card {
    background-color: var(--bg-card-dark);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
}

.rating {
    color: var(--warning);
    font-size: 0.9rem;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dark-mode .review-date {
    color: var(--text-muted-dark);
}

.review-text {
    color: var(--text-muted);
    line-height: 1.6;
}

.dark-mode .review-text {
    color: var(--text-muted-dark);
}

/* ===== تصميم قسم الأسئلة الشائعة ===== */
.faq-section {
    margin-top: var(--space-7);
    padding: var(--space-6) 0;
}

.faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-5);
    text-align: center;
    position: relative;
    display: inline-block;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dark-mode .faq-item {
    background-color: var(--bg-card-dark);
}

.faq-question {
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 var(--space-4) var(--space-4);
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
}

.dark-mode .faq-answer p {
    color: var(--text-muted-dark);
}