/* ============================================
   BOOKS LIBRARY - MAIN STYLES
   4 Cards Per Row | Red & Dark Theme | Book Modal
   All classes prefixed: book-
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;

    background:
        radial-gradient(circle at 15% 20%, rgba(220, 38, 38, 0.14) 0%, transparent 28%),
        radial-gradient(circle at 85% 25%, rgba(239, 68, 68, 0.10) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(180, 30, 30, 0.07) 0%, transparent 25%),
        linear-gradient(
            135deg,
            #0d0505 0%,
            #160a0a 25%,
            #1f0c0c 50%,
            #140808 75%,
            #0a0404 100%
        );
    background-attachment: scroll;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at 30% 30%, rgba(220, 38, 38, 0.10), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(185, 28, 28, 0.07), transparent 35%);
    filter: blur(40px);
    opacity: 0.8;
    will-change: transform;
    animation: bookBodyGlow 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes bookBodyGlow {
    from { transform: scale(1);    opacity: 0.7; }
    to   { transform: scale(1.08); opacity: 1;   }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a0a0a; border-radius: 10px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ============================================
   LAYOUT
   ============================================ */

.book-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.book-section {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.book-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* GPU acceleration for animated elements */
.book-card,
.book-filter-btn,
.book-submit-section {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* ============================================
   HEADINGS
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.book-main-heading {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fca5a5 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease;
    line-height: 1.2;
}

.book-main-heading i {
    background: none;
    -webkit-text-fill-color: #dc2626;
    color: #dc2626;
    margin-right: 12px;
}

.book-sub-heading {
    font-size: 20px;
    color: #c0a0a0;
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 640px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.book-count {
    font-size: 14px;
    color: #9b7070;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.15s backwards;
}

/* ============================================
   3-STEP HOW IT WORKS BAR
   ============================================ */

.book-steps-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 20px;
    padding: 20px 32px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease 0.2s backwards;
    flex-wrap: wrap;
}

.book-step {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 160px;
}

.book-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220,38,38,0.25), rgba(185,28,28,0.15));
    border: 1px solid rgba(220,38,38,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.book-step-icon i {
    font-size: 18px;
    color: #ef4444;
}

.book-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-step-text strong {
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
}

.book-step-text span {
    font-size: 12px;
    color: #9b7070;
}

.book-step-arrow {
    color: rgba(220,38,38,0.4);
    font-size: 14px;
    padding: 0 8px;
    flex-shrink: 0;
}

/* ============================================
   FORMAT BADGE ROW
   ============================================ */

.book-formats-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.25s backwards;
}

.book-formats-label {
    font-size: 13px;
    color: #9b7070;
    font-weight: 500;
    margin-right: 4px;
}

.book-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.10);
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #fca5a5;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.book-format-badge:hover {
    background: rgba(220, 38, 38, 0.20);
    border-color: rgba(220, 38, 38, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.book-format-badge i {
    font-size: 10px;
}

/* ============================================
   FILTER SECTION
   ============================================ */

.book-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 40px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
    position: relative;
    z-index: 2;
}

.book-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.book-filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid rgba(220, 38, 38, 0.20);
    background: rgba(20, 8, 8, 0.60);
    backdrop-filter: blur(10px);
    color: #e0c0c0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.book-filter-btn i { margin-right: 8px; }

/* Ripple effect */
.book-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.book-filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.book-filter-btn:hover {
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
}

.book-filter-btn.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45);
}

/* ============================================
   SEARCH BOX
   ============================================ */

.book-search-wrapper {
    position: relative;
    min-width: 300px;
}

.book-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.book-search-box i.fa-search {
    position: absolute;
    left: 16px;
    color: #7a5050;
    font-size: 14px;
}

.book-search-input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    border-radius: 50px;
    border: 1.5px solid rgba(220, 38, 38, 0.25);
    background: rgba(20, 8, 8, 0.80);
    backdrop-filter: blur(10px);
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.book-search-input:focus {
    outline: none;
    border-color: #dc2626;
    background: rgba(20, 8, 8, 0.95);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.book-search-input::placeholder { color: #7a5050; }

.book-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #7a5050;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.book-search-clear:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.10);
}

/* Search Suggestions Dropdown */
.book-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 8, 8, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    margin-top: 8px;
    border: 1px solid rgba(220, 38, 38, 0.20);
    z-index: 100;
    display: none;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.book-search-suggestions.show { display: block; }

.book-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0c0c0;
    font-size: 14px;
}

.book-suggestion-item i { color: #dc2626; width: 20px; }
.book-suggestion-item:hover { background: rgba(220, 38, 38, 0.12); }

/* ============================================
   BOOKS GRID — 4 CARDS PER ROW
   ============================================ */

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0 0 60px;
    position: relative;
    z-index: 2;
}

/* ============================================
   BOOK CARD
   ============================================ */

.book-card {
    background: linear-gradient(
        145deg,
        rgba(28, 10, 10, 0.90),
        rgba(18, 6, 6, 0.94)
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.03);
    animation: fadeInUp 0.5s ease backwards;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.32);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.40),
        0 0 20px rgba(220, 38, 38, 0.12);
}

/* Category Badge — top right */
.book-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #ffffff;
}

.book-category-badge i { margin-right: 4px; font-size: 10px; }

/* ============================================
   BOOK COVER IMAGE
   ============================================ */

.book-cover-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a0808, #0d0404);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
}

.book-card:hover .book-cover-img {
    transform: scale(1.06);
}

/* Dark gradient overlay at bottom of cover */
.book-cover-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(18, 6, 6, 0.95), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Cover placeholder when image fails */
.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0808, #0d0404);
    flex-direction: column;
    gap: 10px;
}

.book-cover-placeholder i {
    font-size: 56px;
    color: #dc2626;
    opacity: 0.4;
}

.book-cover-placeholder span {
    font-size: 11px;
    color: #7a5050;
}

/* Year badge — bottom left of cover */
.book-year-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.3px;
}

/* ============================================
   CARD CONTENT
   ============================================ */

.book-content {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 13px;
    color: #fca5a5;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-author i {
    font-size: 10px;
    color: #dc2626;
}

/* Rating stars row */
.book-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.book-stars {
    display: flex;
    gap: 2px;
}

.book-stars i {
    font-size: 11px;
    color: #fbbf24;
}

.book-stars i.half {
    color: #fbbf24;
    opacity: 0.6;
}

.book-stars i.empty {
    color: #4a3030;
}

.book-rating-value {
    font-size: 12px;
    font-weight: 700;
    color: #fbbf24;
}

.book-pages {
    font-size: 11px;
    color: #7a5050;
}

/* Description */
.book-description {
    font-size: 12px;
    line-height: 1.65;
    color: #c0a0a0;
    margin-bottom: 12px;

    /* Fixed height — 3 lines, fade out */
    height: 60px;
    max-height: 60px;
    overflow: hidden;
    flex: none;
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    mask-image:         linear-gradient(to bottom, black 30%, transparent 100%);
}

/* Format chips row */
.book-formats-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.book-fmt-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fca5a5;
    background: rgba(220,38,38,0.10);
    border: 1px solid rgba(220,38,38,0.18);
    border-radius: 50px;
    padding: 3px 9px;
    letter-spacing: 0.3px;
}

.book-fmt-chip i { font-size: 9px; }

/* ============================================
   CARD ACTIONS
   ============================================ */

.book-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.book-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    flex: 1;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.book-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.45);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.book-read-btn i { font-size: 12px; }

.book-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(220, 38, 38, 0.30);
    background: transparent;
    color: #fca5a5;
    font-family: inherit;
    text-decoration: none;
}

.book-download-btn:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.55);
    color: #ffffff;
    transform: translateY(-2px);
}

.book-download-btn i { font-size: 12px; }

/* Search highlight */
.book-highlight {
    background: rgba(220, 38, 38, 0.45);
    color: #ffffff;
    padding: 0 2px;
    border-radius: 4px;
    font-weight: 600;
}

/* ============================================
   LOADING / EMPTY / ERROR STATES
   ============================================ */

.book-loading {
    text-align: center;
    padding: 80px 60px;
    color: #c0a0a0;
    grid-column: 1 / -1;
}

.book-loading i {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    color: #dc2626;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.book-no-results {
    text-align: center;
    padding: 80px 60px;
    color: #c0a0a0;
}

.book-no-results i {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    color: #dc2626;
    opacity: 0.5;
}

.book-no-results p { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.book-no-results span { font-size: 14px; color: #7a5050; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.book-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    gap: 10px;
}

.book-toast.show {
    display: flex;
    animation: bookSlideIn 0.3s ease;
}

.book-toast.hide {
    animation: bookSlideOut 0.3s ease forwards;
}

@keyframes bookSlideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes bookSlideOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}

/* ============================================
   BOOK DETAIL MODAL
   ============================================ */

.book-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.book-modal-overlay.active {
    display: flex;
    animation: bookFadeIn 0.25s ease;
}

@keyframes bookFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.book-modal {
    background: linear-gradient(145deg, #1c0808, #120404);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.04);
    animation: bookModalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bookModalSlideUp {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.book-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(220,38,38,0.12);
}

.book-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-modal-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 8px #dc2626;
    animation: bookPulse 1.5s ease infinite;
}

@keyframes bookPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.book-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #c0a0a0;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.book-modal-close:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Modal body — two-column layout: cover + details */
.book-modal-body {
    padding: 28px 28px 32px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.book-modal-cover {
    flex-shrink: 0;
    width: 160px;
}

.book-modal-cover img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: block;
}

.book-modal-cover-placeholder {
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg, #1a0808, #0d0404);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(220,38,38,0.15);
}

.book-modal-cover-placeholder i {
    font-size: 48px;
    color: #dc2626;
    opacity: 0.4;
}

.book-modal-details {
    flex: 1;
    min-width: 0;
}

.book-modal-book-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.book-modal-author {
    font-size: 15px;
    color: #fca5a5;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.book-modal-author i { color: #dc2626; font-size: 12px; }

/* Modal meta row — year, pages, language */
.book-modal-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(220,38,38,0.10);
}

.book-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #b09090;
}

.book-modal-meta-item i {
    color: #dc2626;
    font-size: 11px;
    width: 14px;
}

.book-modal-meta-item strong {
    color: #e8d0d0;
}

/* Modal rating */
.book-modal-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.book-modal-stars {
    display: flex;
    gap: 3px;
}

.book-modal-stars i {
    font-size: 14px;
    color: #fbbf24;
}

.book-modal-stars i.empty { color: #4a3030; }

.book-modal-rating-val {
    font-size: 18px;
    font-weight: 800;
    color: #fbbf24;
}

.book-modal-rating-label {
    font-size: 12px;
    color: #7a5050;
}

/* Modal description */
.book-modal-desc-label {
    font-size: 12px;
    color: #7a5050;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 8px;
}

.book-modal-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #c0a0a0;
    margin-bottom: 20px;
}

/* Modal format chips */
.book-modal-formats-label {
    font-size: 12px;
    color: #7a5050;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 10px;
}

.book-modal-formats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.book-modal-fmt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fca5a5;
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.22);
    border-radius: 50px;
    padding: 5px 14px;
}

.book-modal-fmt i { font-size: 11px; }

/* Modal action buttons */
.book-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.book-modal-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.book-modal-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220,38,38,0.45);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.book-modal-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(220,38,38,0.32);
    background: transparent;
    color: #fca5a5;
    font-family: inherit;
    text-decoration: none;
}

.book-modal-dl-btn:hover {
    background: rgba(220,38,38,0.12);
    border-color: rgba(220,38,38,0.55);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   SUBMIT SECTION
   ============================================ */

.book-submit-section {
    margin-top: 80px;
    padding: 60px 48px;
    background: linear-gradient(135deg,
        rgba(220, 38, 38, 0.07),
        rgba(185, 28, 28, 0.05)
    );
    border-radius: 32px;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.18);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.book-submit-section:hover {
    border-color: rgba(220, 38, 38, 0.42);
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.15);
}

.book-submit-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.book-submit-section h3 i {
    color: #dc2626;
    margin-right: 12px;
}

.book-submit-desc {
    color: #c0a0a0;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.6;
}

.book-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 60px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.book-premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.50);
    gap: 16px;
}

.book-credit-text {
    margin-top: 20px;
    font-size: 12px;
    color: #7a5050;
}

.book-credit-text i { margin-right: 6px; }

/* ============================================
   FAQ SECTION
   ============================================ */

.book-faq-section {
    margin-top: 80px;
    padding: 64px 0 20px;
    position: relative;
}

/* Top divider glow */
.book-faq-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220,38,38,0.50) 30%,
        rgba(185,28,28,0.65) 50%,
        rgba(220,38,38,0.50) 70%,
        transparent 100%);
    margin-bottom: 64px;
}

.book-faq-header {
    text-align: center;
    margin-bottom: 52px;
}

.book-faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.25);
    margin-bottom: 20px;
}

.book-faq-heading {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #fca5a5 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    line-height: 1.25;
}

.book-faq-subheading {
    font-size: 16px;
    color: #c0a0a0;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

.book-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.book-faq-item {
    background: rgba(18, 6, 6, 0.72);
    border: 1.5px solid rgba(220, 38, 38, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(12px);
}

.book-faq-item:hover {
    border-color: rgba(220, 38, 38, 0.32);
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.10);
}

.book-faq-item.book-faq--open {
    border-color: rgba(220, 38, 38, 0.50);
    box-shadow: 0 6px 32px rgba(220, 38, 38, 0.15);
    background: rgba(25, 8, 8, 0.88);
}

.book-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #e8d0d0;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.book-faq-question:hover { color: #fca5a5; }
.book-faq-item.book-faq--open .book-faq-question { color: #fca5a5; }

.book-faq-icon {
    flex-shrink: 0;
    font-size: 13px;
    color: #dc2626;
    transition: transform 0.3s ease;
}

.book-faq-item.book-faq--open .book-faq-icon {
    transform: rotate(180deg);
    color: #ef4444;
}

.book-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-faq-answer > div {
    padding: 0 24px 24px;
    font-size: 14.5px;
    color: #b09090;
    line-height: 1.75;
    border-top: 1px solid rgba(220,38,38,0.10);
    padding-top: 16px;
}

.book-faq-answer strong { color: #e8d0d0; }
.book-faq-answer em { color: #fca5a5; font-style: normal; }

/* ============================================
   CARD ANIMATION DELAYS
   ============================================ */

.book-card:nth-child(1)  { animation-delay: 0.05s; }
.book-card:nth-child(2)  { animation-delay: 0.10s; }
.book-card:nth-child(3)  { animation-delay: 0.15s; }
.book-card:nth-child(4)  { animation-delay: 0.20s; }
.book-card:nth-child(5)  { animation-delay: 0.25s; }
.book-card:nth-child(6)  { animation-delay: 0.30s; }
.book-card:nth-child(7)  { animation-delay: 0.35s; }
.book-card:nth-child(8)  { animation-delay: 0.40s; }
.book-card:nth-child(9)  { animation-delay: 0.45s; }
.book-card:nth-child(10) { animation-delay: 0.50s; }
.book-card:nth-child(11) { animation-delay: 0.55s; }
.book-card:nth-child(12) { animation-delay: 0.60s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop: 4 cards */
@media (min-width: 1200px) {
    .book-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet Landscape: 3 cards */
@media (min-width: 992px) and (max-width: 1199px) {
    .book-grid { grid-template-columns: repeat(3, 1fr); }
    .book-main-heading { font-size: 46px; }
}

/* Tablet Portrait: 2 cards */
@media (min-width: 768px) and (max-width: 991px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); }
    .book-main-heading { font-size: 38px; }
    .book-faq-grid { grid-template-columns: 1fr; }
    .book-modal-body { flex-direction: column; }
    .book-modal-cover { width: 100%; text-align: center; }
    .book-modal-cover img { width: 140px; margin: 0 auto; }
}

/* Mobile: 1 card */
@media (max-width: 767px) {
    .book-container { padding: 0 16px; }

    .book-main-heading { font-size: 30px; }
    .book-sub-heading  { font-size: 16px; }

    .book-steps-bar {
        padding: 16px 20px;
        gap: 16px;
    }

    .book-step-arrow { display: none; }

    .book-filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .book-filter-buttons { justify-content: center; }

    .book-filter-btn { padding: 8px 16px; font-size: 12px; }

    .book-search-wrapper { width: 100%; min-width: unset; }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .book-submit-section { padding: 40px 24px; }
    .book-submit-section h3 { font-size: 22px; }

    .book-faq-grid { grid-template-columns: 1fr; }
    .book-faq-heading { font-size: 26px; }

    .book-modal { border-radius: 16px; }
    .book-modal-body { flex-direction: column; padding: 20px; gap: 20px; }
    .book-modal-cover { width: 100%; display: flex; justify-content: center; }
    .book-modal-cover img { width: 120px; }
    .book-modal-cover-placeholder { width: 120px; height: 170px; margin: 0 auto; }
    .book-modal-book-title { font-size: 18px; }
    .book-modal-actions { flex-direction: column; }
    .book-modal-read-btn,
    .book-modal-dl-btn { width: 100%; justify-content: center; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .book-main-heading { font-size: 26px; }
    .book-cover-wrap   { height: 200px; }
    .book-faq-heading  { font-size: 22px; }
    .book-faq-subheading { font-size: 14px; }
    .book-faq-question { font-size: 14px; padding: 18px; }
    .book-faq-answer > div { padding: 12px 18px 18px; font-size: 13.5px; }
    .book-formats-bar  { gap: 6px; }
    .book-format-badge { padding: 4px 10px; font-size: 11px; }
    .book-modal-meta   { gap: 12px; }
    .book-modal-actions { gap: 8px; }
}