/* ============================================
   كتبي - صفحة القراءة (محدث)
   ============================================ */

/* Back Button */
.book-back-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
    flex-shrink: 0;
}

.book-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 166, 81, 0.08);
}

.book-header-info { flex: 1; text-align: center; overflow: hidden; }

.book-header-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 300px;
    margin: 0 auto;
}

/* Book Info Section */
.book-info-section { padding: 3rem 0 2rem; }

.book-detail-card {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
}

.book-cover-large {
    width: 200px;
    min-width: 200px;
    height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--background-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.book-cover-large img { width: 100%; height: 100%; object-fit: cover; }
.book-detail-info { flex: 1; }
.book-detail-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text); }
.book-detail-author { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; }
.book-detail-description { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }

.book-detail-meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--background-elevated);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.meta-item i { color: var(--primary); }
.book-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-read-all, .btn-read-page, .btn-share {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-read-all { background: var(--primary-gradient); color: white; }
.btn-read-all:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); }
.btn-read-page { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-read-page:hover { background: rgba(0, 166, 81, 0.1); }
.btn-share { background: var(--background-elevated); color: var(--text-muted); border: 1px solid var(--border-light); }
.btn-share:hover { border-color: var(--primary); color: var(--primary); }

/* TOC Section */
.book-toc-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
}

.book-toc-section h3 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.book-toc-list { list-style: none; padding: 0; }

.toc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    cursor: default;
    border-radius: var(--border-radius);
}
.toc-item:last-child { border-bottom: none; }

.toc-number {
    background: var(--primary);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toc-text { font-size: 0.9rem; color: var(--text-light); }

/* Sub Books Section */
.sub-books-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
}

.sub-books-section h3 {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.sub-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.sub-book-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}

.sub-book-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }

.sub-book-cover {
    width: 50px;
    height: 65px;
    border-radius: 6px;
    background: var(--background-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sub-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.sub-book-cover i { color: var(--primary); font-size: 1.2rem; opacity: 0.5; }
.sub-book-info h4 { font-size: 0.85rem; margin-bottom: 0.2rem; line-height: 1.3; }
.sub-book-info p { font-size: 0.72rem; color: var(--text-muted); margin: 0; }

/* Linked Book Button */
.page-linked-book { text-align: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--border-light); }

.linked-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition);
}

.linked-book-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); color: white; }

/* Reading Mode Toggle */
.reading-mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    flex-wrap: wrap;
}

.reading-mode-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all var(--transition);
}

.reading-mode-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 166, 81, 0.05);
}

.reading-mode-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
}

/* Reading Section */
.reading-section { padding: 2rem 0 4rem; }

/* Page Search Overlay */
.page-search-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 900;
    padding: 1.5rem;
    display: none;
    box-shadow: var(--shadow-lg);
}

.page-search-overlay.active { display: block; }

.page-search-box { position: relative; max-width: 600px; margin: 0 auto 1rem; }

.page-search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--background-card);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.page-search-box input:focus { outline: none; border-color: var(--primary); }
.page-search-filters { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

.page-search-results { max-height: 50vh; overflow-y: auto; max-width: 600px; margin: 0 auto; }

.page-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
    border-radius: var(--border-radius);
}

.page-result-item:hover { background: rgba(0, 166, 81, 0.1); }
.page-result-item .page-num { color: var(--primary); font-weight: 700; font-size: 0.8rem; }
.page-result-item .page-snippet { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.page-result-item .page-snippet mark { background: rgba(0, 166, 81, 0.3); color: var(--text); border-radius: 2px; padding: 0 2px; }

/* Font Control */
.font-control-popup {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 950;
    text-align: center;
}

.font-control-header { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.font-control-slider { display: flex; align-items: center; gap: 1rem; }

.font-decrease, .font-increase {
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    color: var(--text);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.font-decrease:hover, .font-increase:hover { border-color: var(--primary); color: var(--primary); }
.font-size-display { font-weight: 700; color: var(--primary); min-width: 40px; }

/* Single Page View */
.page-navigation-top, .page-navigation-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.page-navigation-bottom { margin-top: 1.5rem; margin-bottom: 0; }

.page-nav-btn {
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    color: var(--text);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-counter { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

.page-content-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    min-height: 400px;
    line-height: 1.9;
    font-size: 1rem;
}


.page-content {
    color: var(--text-light);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 0.5rem;
}


.page-content h1, .page-content h2, .page-content h3 { color: var(--primary); margin: 1.5rem 0 1rem; }
.page-content strong { color: var(--text); }
.page-content em { color: var(--accent); font-style: italic; }
.page-content code { background: var(--background-elevated); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8em; direction: ltr; display: inline-block; }
.page-content pre { background: var(--background-elevated); padding: 1rem; border-radius: var(--border-radius); overflow-x: auto; margin: 1rem 0; direction: ltr; text-align: left; position: relative; }

/* Copy Button for Code Blocks */
.code-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--background-card);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 2;
}

pre:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.code-copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: white;
    opacity: 1;
}
.page-content ul, .page-content ol { padding-right: 1.5rem; margin: 0.75rem 0; }
.page-content li { margin-bottom: 0.5rem; color: var(--text-muted); }

/* Inline Images */
.page-inline-image {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    margin: 1rem 0;
    display: block;
    box-shadow: var(--shadow);
}

/* Inline Action Buttons */
.page-inline-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0.5rem 0.25rem;
    transition: all var(--transition);
}

.page-inline-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

/* Inline Links */
.page-inline-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color var(--transition);
}

.page-inline-link:hover {
    color: var(--accent);
}

/* Page Actions */
.page-actions-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
}

.page-action-btn {
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-action-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-action-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-action-btn.liked { background: var(--danger); color: white; border-color: var(--danger); }
.page-action-btn.liked i { font-weight: 900; }

/* All Pages View */
.all-pages-content .all-page-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    position: relative;
}

.all-page-item .page-number-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--primary);
    color: white;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Content Lock */
.content-lock { padding: 2rem 0; }

.lock-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.lock-card > i { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }
.lock-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text); }
.lock-card > p { color: var(--text-muted); margin-bottom: 1.5rem; }

.lock-price { margin-bottom: 1.5rem; display: flex; align-items: baseline; justify-content: center; gap: 0.25rem; }

.lock-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lock-price-currency { font-size: 1rem; color: var(--accent); font-weight: 700; }
.lock-price-period { color: var(--text-muted); font-size: 0.9rem; }
.lock-actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.code-input-group { display: flex; gap: 0.5rem; width: 100%; max-width: 350px; }

.code-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--background-card);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.code-input-group input:focus { outline: none; border-color: var(--primary); }

.btn-verify-code {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all var(--transition);
}

.btn-verify-code:hover { box-shadow: var(--shadow-primary); }

.btn-buy-code {
    background: var(--accent);
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
}

.btn-buy-code:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); color: #000; }

/* Page Actions Top */
.page-actions-top { margin-bottom: 1rem; border-top: none; margin-top: 0; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }

/* Quick Jump */
.quick-jump { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }

.quick-jump input {
    width: 100px;
    padding: 0.4rem 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--background-card);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    text-align: center;
}

.quick-jump input:focus { outline: none; border-color: var(--primary); }

.quick-jump-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all var(--transition);
}

.quick-jump-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-primary); }

/* All Pages Top Bar */
.all-pages-top-bar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Liked Pages Section */
.liked-pages-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.liked-pages-section h3 { color: var(--danger); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1rem; }

.liked-pages-list .liked-page-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.liked-page-item:hover { background: rgba(239, 68, 68, 0.05); }
.liked-page-item .liked-page-info { display: flex; flex-direction: column; gap: 0.2rem; }
.liked-page-item .page-title { font-size: 0.9rem; color: var(--text); }
.liked-page-item .page-num { font-size: 0.8rem; color: var(--primary); }

.liked-page-go-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.liked-page-go-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-primary); }

/* All Page Actions */
.all-page-actions { position: absolute; top: 0.2rem; right: 1rem; display: flex; gap: 0.4rem; z-index: 2; }

.all-page-action-btn {
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--transition);
}

.all-page-action-btn:hover { border-color: var(--primary); color: var(--primary); }
.all-page-action-btn.liked { background: var(--danger); color: white; border-color: var(--danger); }

/* Scroll Buttons */
.scroll-buttons { position: fixed; left: 1.5rem; bottom: 2rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 800; }

.scroll-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.scroll-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Responsive */
@media (max-width: 768px) {
    .book-detail-card { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
    .book-cover-large { width: 160px; min-width: 160px; height: 220px; }
    .book-detail-meta { justify-content: center; }
    .book-actions { justify-content: center; }
    .page-content-wrapper { padding: 1.5rem; }
    .page-actions-bar { flex-wrap: wrap; }
    .code-input-group { flex-direction: column; }
    .lock-card { padding: 2rem 1.5rem; }
    .book-header-title { max-width: 150px; }
    .scroll-buttons { left: 1rem; bottom: 1.5rem; }
    .scroll-btn { width: 36px; height: 36px; font-size: 0.85rem; }
    .all-page-actions { top: 0.2rem; right: 0.5rem; }
    .sub-books-grid { grid-template-columns: 1fr; }
    .code-copy-btn { opacity: 1; }
}
/* Page status badges */
.page-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
}

.page-badge-read {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.page-badge-liked {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Page result item header */
.page-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.page-result-badges {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

/* All pages header with badges */
.all-page-status-badges {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    justify-content: center;
}




/* Liked page meta */
.liked-page-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

/* Liked pages section header */
.liked-pages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.liked-pages-header h3 {
    margin: 0;
}

.liked-pages-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted, #888);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.liked-pages-toggle-btn:hover {
    background: var(--bg-hover, rgba(255,255,255,0.05));
}

.liked-pages-body {
    margin-top: 0.5rem;
}

.liked-pages-more-btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: var(--bg-hover, rgba(255,255,255,0.05));
    border: 1px dashed var(--border-color, rgba(255,255,255,0.1));
    border-radius: 8px;
    color: var(--text-muted, #888);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.liked-pages-more-btn:hover {
    background: var(--bg-card, rgba(255,255,255,0.08));
    color: var(--text-primary, #fff);
}

/* All-page action buttons */
.all-page-actions {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.all-page-action-btn {
    background: var(--bg-hover, rgba(255,255,255,0.05));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    color: var(--text-muted, #888);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.all-page-action-btn:hover {
    background: var(--bg-card, rgba(255,255,255,0.08));
    color: var(--text-primary, #fff);
}

.all-page-action-btn.liked {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.all-page-action-btn.read-active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Reading progress indicator */
.reading-progress-indicator {
    background: var(--bg-card, rgba(255,255,255,0.03));
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.reading-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reading-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #888);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.reading-progress-label i {
    color: #10b981;
}

.reading-progress-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
}

.reading-progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-hover, rgba(255,255,255,0.08));
    border-radius: 100px;
    overflow: hidden;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 100px;
    transition: width 0.4s ease;
}