


    /* قسم عدد المشاهدات */
    .book-views {
        display: flex;
        align-items: center;
        margin: 10px 0;
        color: #555;
        font-size: 1rem;
    }

    .book-views i {
        color: var(--primary-color);
        margin-right: 8px;
        width: 20px;
        text-align: center;
    }

    .view-count {
        font-weight: bold;
        color: #333;
        margin-right: 5px;
    }

    /* Quick Checkout Section Styles */
    .quick-checkout-section {
        margin-top: 24px;
        padding: 30px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        color: white;
    }

    .quick-checkout-header {
        text-align: center;
        margin-bottom: 25px;
    }

    .quick-checkout-header h3 {
        color: white;
        font-size: 24px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .quick-checkout-header p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        margin: 0;
    }

    .quick-checkout-form {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 25px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .quick-checkout-form .form-group {
        margin-bottom: 20px;
    }

    .quick-checkout-form .form-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        font-weight: 600;
        color: white;
        font-size: 14px;
    }

    .quick-checkout-form .form-group .form-control {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        font-size: 15px;
        background: rgba(255, 255, 255, 0.95);
        color: #333;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .quick-checkout-form .form-group .form-control:focus {
        outline: none;
        border-color: white;
        background: white;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }

    .form-hint {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.8);
    }

    .purchase-options-quick {
        display: flex;
        gap: 12px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .btn-quick-purchase {
        flex: 1;
        min-width: 200px;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .btn-quick-purchase:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .btn-quick-purchase:active {
        transform: translateY(0);
    }

    .btn-quick-purchase:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .loading-message {
        margin-top: 20px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        text-align: center;
        color: white;
        font-weight: 500;
    }

    .loading-message i {
        margin-right: 8px;
        font-size: 18px;
    }

    .alert-message {
        margin-top: 15px;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 14px;
        text-align: center;
        font-weight: 500;
    }

    .alert-message.success {
        background: rgba(76, 175, 80, 0.9);
        color: white;
    }

    .alert-message.error {
        background: rgba(244, 67, 54, 0.9);
        color: white;
    }

    .divider-or {
        text-align: center;
        margin: 25px 0;
        position: relative;
    }

    .divider-or::before,
    .divider-or::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 40%;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

    .divider-or::before {
        left: 0;
    }

    .divider-or::after {
        right: 0;
    }

    .divider-or span {
        background: transparent;
        padding: 0 15px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 600;
    }

    .existing-account {
        text-align: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .existing-account p {
        margin: 0;
        color: white;
    }

    .existing-account a {
        color: white;
        font-weight: 700;
        text-decoration: underline;
        margin-left: 5px;
    }

    .existing-account a:hover {
        opacity: 0.8;
    }

    /* Main Comments Section */
    .book-comments-section {
        margin-top: 40px;
        padding: 25px;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    /* Comment Form Styles */
    .comment-form-container {
        margin-bottom: 30px;
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 10px;
    }

    .comment-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .comment-textarea {
        min-height: 120px;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        resize: vertical;
        font-size: 14px;
        line-height: 1.5;
    }

    /* Image Upload Section */
    .image-upload-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .image-preview-box {
        width: 100%;
        max-width: 200px;
        height: 150px;
        border: 2px dashed #ccc;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #fefefe;
        overflow: hidden;
        position: relative;
    }

    .image-preview {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .preview-placeholder {
        text-align: center;
        color: #999;
    }

    .preview-placeholder i {
        font-size: 30px;
        margin-bottom: 10px;
        color: #ccc;
    }

    .upload-button-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .btn-upload {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
        background-color: #f0f2f5;
        color: #333;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
    }

    .btn-upload:hover {
        background-color: #e3e6ea;
    }

    .file-input {
        display: none;
    }

    .btn-submit {
        align-self: flex-start;
        padding: 10px 20px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .btn-submit:hover {
        opacity: 0.9;
    }

    /* Comments List */
    .comments-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .no-comments {
        text-align: center;
        padding: 20px;
        color: #666;
        background-color: #f9f9f9;
        border-radius: 8px;
    }

    .comment-item {
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 10px;
        border-left: 4px solid var(--primary-color);
    }

    .comment-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .user-avatar {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }

    .user-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #eee;
    }

    .user-info h4 {
        margin: 0;
        font-size: 15px;
        color: #333;
    }

    .comment-date {
        display: block;
        font-size: 12px;
        color: #777;
    }

    .comment-content {
        margin-left: 57px;
    }

    .comment-content p {
        margin: 0 0 10px;
        line-height: 1.6;
    }

    .comment-image-container {
        margin-top: 15px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
    }

    .comment-image {
        max-width: 100%;
        max-height: 300px;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .comment-image:hover {
        transform: scale(1.02);
    }

    /* قسم الكتب المقترحة */
    .suggested-books-section {
        margin-top: 60px;
        padding: 40px 30px;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        border-radius: 20px;
    }

    .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 32px;
        color: #2c3e50;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .section-header h2 i {
        color: var(--primary-color);
        font-size: 28px;
    }

    .section-header p {
        color: #7f8c8d;
        font-size: 16px;
        margin: 0;
    }

    .suggested-books-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
        margin-bottom: 30px;
    }

    .suggested-book-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        animation: fadeInUp 0.5s ease;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .suggested-book-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    .book-card-link {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .book-card-cover {
        position: relative;
        height: 320px;
        overflow: hidden;
        background: linear-gradient(135deg, #e0e7ff, #f0f4ff);
    }

    .book-card-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .suggested-book-card:hover .book-card-cover img {
        transform: scale(1.1);
    }

    .no-cover-small {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #e0e7ff, #f0f4ff);
    }

    .no-cover-small i {
        font-size: 64px;
        color: var(--primary-color);
        opacity: 0.5;
    }

    .book-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        color: white;
        gap: 10px;
    }

    .suggested-book-card:hover .book-overlay {
        opacity: 1;
    }

    .book-overlay i {
        font-size: 32px;
    }

    .book-overlay span {
        font-size: 16px;
        font-weight: 600;
    }

    .book-card-info {
        padding: 20px;
    }

    .book-card-title {
        font-size: 18px;
        font-weight: 700;
        color: #2c3e50;
        margin: 0 0 10px 0;
        line-height: 1.4;
        height: 50px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .book-card-author {
        font-size: 14px;
        color: #7f8c8d;
        margin: 0 0 15px 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .book-card-author i {
        color: var(--primary-color);
    }

    .book-card-prices {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .price-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
    }

    .price-badge.pdf {
        background: #e74c3c;
        color: white;
    }

    .price-badge.print {
        background: #3498db;
        color: white;
    }

    .load-more-container {
        text-align: center;
        margin-top: 30px;
    }

    .btn-load-more {
        padding: 14px 40px;
        background: linear-gradient(135deg, var(--primary-color), #764ba2);
        color: white;
        border: none;
        border-radius: 50px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    }

    .btn-load-more:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .btn-load-more:active {
        transform: translateY(0);
    }

    .btn-load-more i {
        transition: transform 0.3s ease;
    }

    .btn-load-more:hover i {
        transform: rotate(180deg);
    }

    .loading-spinner {
        margin-top: 15px;
        color: var(--primary-color);
        font-size: 16px;
        font-weight: 500;
    }

    .loading-spinner i {
        margin-left: 8px;
        font-size: 20px;
    }

    /* Image Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-content-container {
        position: relative;
        max-width: 90%;
        max-height: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
        display: block;
    }

    .close-modal {
        position: absolute;
        top: -40px;
        right: 0;
        color: #f1f1f1;
        font-size: 35px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1001;
    }

    .close-modal:hover {
        color: #bbb;
        background-color: rgba(0, 0, 0, 0.7);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .quick-checkout-section {
            padding: 20px;
        }
        
        .purchase-options-quick {
            flex-direction: column;
        }
        
        .btn-quick-purchase {
            min-width: 100%;
        }

        .book-comments-section {
            padding: 15px;
        }

        .comment-textarea {
            min-height: 100px;
        }

        .image-preview-box {
            height: 120px;
        }

        .comment-item {
            padding: 15px;
        }

        .comment-content {
            margin-left: 50px;
        }

        .comment-image {
            max-height: 200px;
        }

        .suggested-books-section {
            padding: 30px 20px;
        }

        .section-header h2 {
            font-size: 24px;
        }

        .suggested-books-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .book-card-cover {
            height: 250px;
        }

        .modal {
            padding: 10px;
        }

        .close-modal {
            top: -35px;
            right: 5px;
            font-size: 30px;
            width: 35px;
            height: 35px;
        }
    }

    @media (max-width: 480px) {
        .suggested-books-grid {
            grid-template-columns: 1fr;
        }
    }
    
    

/* === STYLES الجدد === */

/* الجملة التسويقية */
.book-tagline {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
    margin: 15px 0 25px;
    line-height: 1.6;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* تقييم الكتاب */
.book-rating-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 28px;
    color: #ffc107;
}

.rating-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.rating-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

/* Social Proof */
.social-proof {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 180px;
}

.proof-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.proof-number {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.proof-label {
    font-size: 13px;
    color: #666;
}

/* معلومات سريعة كبطاقات */
.quick-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.info-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.info-card-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-card-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-card-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* لماذا هذا الكتاب */
.why-read-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.why-read-section h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-read-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-read-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.why-read-list li:last-child {
    border-bottom: none;
}

.why-read-list li i {
    color: #ffd700;
    font-size: 20px;
    margin-top: 2px;
}

.why-read-list li span {
    flex: 1;
    line-height: 1.6;
}

/* جدول المحتويات المحسن */
.toc-section {
    margin: 30px 0;
}

.toc-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.toc-preview-item {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-preview-item:last-child {
    border-bottom: none;
}

.toc-preview-item i {
    color: var(--primary-color);
    font-size: 14px;
}

.toc-preview-item span {
    color: #555;
    font-weight: 500;
}

.show-full-toc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.show-full-toc-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.full-toc {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* معاينة الكتاب */
.preview-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    border-radius: 15px;
}

.preview-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-text {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
    color: #333;
    border-left: 4px solid var(--primary-color);
}

.preview-image-container {
    text-align: center;
    margin: 20px 0;
}

.preview-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.read-sample-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-sample-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* عن المؤلف */
.author-box {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.author-bio {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.more-books-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.more-books-btn:hover {
    opacity: 0.9;
}

/* تقييمات محسنة */
.review-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-user-info h5 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.review-rating {
    display: flex;
    gap: 4px;
    font-size: 18px;
    color: #ffc107;
}

.review-content {
    color: #555;
    line-height: 1.6;
}

.review-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
}

.write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 20px;
}

.write-review-btn:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto;
    }
    
    .social-proof {
        flex-direction: column;
    }
    
    .quick-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}