/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── LAYOUT ── */





/* ── TYPOGRAPHY / HERO ── */
.page-hero { margin-bottom: 2rem; }
.page-hero h1, .catalogue-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}
.page-hero p, .catalogue-hero p { color: var(--muted); font-size: 0.9rem; }

.catalogue-hero { padding: 3rem 2rem 1.5rem; max-width: 1100px; margin: 0 auto; }

/* ── FILTER BAR ── */
.filter-bar {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.search-wrap { flex: 1; min-width: 200px; position: relative; }
.search-wrap input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--muted); }
.search-icon {
    position: absolute; left: 0.75rem; top: 50%;
    transform: translateY(-50%); color: var(--muted);
    font-size: 0.88rem; pointer-events: none;
}

.filter-pill {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.48rem 1rem;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-pill:hover, .filter-pill.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232,200,122,0.07);
}

.sort-select {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.48rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
}

/* ── SECTION LABEL ── */
.section-label {
    max-width: 1100px;
    margin: 2rem auto 1.25rem;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.section-label h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 400;
    white-space: nowrap;
}
.section-label-line, .section-line { flex: 1; height: 1px; background: var(--border); }

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    padding: 0.7rem 1.4rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: #7A4F2A; border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── BUTTONS ── */
.btn-primary {
    background: var(--accent); color: #14120f;
    border: none; padding: 0.72rem;
    border-radius: 6px; font-family: inherit;
    font-size: 0.86rem; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
    text-align: center;
}
.btn-primary:hover, .btn-new-list:hover, .btn-cart:hover, .btn-sm.primary:hover { background: #f0d48e; }

.btn-secondary {
    background: transparent; color: var(--text);
    border: 1px solid var(--border); padding: 0.62rem;
    border-radius: 6px; font-family: inherit;
    font-size: 0.83rem; cursor: pointer;
    transition: all 0.2s; text-align: center;
}
.btn-secondary:hover { border-color: var(--muted); }

.btn-new-list, .btn-cart {
    background: var(--accent); color: #14120f;
    border: none; padding: 0.6rem 1.25rem;
    border-radius: 6px; font-family: inherit;
    font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
    white-space: nowrap;
}

.btn-sm {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm.primary { background: var(--accent); border-color: var(--accent); color: #14120f; font-weight: 500; }

.btn-join {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    align-self: center;
}
.btn-join:hover, .btn-join.joined { background: var(--accent); color: #14120f; }

.btn-follow {
    background: var(--accent); color: #14120f;
    border: none; padding: 0.45rem 1rem;
    border-radius: 5px; font-family: inherit;
    font-size: 0.8rem; font-weight: 500; cursor: pointer;
    transition: background 0.2s;
}
.btn-follow:hover { background: #f0d48e; }
.btn-follow.following { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-follow.following:hover { background: rgba(232,200,122,0.1); }

.btn-save-list {
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); padding: 0.45rem 1rem;
    border-radius: 5px; font-family: inherit;
    font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
}
.btn-save-list:hover { border-color: var(--muted); color: var(--text); }

/* ── STATS ROW ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    display: flex; flex-direction: column; gap: 0.3rem;
}
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--text); line-height: 1; }
.stat-sub { font-size: 0.72rem; color: var(--accent); }

/* ── CURRENTLY READING ── */
.currently-reading {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.currently-reading::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top left, rgba(232,200,122,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.cr-cover {
    width: 70px;
    aspect-ratio: 2/3;
    border-radius: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.cr-info { flex: 1; min-width: 0; }
.cr-eyebrow { font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.cr-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.15rem; }
.cr-author { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.9rem; }
.cr-progress-label {
    display: flex; justify-content: space-between;
    font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem;
}
.cr-progress-label span:first-child { color: var(--text); }
.cr-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; flex-wrap: wrap; }

/* ── PROGRESS BAR ── */
.progress-track, .progress-bar-track {
    background: var(--border);
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}
.progress-track { height: 5px; }
.progress-fill, .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f0d48e);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ── BOOK GRID ── */
.catalogue-grid, .book-grid {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.75rem;
}
.book-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }

.book-card { display: flex; flex-direction: column; cursor: pointer; animation: fadeUp 0.4s ease both; }
.book-card:nth-child(1){animation-delay:.04s} .book-card:nth-child(2){animation-delay:.08s}
.book-card:nth-child(3){animation-delay:.12s} .book-card:nth-child(4){animation-delay:.16s}
.book-card:nth-child(5){animation-delay:.20s} .book-card:nth-child(6){animation-delay:.24s}

.book-cover-wrap {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 2/3;
    height: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.book-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-card:hover .book-cover-wrap, .book-card.active .book-cover-wrap {
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    transform: translateY(-4px);
}
.book-card.active .book-cover-wrap { box-shadow: 0 0 0 2px var(--accent), 0 12px 40px rgba(0,0,0,0.5); }


.book-card:hover .book-cover-wrap img { filter: brightness(1); }

.cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(14,12,9,0.92) 0%, rgba(14,12,9,0.1) 60%, transparent 100%);
    opacity: 0; transition: opacity 0.3s;
    display: flex; flex-direction: column;
    justify-content: flex-end; padding: 0.75rem; gap: 0.5rem;
}
.book-card:hover .cover-overlay { opacity: 1; }

/* star overlay on hover (read list) */
.cover-rate {
    position: absolute; inset: 0;
    background: rgba(14,12,9,0.82);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.6rem;
    opacity: 0; transition: opacity 0.25s;
}
.book-card:hover .cover-rate { opacity: 1; }
.rate-stars { display: flex; gap: 3px; }
.rate-star { font-size: 1.3rem; color: var(--border); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.rate-star:hover, .rate-star.lit { color: var(--accent); }
.rate-star:hover { transform: scale(1.2); }
.rate-label { font-size: 0.68rem; color: var(--muted); }

/* overlay readers chip */
.overlay-readers {
    display: flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 5px; padding: 0.38rem 0.6rem;
    backdrop-filter: blur(4px);
}
.overlay-readers-icon { font-size: 0.82rem; }
.overlay-readers-text { font-size: 0.76rem; color: var(--text); line-height: 1.2; }
.overlay-readers-text strong { display: block; font-size: 0.85rem; font-weight: 500; color: #fff; }

.btn-wishlist {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: var(--text); padding: 0.38rem; border-radius: 4px;
    font-size: 0.75rem; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.btn-wishlist:hover { background: rgba(255,255,255,0.18); }

.badge {
    position: absolute; top: 0.5rem; left: 0.5rem;
    background: var(--accent-hover); color: #fff;
    font-size: 0.62rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.18rem 0.42rem; border-radius: 3px;
}

.ribbon {
    position: absolute; top: 0.4rem; left: 0.4rem;
    font-size: 0.6rem; font-weight: 500;
    letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.15rem 0.4rem; border-radius: 3px;
}
.ribbon.read { background: #3a5a3a; color: #8fcf8f; }
.ribbon.dnf  { background: #5a3a3a; color: #cf8f8f; }
.ribbon.fav  { background: rgba(232,200,122,0.2); color: var(--accent); }

.placeholder-cover {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--border); background: var(--bg-card);
}

.book-meta { padding: 0.6rem 0.1rem 0; }
.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.88rem; font-weight: 400;
    line-height: 1.3; color: var(--text); margin-bottom: 0.2rem;
}
.book-author { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.35rem; }
.book-author a { color: inherit; text-decoration: none; }
.book-author a:hover { color: var(--accent); }

.star-row, .user-rating { display: flex; align-items: center; gap: 0.3rem; }
.stars, .user-rating { display: flex; gap: 1px; }
.star, .user-star { color: var(--accent); font-size: 0.72rem; }
.star.half { opacity: 0.5; }
.star.empty, .user-star.empty { color: var(--border); }
.rating-count { font-size: 0.7rem; color: var(--muted); }

.book-price { font-size: 0.85rem; font-weight: 500; color: var(--text); margin-top: 0.35rem; }
.book-price .original, .panel-price .original {
    text-decoration: line-through; color: var(--muted);
    font-weight: 300; font-size: 0.76rem; margin-left: 0.3rem;
}
.book-date { font-size: 0.67rem; color: var(--muted); margin-top: 0.2rem; }

/* ── WANT TO READ ── */
.want-list { display: flex; flex-direction: column; }
.want-item {
    display: flex; gap: 1rem; align-items: center;
    padding: 0.9rem 0; border-bottom: 1px solid var(--border);
    animation: fadeUp 0.3s ease both;
}
.want-item:last-child { border-bottom: none; }
.want-item:nth-child(1){animation-delay:.04s} .want-item:nth-child(2){animation-delay:.08s}
.want-item:nth-child(3){animation-delay:.12s} .want-item:nth-child(4){animation-delay:.16s}
.want-item:nth-child(5){animation-delay:.20s}

.want-cover {
    width: 42px; aspect-ratio: 2/3; border-radius: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.want-info { flex: 1; min-width: 0; }
.want-title { font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--text); margin-bottom: 0.12rem; }
.want-author { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.want-genres { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.want-genre {
    font-size: 0.62rem; color: var(--muted); background: var(--bg-card);
    border: 1px solid var(--border); padding: 0.1rem 0.4rem; border-radius: 10px;
}
.want-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; flex-shrink: 0; }
.want-price { font-size: 0.82rem; color: var(--text); }
.want-actions { display: flex; gap: 0.4rem; }
.want-btn {
    background: transparent; border: 1px solid var(--border); color: var(--muted);
    padding: 0.3rem 0.65rem; border-radius: 4px; font-family: inherit;
    font-size: 0.72rem; cursor: pointer; transition: all 0.2s;
}
.want-btn:hover { border-color: var(--accent); color: var(--accent); }
.want-btn.buy { background: var(--accent); border-color: var(--accent); color: #14120f; font-weight: 500; }
.want-btn.buy:hover { background: #f0d48e; }

.priority { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.1rem 0.35rem; border-radius: 3px; }
.priority.high { background: rgba(196,86,58,0.2); color: #e88070; }
.priority.med  { background: rgba(232,200,122,0.15); color: var(--accent); }
.priority.low  { background: var(--bg-card); color: var(--muted); }

/* ── FAVORITES ── */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.fav-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    animation: fadeUp 0.35s ease both;
}
.fav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    border-color: rgba(232,200,122,0.3);
}
.fav-card:nth-child(1){animation-delay:.04s} .fav-card:nth-child(2){animation-delay:.09s}
.fav-card:nth-child(3){animation-delay:.14s} .fav-card:nth-child(4){animation-delay:.19s}

.fav-hero {
    height: 80px; background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; position: relative;
}
.fav-heart { position: absolute; top: 0.5rem; right: 0.5rem; color: var(--accent-hover); font-size: 0.85rem; }
.fav-body { padding: 0.9rem; }
.fav-title { font-family: 'Playfair Display', serif; font-size: 0.92rem; line-height: 1.3; margin-bottom: 0.2rem; }
.fav-author { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.55rem; }
.fav-quote {
    font-size: 0.73rem; color: var(--muted); font-style: italic; line-height: 1.6;
    border-left: 2px solid var(--accent); padding-left: 0.6rem; margin-bottom: 0.55rem;
}
.fav-stars, .fav-star { display: flex; gap: 2px; }
.fav-star { font-size: 0.7rem; color: var(--accent); }

/* ── CUSTOM LISTS ── */
.custom-lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.custom-list-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 8px; padding: 1.1rem; cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    animation: fadeUp 0.35s ease both;
}
.custom-list-card:hover { border-color: rgba(232,200,122,0.3); transform: translateY(-2px); }
.custom-list-card:nth-child(1){animation-delay:.04s} .custom-list-card:nth-child(2){animation-delay:.09s}
.custom-list-card:nth-child(3){animation-delay:.14s} .custom-list-card:nth-child(4){animation-delay:.19s}

.cl-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.cl-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; line-height: 1.3; }
.cl-emoji { font-size: 1.3rem; }
.cl-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.75rem; }
.cl-covers { display: flex; margin-bottom: 0.7rem; }
.cl-cover-mini {
    width: 32px; aspect-ratio: 2/3; border-radius: 3px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; margin-right: -9px;
    box-shadow: -2px 0 4px rgba(0,0,0,0.3);
}
.cl-cover-mini:last-child { margin-right: 0; }
.cl-footer { display: flex; justify-content: space-between; align-items: center; }
.cl-count { font-size: 0.72rem; color: var(--muted); }
.cl-edit {
    font-size: 0.7rem; color: var(--muted); background: transparent;
    border: 1px solid var(--border); padding: 0.2rem 0.55rem; border-radius: 3px;
    font-family: inherit; cursor: pointer; transition: all 0.2s;
}
.cl-edit:hover { border-color: var(--muted); color: var(--text); }

.new-list-card {
    background: transparent; border: 1px dashed var(--border);
    border-radius: 8px; padding: 1.1rem; cursor: pointer;
    transition: border-color 0.2s; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 140px; color: var(--muted);
}
.new-list-card:hover { border-color: var(--accent); color: var(--accent); }
.new-list-icon { font-size: 1.5rem; }
.new-list-label { font-size: 0.78rem; }

/* ── LISTS PAGE ── */
.featured-list {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 2.5rem;
    display: flex; cursor: pointer; transition: border-color 0.25s; position: relative;
}
.featured-list:hover { border-color: rgba(232,200,122,0.35); }
.featured-list-accent { width: 5px; background: linear-gradient(to bottom, var(--accent), #c4563a); flex-shrink: 0; }
.featured-list-body { padding: 1.5rem; flex: 1; min-width: 0; }
.featured-eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin-bottom: 0.5rem; }
.featured-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.25; }
.featured-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; max-width: 540px; }
.featured-meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.featured-curator { display: flex; align-items: center; gap: 0.5rem; }
.curator-avatar, .lc-avatar, .panel-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 0.82rem;
}
.lc-avatar { width: 22px; height: 22px; font-size: 0.7rem; }
.curator-name { font-size: 0.78rem; color: var(--text); }
.featured-stat { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.3rem; }
.featured-covers { display: flex; align-items: center; padding: 1.5rem 1.5rem 1.5rem 0; flex-shrink: 0; }
.feat-cover {
    width: 52px; aspect-ratio: 2/3; border-radius: 5px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-left: -12px;
    box-shadow: -4px 0 8px rgba(0,0,0,0.4);
}
.feat-cover:first-child { margin-left: 0; }

.lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.list-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.15rem; cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: fadeUp 0.35s ease both;
    display: flex; flex-direction: column; gap: 0.85rem;
}
.list-card:hover { border-color: rgba(232,200,122,0.3); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.list-card.active { border-color: var(--accent); }
.list-card:nth-child(1){animation-delay:.04s} .list-card:nth-child(2){animation-delay:.09s}
.list-card:nth-child(3){animation-delay:.14s} .list-card:nth-child(4){animation-delay:.19s}
.list-card:nth-child(5){animation-delay:.24s} .list-card:nth-child(6){animation-delay:.29s}

.lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.lc-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; line-height: 1.3; flex: 1; }
.lc-emoji { font-size: 1.2rem; flex-shrink: 0; }
.lc-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.55; }
.lc-covers { display: flex; }
.lc-cover {
    width: 36px; aspect-ratio: 2/3; border-radius: 3px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; margin-right: -10px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
}
.lc-cover:last-child { margin-right: 0; }
.lc-footer { display: flex; justify-content: space-between; align-items: center; }
.lc-curator { display: flex; align-items: center; gap: 0.45rem; }
.lc-curator-name { font-size: 0.72rem; color: var(--muted); }
.lc-stats { display: flex; gap: 0.75rem; }
.lc-stat { font-size: 0.68rem; color: var(--muted); }

/* ── MAP ── */
.store-map {
    width: 100%; height: 160px;
    background: #1a1f1a; border-radius: 8px;
    border: 1px solid var(--border); position: relative; overflow: hidden;
}
.store-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: transform 0.2s; }
.map-pin:hover { transform: scale(1.15) translateY(-2px); }
.map-pin-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; border: 2px solid #14120f; box-shadow: 0 0 0 3px rgba(232,200,122,0.25); }
.map-pin-dot.nearby { background: #6aab6a; box-shadow: 0 0 0 3px rgba(106,171,106,0.25); }
.map-pin-dot.far    { background: var(--muted); box-shadow: none; }
.map-pin-label { font-size: 0.58rem; color: var(--text); background: rgba(14,12,9,0.85); padding: 1px 4px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
.map-you { position: absolute; width: 12px; height: 12px; background: #4a8fe8; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(74,143,232,0.3); }

/* ── LOCATION LIST ── */
.location-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background 0.15s;
}
.location-item:last-child { border-bottom: none; }
.location-item:hover { background: rgba(255,255,255,0.02); }
.location-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.location-dot.instock  { background: #6aab6a; }
.location-dot.low      { background: var(--accent); }
.location-dot.unavail  { background: var(--muted); }
.location-info { flex: 1; min-width: 0; }
.location-name { font-size: 0.82rem; color: var(--text); margin-bottom: 0.1rem; }
.location-addr { font-size: 0.72rem; color: var(--muted); }
.location-right { text-align: right; flex-shrink: 0; }
.location-dist  { font-size: 0.72rem; color: var(--muted); }
.location-stock { font-size: 0.68rem; margin-top: 0.1rem; }
.location-stock.instock { color: #6aab6a; }
.location-stock.low     { color: var(--accent); }
.location-stock.unavail { color: var(--muted); }

/* ── RECOMMENDATIONS ── */
.recs-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; }
.recs-scroll::-webkit-scrollbar { display: none; }
.rec-card { flex-shrink: 0; width: 90px; cursor: pointer; transition: transform 0.2s; }
.rec-card:hover { transform: translateY(-3px); }
.rec-cover {
    width: 90px; aspect-ratio: 2/3; border-radius: 5px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 0.4rem;
}
.rec-title { font-size: 0.72rem; color: var(--text); line-height: 1.25; margin-bottom: 0.1rem; }
.rec-author { font-size: 0.65rem; color: var(--muted); }

/* ── FRIENDS / CLUB ── */
.friend-item { display: flex; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.friend-item:last-child { border-bottom: none; }
.friend-avatar, .club-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.club-avatar { width: 36px; height: 36px; border-radius: 8px; font-size: 1.1rem; }
.friend-info, .club-info { flex: 1; min-width: 0; }
.friend-name { font-size: 0.8rem; font-weight: 500; color: var(--text); margin-bottom: 0.18rem; }
.friend-comment { font-size: 0.76rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.25rem; }
.friend-chapter { font-size: 0.7rem; color: var(--accent); }
.friend-time { font-size: 0.68rem; color: var(--border); flex-shrink: 0; white-space: nowrap; }

.club-item { display: flex; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.club-item:last-child { border-bottom: none; }
.club-name { font-size: 0.82rem; color: var(--text); font-weight: 500; margin-bottom: 0.15rem; }
.club-desc { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.3rem; line-height: 1.4; }
.club-meta { font-size: 0.7rem; color: var(--muted); display: flex; gap: 0.75rem; }
.club-meta span { display: flex; align-items: center; gap: 0.2rem; }

/* ── PANELS (shared) ── */
.book-panel, .list-panel {
    position: fixed;
    top: 56px; right: 0; bottom: 0;
    width: var(--panel-w);
    background: var(--card);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 150;
    display: flex; flex-direction: column; overflow: hidden;
}
.book-panel.open, .list-panel.open { transform: translateX(0); }

.panel-close {
    position: absolute; top: 0.9rem; right: 0.9rem;
    background: rgba(0,0,0,0.4); border: 1px solid var(--border);
    color: var(--muted); width: 28px; height: 28px;
    border-radius: 50%; cursor: pointer; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; z-index: 10;
}
.panel-close:hover { color: var(--text); border-color: var(--muted); }

.panel-body {
    flex: 1; overflow-y: auto;
    padding: 1.5rem;
    display: flex; flex-direction: column; gap: 1.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.panel-body::-webkit-scrollbar { width: 3px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.book-panel.open .panel-hero-content,
.book-panel.open .panel-body,
.list-panel.open .panel-header,
.list-panel.open .panel-body {
    animation: panelIn 0.35s ease 0.15s both;
}

/* Book panel specifics */
.panel-hero { position: relative; height: 190px; overflow: hidden; flex-shrink: 0; }
.panel-hero-bg {
    position: absolute; inset: -20px;
    font-size: 10rem; display: flex; align-items: center; justify-content: center;
    filter: blur(24px) brightness(0.35) saturate(1.5);
    transform: scale(1.15); background: var(--bg-card);
}
.panel-hero-content { position: relative; display: flex; align-items: flex-end; gap: 1.25rem; padding: 1.25rem; height: 100%; }
.panel-cover {
    width: 85px; aspect-ratio: 2/3; border-radius: 5px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1); background: var(--bg-card);
    flex-shrink: 0; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.panel-cover img { width: 100%; height: 100%; object-fit: cover; }
.panel-hero-info { padding-bottom: 0.15rem; }
.panel-book-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 0.2rem; }
.panel-author { font-size: 0.8rem; color: var(--accent); margin-bottom: 0.35rem; }
.panel-star-row { display: flex; align-items: center; gap: 0.3rem; }

.progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.45rem; }
.progress-label span:first-child { color: var(--accent); font-weight: 500; }

.panel-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }
.panel-desc .attribution { display: block; margin-top: 0.6rem; font-size: 0.76rem; color: var(--border); font-style: italic; }

.genre-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.genre-tag { background: var(--bg-card); border: 1px solid var(--border); color: var(--muted); font-size: 0.7rem; padding: 0.22rem 0.55rem; border-radius: 20px; }
.panel-section-title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }

/* Mini calendar */
.mini-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cal-label { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.04em; }
.cal-num { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.76rem; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.cal-num:hover { background: var(--bg-card); color: var(--text); }
.cal-num.today { background: var(--accent); color: #14120f; font-weight: 500; }
.cal-num.scheduled { background: var(--bg-card); color: var(--accent); border: 1px solid var(--accent); }

.panel-cta { display: flex; flex-direction: column; gap: 0.55rem; }
.panel-price { text-align: center; font-size: 0.95rem; color: var(--text); margin-bottom: 0.1rem; }
.panel-divider { height: 1px; background: var(--border); }

/* List panel specifics */
.panel-header { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--border); flex-shrink: 0; padding-right: 3rem; }
.panel-eyebrow { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin-bottom: 0.4rem; }
.panel-list-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.3rem; }
.panel-list-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.85rem; }
.panel-list-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.panel-curator { display: flex; align-items: center; gap: 0.45rem; }
.panel-curator-name { font-size: 0.78rem; color: var(--text); }
.panel-meta-stat { font-size: 0.72rem; color: var(--muted); }
.panel-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; }

/* Panel book entries */
.panel-book-entry { border-bottom: 1px solid var(--border); padding: 1.15rem 1.25rem; animation: fadeUp 0.3s ease both; }
.panel-book-entry:last-child { border-bottom: none; }
.pbe-top { display: flex; gap: 0.9rem; margin-bottom: 0.9rem; }
.pbe-cover {
    width: 52px; aspect-ratio: 2/3; border-radius: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.pbe-info { flex: 1; min-width: 0; }
.pbe-num { font-size: 0.65rem; color: var(--muted); margin-bottom: 0.25rem; }
.pbe-title { font-family: 'Playfair Display', serif; font-size: 0.92rem; line-height: 1.3; margin-bottom: 0.15rem; }
.pbe-author { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.3rem; }
.pbe-stars { display: flex; gap: 2px; }
.pbe-star { font-size: 0.68rem; color: var(--accent); }
.pbe-star.empty { color: var(--border); }

.curator-note { background: var(--bg-card); border-left: 2px solid var(--accent); border-radius: 0 5px 5px 0; padding: 0.65rem 0.8rem; margin-bottom: 0.85rem; }
.curator-note-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin-bottom: 0.3rem; }
.curator-note-text { font-size: 0.78rem; color: var(--text); line-height: 1.6; font-style: italic; }

.comments-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.65rem; }
.comments-label, .comments-count { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.comments-count { text-transform: none; letter-spacing: 0; }

.comment { display: flex; gap: 0.65rem; margin-bottom: 0.75rem; }
.comment:last-child { margin-bottom: 0; }
.comment-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-top { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.2rem; }
.comment-name { font-size: 0.76rem; font-weight: 500; color: var(--text); }
.comment-time { font-size: 0.65rem; color: var(--muted); }
.comment-text { font-size: 0.77rem; color: var(--muted); line-height: 1.55; }
.comment-likes { font-size: 0.66rem; color: var(--muted); margin-top: 0.3rem; cursor: pointer; transition: color 0.15s; display: inline-flex; align-items: center; gap: 0.25rem; }
.comment-likes:hover, .comment-likes.liked { color: var(--accent); }

.add-comment { display: flex; gap: 0.6rem; margin-top: 0.8rem; align-items: flex-start; }
.add-comment-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; flex-shrink: 0; margin-top: 2px; }
.add-comment-input {
    flex: 1; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 0.45rem 0.75rem; border-radius: 6px;
    font-family: inherit; font-size: 0.76rem; outline: none; resize: none;
    transition: border-color 0.2s; min-height: 34px;
}
.add-comment-input:focus { border-color: var(--accent); }
.add-comment-input::placeholder { color: var(--muted); }
.add-comment-send {
    background: var(--accent); border: none; color: #14120f;
    padding: 0.42rem 0.7rem; border-radius: 5px; font-family: inherit;
    font-size: 0.74rem; font-weight: 500; cursor: pointer; transition: background 0.2s; margin-top: 2px;
}
.add-comment-send:hover { background: #f0d48e; }

/* ── FOOTER ── */
/* footer styles handled by main.css .site-footer */

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .currently-reading { flex-direction: column; align-items: flex-start; }
}
/* ===== Accessibility + Brand Palette Overrides ===== */




a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.db-warning {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    color: #7a2f1a;
    font-size: 0.85rem;
}

.filter-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.filter-drawer {
    border: 1px solid rgba(46, 30, 15, 0.22);
    border-radius: 8px;
    background: #fff;
    margin: 0 2rem 1.5rem;
    padding: 0.75rem 1rem;
    display: grid;
    gap: 0.6rem;
}

.filter-drawer details {
    border-bottom: 1px solid rgba(46, 30, 15, 0.15);
    padding-bottom: 0.5rem;
}

.filter-drawer details:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-drawer summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
    font-size: 0.86rem;
}

.filter-group {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.45rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text);
}

.filter-group input[type='number'] {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(46, 30, 15, 0.35);
    border-radius: 4px;
    padding: 0.35rem 0.45rem;
    color: var(--text);
}

.filter-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.list-item {
    border: 1px solid rgba(46, 30, 15, 0.2);
    border-radius: 6px;
    padding: 0.65rem;
    margin-top: 0.5rem;
}

.list-info {
    display: grid;
    gap: 0.2rem;
}

.list-name {
    font-size: 0.84rem;
    color: var(--text);
}

.list-meta {
    font-size: 0.73rem;
    color: var(--muted);
}

#leafMap {
    min-height: 220px;
    background: #ddd;
}

@media (max-width: 680px) {
    .filter-drawer {
        margin: 0 1rem 1.2rem;
    }

    .filter-two-col {
        grid-template-columns: 1fr;
    }
}
.community-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    transition: all 0.2s;
}
.community-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}