/* ═══════════════════════════════════════════════════════════
   SecureLib — Ethical Hacking eBook Library
   Dark military-tech aesthetic with green accent
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ────────────────────────────────────── */
:root {
    --ebl-bg:          #0a0e14;
    --ebl-surface:     #111827;
    --ebl-surface-2:   #1a2332;
    --ebl-surface-3:   #1e2d40;
    --ebl-border:      rgba(0, 255, 136, 0.15);
    --ebl-border-2:    rgba(255,255,255,0.07);
    --ebl-green:       #00ff88;
    --ebl-green-dim:   #00c96a;
    --ebl-green-dark:  #004d2a;
    --ebl-cyan:        #00d4ff;
    --ebl-orange:      #ff6b35;
    --ebl-red:         #ff4757;
    --ebl-yellow:      #ffd700;
    --ebl-text:        #e2e8f0;
    --ebl-text-dim:    #94a3b8;
    --ebl-text-muted:  #4a5568;
    --ebl-font-display:'Rajdhani', sans-serif;
    --ebl-font-mono:   'Share Tech Mono', monospace;
    --ebl-font-body:   'Inter', sans-serif;
    --ebl-radius:      10px;
    --ebl-radius-lg:   16px;
    --ebl-shadow:      0 4px 24px rgba(0,0,0,0.4);
    --ebl-shadow-green:0 0 30px rgba(0,255,136,0.15);
    --ebl-transition:  0.25s ease;
}

/* ─── RESET & BASE ──────────────────────────────────────── */
.ebl-library * { box-sizing: border-box; margin: 0; padding: 0; }
.ebl-library {
    font-family: var(--ebl-font-body);
    background: var(--ebl-bg);
    color: var(--ebl-text);
    min-height: 100vh;
}
.ebl-library a { text-decoration: none; color: inherit; }
.ebl-library img { max-width: 100%; display: block; }

/* ─── HERO ──────────────────────────────────────────────── */
.ebl-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    gap: 60px;
    overflow: hidden;
}

.ebl-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 50%, rgba(0,255,136,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 80% 30%, rgba(0,212,255,0.05) 0%, transparent 60%),
        linear-gradient(180deg, #0a0e14 0%, #0d1520 100%);
    z-index: 0;
}

/* Matrix-style animated grid */
.ebl-hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: eblGrid 4s linear infinite;
}
@keyframes eblGrid { from { transform: translateY(0); } to { transform: translateY(40px); } }

.ebl-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 600px;
}

.ebl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    color: var(--ebl-green);
    padding: 6px 16px;
    border-radius: 40px;
    font-family: var(--ebl-font-mono);
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.ebl-hero-title {
    font-family: var(--ebl-font-display);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}
.ebl-title-line1 {
    display: block;
    color: var(--ebl-green);
    text-shadow: 0 0 40px rgba(0,255,136,0.5);
    letter-spacing: -1px;
}
.ebl-title-line2 {
    display: block;
    color: var(--ebl-text);
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ebl-text-dim);
    margin-top: 6px;
}

.ebl-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ebl-text-dim);
    margin-bottom: 32px;
    max-width: 500px;
}

/* CTA Buttons */
.ebl-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.ebl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--ebl-radius);
    font-family: var(--ebl-font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all var(--ebl-transition);
    text-decoration: none;
}
.ebl-btn-primary {
    background: linear-gradient(135deg, var(--ebl-green), var(--ebl-green-dim));
    color: #000;
    box-shadow: 0 0 20px rgba(0,255,136,0.3);
}
.ebl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0,255,136,0.5);
    color: #000;
}
.ebl-btn-outline {
    background: transparent;
    border: 1px solid var(--ebl-green);
    color: var(--ebl-green);
}
.ebl-btn-outline:hover {
    background: rgba(0,255,136,0.1);
    transform: translateY(-2px);
}
.ebl-btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.ebl-btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}
.ebl-btn-ghost {
    background: transparent;
    color: var(--ebl-text-dim);
    border: 1px solid var(--ebl-border-2);
    padding: 10px 16px;
    font-size: 13px;
}
.ebl-btn-ghost:hover { color: var(--ebl-text); border-color: rgba(255,255,255,0.2); }
.ebl-btn-download {
    background: linear-gradient(135deg, var(--ebl-green), var(--ebl-green-dim));
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0,255,136,0.25);
}
.ebl-btn-download:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,255,136,0.4); color: #000; }
.ebl-btn-login  { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: var(--ebl-cyan); }
.ebl-btn-login:hover { background: rgba(0,212,255,0.2); color: var(--ebl-cyan); }
.ebl-btn-subscribe { background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.3); color: var(--ebl-orange); }
.ebl-btn-subscribe:hover { background: rgba(255,107,53,0.2); color: var(--ebl-orange); }
.ebl-btn-disabled { background: var(--ebl-surface-2); color: var(--ebl-text-muted); cursor: not-allowed; border: 1px solid var(--ebl-border-2); }
.ebl-btn-icon { font-size: 14px; }

/* Access badge */
.ebl-access-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.25);
    padding: 10px 20px;
    border-radius: 40px;
    color: var(--ebl-green);
    font-family: var(--ebl-font-mono);
    font-size: 14px;
    margin-bottom: 40px;
}

/* Stats */
.ebl-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.ebl-stat { text-align: center; }
.ebl-stat-num {
    display: block;
    font-family: var(--ebl-font-mono);
    font-size: 28px;
    color: var(--ebl-green);
    line-height: 1;
}
.ebl-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ebl-text-muted);
    margin-top: 4px;
}
.ebl-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--ebl-border);
}

/* Featured Book Card */
.ebl-hero-book {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.ebl-featured-book-card {
    background: var(--ebl-surface);
    border: 1px solid var(--ebl-border);
    border-radius: var(--ebl-radius-lg);
    padding: 24px;
    width: 280px;
    box-shadow: var(--ebl-shadow-green), var(--ebl-shadow);
    animation: eblFloat 3s ease-in-out infinite;
}
@keyframes eblFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.ebl-featured-label {
    font-size: 11px;
    font-family: var(--ebl-font-mono);
    color: var(--ebl-yellow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.ebl-featured-cover {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 180px;
    background: var(--ebl-surface-2);
    display: flex; align-items: center; justify-content: center;
}
.ebl-featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.ebl-featured-cover span { font-size: 60px; }
.ebl-featured-info h3 { font-family: var(--ebl-font-display); font-size: 18px; margin-bottom: 6px; }
.ebl-featured-author { font-size: 13px; color: var(--ebl-text-dim); margin-bottom: 8px; }
.ebl-featured-excerpt { font-size: 12px; color: var(--ebl-text-muted); line-height: 1.5; margin-bottom: 12px; }

/* ─── DIFFICULTY BADGES ─────────────────────────────────── */
.ebl-difficulty {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--ebl-font-mono);
}
.ebl-diff-beginner, .ebl-diff-Beginner { background: rgba(0,200,83,0.15); color: #00c853; border: 1px solid rgba(0,200,83,0.3); }
.ebl-diff-intermediate, .ebl-diff-Intermediate { background: rgba(0,145,255,0.15); color: #0091ff; border: 1px solid rgba(0,145,255,0.3); }
.ebl-diff-advanced, .ebl-diff-Advanced { background: rgba(255,107,53,0.15); color: var(--ebl-orange); border: 1px solid rgba(255,107,53,0.3); }
.ebl-diff-expert, .ebl-diff-Expert { background: rgba(255,71,87,0.15); color: var(--ebl-red); border: 1px solid rgba(255,71,87,0.3); }

/* ─── FILTERS ───────────────────────────────────────────── */
.ebl-filters-section {
    background: var(--ebl-surface);
    border-top: 1px solid var(--ebl-border-2);
    border-bottom: 1px solid var(--ebl-border-2);
    padding: 24px 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.ebl-filters-inner { max-width: 1200px; margin: 0 auto; }

.ebl-search-wrap {
    position: relative;
    margin-bottom: 16px;
}
.ebl-search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}
.ebl-search-input {
    width: 100%;
    background: var(--ebl-surface-2);
    border: 1px solid var(--ebl-border-2);
    border-radius: var(--ebl-radius);
    padding: 14px 20px 14px 48px;
    font-size: 15px;
    color: var(--ebl-text);
    font-family: var(--ebl-font-body);
    transition: border-color var(--ebl-transition), box-shadow var(--ebl-transition);
    outline: none;
}
.ebl-search-input:focus {
    border-color: rgba(0,255,136,0.4);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.08);
}
.ebl-search-input::placeholder { color: var(--ebl-text-muted); }

.ebl-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.ebl-filter-select {
    background: var(--ebl-surface-2);
    border: 1px solid var(--ebl-border-2);
    border-radius: var(--ebl-radius);
    padding: 10px 16px;
    color: var(--ebl-text);
    font-size: 14px;
    font-family: var(--ebl-font-body);
    cursor: pointer;
    outline: none;
    transition: border-color var(--ebl-transition);
}
.ebl-filter-select:focus { border-color: rgba(0,255,136,0.4); }
.ebl-filter-select option { background: var(--ebl-surface); }
.ebl-reset-btn {
    background: transparent;
    border: 1px solid var(--ebl-border-2);
    color: var(--ebl-text-muted);
    padding: 10px 16px;
    border-radius: var(--ebl-radius);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--ebl-transition);
    font-family: var(--ebl-font-body);
}
.ebl-reset-btn:hover { border-color: var(--ebl-green); color: var(--ebl-green); }

/* ─── CATEGORY TABS ─────────────────────────────────────── */
.ebl-category-tabs {
    display: flex;
    gap: 8px;
    padding: 20px 60px;
    overflow-x: auto;
    border-bottom: 1px solid var(--ebl-border-2);
    scrollbar-width: none;
}
.ebl-category-tabs::-webkit-scrollbar { display: none; }
.ebl-cat-tab {
    background: transparent;
    border: 1px solid var(--ebl-border-2);
    color: var(--ebl-text-dim);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-family: var(--ebl-font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--ebl-transition);
}
.ebl-cat-tab:hover, .ebl-cat-tab.active {
    background: rgba(0,255,136,0.1);
    border-color: var(--ebl-green);
    color: var(--ebl-green);
}

/* ─── BOOKS SECTION ─────────────────────────────────────── */
.ebl-books-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
}
.ebl-books-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.ebl-books-header h2 {
    font-family: var(--ebl-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--ebl-text);
}
.ebl-results-count {
    font-family: var(--ebl-font-mono);
    font-size: 13px;
    color: var(--ebl-text-muted);
}

/* ─── BOOK GRID ─────────────────────────────────────────── */
.ebl-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ─── BOOK CARD ─────────────────────────────────────────── */
.ebl-book-card {
    position: relative;
    background: var(--ebl-surface);
    border: 1px solid var(--ebl-border-2);
    border-radius: var(--ebl-radius-lg);
    overflow: hidden;
    transition: all var(--ebl-transition);
    display: flex;
    flex-direction: column;
}
.ebl-book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,255,136,0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,255,136,0.08);
}
.ebl-book-card.ebl-book-featured {
    border-color: rgba(255,215,0,0.25);
    box-shadow: 0 0 30px rgba(255,215,0,0.06);
}

.ebl-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--ebl-font-mono);
    z-index: 2;
}
.ebl-badge-featured { background: rgba(255,215,0,0.15); color: var(--ebl-yellow); border: 1px solid rgba(255,215,0,0.3); }

/* Card badge — difficulty (top-left) */
.ebl-book-card .ebl-card-badge.ebl-badge-difficulty {
    left: 12px;
    right: auto;
    top: 12px;
}

.ebl-book-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--ebl-surface-2);
}
.ebl-book-cover img.ebl-book-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ebl-book-card:hover .ebl-book-img { transform: scale(1.05); }

.ebl-cover-fallback {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ebl-surface-2), var(--ebl-surface-3));
}
.ebl-cover-icon { font-size: 56px; margin-bottom: 12px; opacity: 0.7; }
.ebl-cover-title-short {
    font-family: var(--ebl-font-display);
    font-size: 13px;
    color: var(--ebl-text-dim);
    text-align: center;
    padding: 0 16px;
    font-weight: 600;
}

.ebl-book-cover-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity var(--ebl-transition);
}
.ebl-book-card:hover .ebl-book-cover-overlay { opacity: 1; }
.ebl-preview-btn {
    background: rgba(0,255,136,0.15);
    border: 1px solid var(--ebl-green);
    color: var(--ebl-green);
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--ebl-font-mono);
    font-size: 13px;
    transition: background var(--ebl-transition);
}
.ebl-preview-btn:hover { background: rgba(0,255,136,0.3); }

.ebl-book-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ebl-book-cats {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.ebl-cat-tag {
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--ebl-cyan);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-family: var(--ebl-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ebl-book-title {
    font-family: var(--ebl-font-display);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--ebl-text);
}
.ebl-book-author {
    font-size: 12px;
    color: var(--ebl-text-dim);
    margin-bottom: 10px;
}
.ebl-book-meta {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.ebl-meta-item {
    font-family: var(--ebl-font-mono);
    font-size: 11px;
    color: var(--ebl-text-muted);
}
.ebl-book-excerpt {
    font-size: 13px;
    color: var(--ebl-text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.ebl-book-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ─── NO RESULTS ────────────────────────────────────────── */
.ebl-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--ebl-text-dim);
}
.ebl-no-results-icon { font-size: 60px; margin-bottom: 16px; opacity: 0.5; }

/* ─── LOADING ───────────────────────────────────────────── */
.ebl-loading {
    text-align: center;
    padding: 60px;
    color: var(--ebl-text-dim);
}
.ebl-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--ebl-border-2);
    border-top-color: var(--ebl-green);
    border-radius: 50%;
    animation: eblSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes eblSpin { to { transform: rotate(360deg); } }

/* ─── ACCESS NOTICE ─────────────────────────────────────── */
.ebl-access-notice {
    background: linear-gradient(135deg, #1a0f00, #1a0a00);
    border-top: 1px solid rgba(255,107,53,0.2);
    border-bottom: 1px solid rgba(255,107,53,0.2);
    padding: 40px 60px;
    margin-top: 20px;
}
.ebl-access-notice-inner {
    max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.ebl-notice-icon { font-size: 48px; flex-shrink: 0; }
.ebl-notice-text { flex: 1; }
.ebl-notice-text h3 {
    font-family: var(--ebl-font-display);
    font-size: 22px; font-weight: 700;
    color: var(--ebl-orange);
    margin-bottom: 8px;
}
.ebl-notice-text p { font-size: 14px; color: var(--ebl-text-dim); line-height: 1.6; }
.ebl-notice-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ─── FAQ ───────────────────────────────────────────────── */
.ebl-faq {
    max-width: 1200px; margin: 0 auto;
    padding: 60px;
    border-top: 1px solid var(--ebl-border-2);
}
.ebl-faq h2 {
    font-family: var(--ebl-font-display);
    font-size: 32px; font-weight: 700;
    margin-bottom: 32px;
    color: var(--ebl-text);
}
.ebl-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.ebl-faq-item {
    background: var(--ebl-surface);
    border: 1px solid var(--ebl-border-2);
    border-radius: var(--ebl-radius);
    padding: 24px;
    transition: border-color var(--ebl-transition);
}
.ebl-faq-item:hover { border-color: rgba(0,255,136,0.25); }
.ebl-faq-item h4 {
    font-family: var(--ebl-font-display);
    font-size: 16px; font-weight: 600;
    margin-bottom: 10px;
    color: var(--ebl-green);
}
.ebl-faq-item p { font-size: 14px; color: var(--ebl-text-dim); line-height: 1.6; }

/* ─── ACCESS DENIED PAGE ────────────────────────────────── */
.ebl-denied-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 60vh;
    background: var(--ebl-bg);
    padding: 40px 20px;
}
.ebl-denied-box {
    background: var(--ebl-surface);
    border: 1px solid rgba(255,71,87,0.3);
    border-radius: var(--ebl-radius-lg);
    padding: 60px 48px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 0 60px rgba(255,71,87,0.08);
}
.ebl-denied-icon { font-size: 64px; margin-bottom: 24px; }
.ebl-denied-box h2 {
    font-family: var(--ebl-font-display);
    font-size: 32px; font-weight: 700;
    color: var(--ebl-red);
    margin-bottom: 16px;
}
.ebl-denied-box p { color: var(--ebl-text-dim); line-height: 1.6; margin-bottom: 12px; }
.ebl-denied-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ─── QUICK VIEW MODAL ──────────────────────────────────── */
.ebl-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ebl-modal-overlay.active { opacity: 1; pointer-events: all; }
.ebl-modal {
    background: var(--ebl-surface);
    border: 1px solid var(--ebl-border);
    border-radius: var(--ebl-radius-lg);
    max-width: 600px; width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
.ebl-modal-overlay.active .ebl-modal { transform: scale(1); }
.ebl-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: var(--ebl-surface-2);
    border: 1px solid var(--ebl-border-2);
    color: var(--ebl-text-dim);
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--ebl-transition);
}
.ebl-modal-close:hover { color: var(--ebl-text); border-color: rgba(255,255,255,0.3); }
.ebl-modal-inner { display: flex; gap: 30px; }
.ebl-modal-cover { width: 160px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.ebl-modal-cover img { width: 100%; height: 220px; object-fit: cover; }
.ebl-modal-placeholder { width: 160px; height: 220px; background: var(--ebl-surface-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 60px; flex-shrink: 0; }
.ebl-modal-details h2 { font-family: var(--ebl-font-display); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.ebl-modal-author { color: var(--ebl-text-dim); font-size: 14px; margin-bottom: 16px; }
.ebl-modal-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ebl-modal-stat { background: var(--ebl-surface-2); padding: 8px 14px; border-radius: 8px; font-family: var(--ebl-font-mono); font-size: 12px; }
.ebl-modal-stat span { display: block; font-size: 10px; color: var(--ebl-text-muted); margin-bottom: 2px; }
.ebl-modal-desc { font-size: 14px; color: var(--ebl-text-dim); line-height: 1.7; margin-bottom: 24px; }
.ebl-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ebl-surface); }
::-webkit-scrollbar-thumb { background: var(--ebl-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,136,0.3); }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
    .ebl-hero { flex-direction: column; padding: 50px 30px; min-height: auto; }
    .ebl-hero-book { width: 100%; display: flex; justify-content: center; }
    .ebl-featured-book-card { width: 260px; }
    .ebl-filters-section, .ebl-books-section, .ebl-access-notice, .ebl-faq, .ebl-category-tabs { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
    .ebl-hero-title { font-size: 40px; }
    .ebl-books-grid { grid-template-columns: 1fr; }
    .ebl-modal-inner { flex-direction: column; }
    .ebl-modal-cover, .ebl-modal-placeholder { width: 100%; }
    .ebl-modal-placeholder { height: 160px; }
}
