/* ========== DIMENSIONAL UI — FINAL POLISH ================================= */
:root {
    --page-max-width: 1200px;
    --page-pad-x: 1.25rem;
    --dim-bg-start: rgba(59, 130, 246, 0.12);
    --dim-bg-end: rgba(167, 139, 250, 0.14);
    --dim-card-bg: #ffffff;
    --dim-card-border: rgba(148, 163, 184, 0.2);
    --dim-text: #1e293b;
    --dim-muted: #64748b;
    --dim-primary: #3b82f6;
    --dim-primary-dark: #2563eb;
    --dim-purple: #8b5cf6;
    --dim-success: #10b981;
    --dim-danger: #ef4444;
    --dim-warning: #f59e0b;
    --dim-shadow: 0 4px 16px rgba(59, 130, 246, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    --dim-shadow-hover: 0 12px 28px rgba(59, 130, 246, 0.15), 0 4px 8px rgba(0, 0, 0, 0.05);
}

.page-shell {
    max-width: var(--page-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--page-pad-x) !important;
    padding-right: var(--page-pad-x) !important;
    width: 100% !important;
    box-sizing: border-box;
}
.page-shell .container-fluid,
.page-shell .container-modern,
.page-shell .container,
.page-shell .container-xl {
    max-width: 100% !important; width: 100% !important;
    padding-left: 0 !important; padding-right: 0 !important;
    margin-left: 0 !important; margin-right: 0 !important;
}
.page-shell .row.justify-content-center > [class*="col-"] {
    max-width: 100% !important; flex: 0 0 100% !important;
}
.page-shell .px-4 { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 768px) { :root { --page-pad-x: 0.85rem; } }

.loans-header, .books-header, .members-header, .authors-header, .edit-header, .loan-header {
    background: linear-gradient(135deg, var(--dim-bg-start) 0%, var(--dim-bg-end) 100%) !important;
    border-radius: 1.25rem !important; padding: 2rem 1.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: var(--dim-shadow) !important; margin-bottom: 1.5rem !important;
}
.header-pattern {
    background:
        radial-gradient(circle at 15% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 45%) !important;
}
.library-icon, .loans-icon, .members-icon, .loan-creation-icon, .authors-icon {
    position: relative; display: inline-block; margin-bottom: 1rem !important;
}
.icon-wrapper {
    position: relative; width: 72px !important; height: 72px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    border-radius: 50% !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
    font-size: 2rem !important; color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35) !important;
}
.icon-pulse {
    position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 2px solid rgba(59, 130, 246, 0.45) !important; border-radius: 50%;
    animation: dim-pulse 2s ease-in-out infinite; pointer-events: none;
}
@keyframes dim-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.12); opacity: 0.25; }
}
.header-title, .page-title-gradient {
    font-size: 1.85rem !important; font-weight: 700 !important;
    margin-bottom: 0.35rem !important;
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.header-actions-stack {
    display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
}
.header-actions-stack .d-flex.gap-2 { gap: 0.75rem !important; }
@media (max-width: 991px) {
    .header-actions-stack { align-items: stretch; }
    .header-actions-stack .btn { width: 100%; justify-content: center; }
}

.kpi-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}

.form-control, .form-select, .modern-input,
input.form-control, textarea.form-control, select.form-control, select.form-select,
.input-group .form-control, .input-group .form-select {
    background-color: #f8fafc !important; border: 2px solid #e2e8f0 !important;
    color: #1e293b !important; border-radius: 0.65rem !important; box-shadow: none !important;
}
.form-control::placeholder, .modern-input::placeholder, textarea::placeholder {
    color: #94a3b8 !important; opacity: 1 !important;
}
.form-control:focus, .form-select:focus, .modern-input:focus {
    background-color: #ffffff !important; border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important; color: #1e293b !important;
}
.input-group-text {
    background-color: #f1f5f9 !important; border: 2px solid #e2e8f0 !important; color: #64748b !important;
}
.search-input, #searchInput, #globalSearch, #memberSearch, #bookSearch {
    background: #f1f5f9 !important; border: 2px solid #e2e8f0 !important;
    color: #1e293b !important; border-radius: 0.85rem !important;
}
.search-input:focus, #searchInput:focus, #globalSearch:focus {
    background: #fff !important; border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}
.search-input::placeholder { color: #94a3b8 !important; }
.search-icon { color: #94a3b8 !important; }

/* Author cards + portraits */
.author-avatar, .author-avatar-soft, .author-avatar-photo {
    position: relative;
    height: 180px !important;
    overflow: hidden !important;
    background: linear-gradient(145deg, #60a5fa 0%, #a78bfa 55%, #c4b5fd 100%) !important;
}
.author-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}
.author-card-inner {
    background: #ffffff !important; border: 1px solid var(--dim-card-border) !important;
    box-shadow: var(--dim-shadow) !important; border-radius: 1rem !important; overflow: hidden;
}
.author-name { color: #0f172a !important; font-weight: 700 !important; }
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #fff !important; border-radius: 1rem !important; padding: 1.15rem 1.35rem;
    box-shadow: var(--dim-shadow); border: 1px solid var(--dim-card-border);
    border-left: 4px solid var(--dim-primary); display: flex; align-items: center; gap: 1rem;
}
.stat-card .stat-info h3, .stat-card .stat-number {
    font-size: 1.45rem; font-weight: 700; margin: 0; color: var(--dim-text) !important;
}
.stat-card .stat-info p, .stat-card .stat-label {
    margin: 0; color: var(--dim-muted) !important; font-size: 0.85rem;
}
.elevated-card, .search-filter-section, .section-card, .form-card, .creation-card {
    background: #fff !important; border: 1px solid var(--dim-card-border) !important;
    border-radius: 1rem !important; box-shadow: var(--dim-shadow) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: transparent !important; color: #fff !important;
}
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: transparent !important; color: #fff !important;
}
.btn-outline-secondary {
    color: #475569 !important; border-color: #cbd5e1 !important; background: #fff !important;
}

/* BOOK CARDS (catalog only) */
.book-card { background: transparent !important; border: none !important; box-shadow: none !important; }
.book-card-inner {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important;
    border-radius: 1.1rem !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.book-card:hover .book-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(59, 130, 246, 0.14) !important;
}
.book-card .book-cover,
.books-grid .book-cover {
    height: 240px !important;
    margin-bottom: 0 !important;
    background: #f1f5f9 !important;
    overflow: hidden;
}
.book-card .book-cover img,
.books-grid .book-cover img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.status-badge.available { background: #10b981 !important; color: #fff !important; border-radius: 999px !important; }
.status-badge.unavailable { background: #ef4444 !important; color: #fff !important; border-radius: 999px !important; }
.book-info { padding: 1.1rem 1.25rem 0.5rem !important; background: #fff !important; }
.book-title { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; font-weight: 700 !important; }
.book-author { color: #475569 !important; -webkit-text-fill-color: #475569 !important; }
.book-meta .meta-item { color: #64748b !important; -webkit-text-fill-color: #64748b !important; }
.book-stats .stat-item {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
    color: #334155 !important; -webkit-text-fill-color: #334155 !important;
}
.book-actions { padding: 0.85rem 1.25rem 1.15rem !important; background: #fff !important; border-top: 1px solid #f1f5f9; }
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* Loan create mini covers */
.books-list .book-cover,
.selected-books-list .book-cover,
.book-item .book-cover,
.selected-book-item .book-cover {
    width: 44px !important; height: 44px !important;
    min-width: 44px !important; min-height: 44px !important; max-height: 44px !important;
    border-radius: 0.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #fff !important; font-size: 1.1rem !important; flex-shrink: 0 !important;
}
.book-item, .selected-book-item {
    display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 0.75rem;
}
.book-item .book-info, .selected-book-item .book-info {
    display: flex !important; align-items: center !important; gap: 0.85rem !important; flex: 1 !important; min-width: 0;
}
.book-item .book-title, .selected-book-item .book-title {
    margin: 0 !important; font-size: 0.9rem !important; font-weight: 600 !important;
    color: #0f172a !important; -webkit-text-fill-color: #0f172a !important;
}

.book-description, .description-text, .description-card p, .detail-section .description,
[class*="description"] p, .beskrivning-text {
    color: #334155 !important; -webkit-text-fill-color: #334155 !important;
    font-size: 0.95rem !important; line-height: 1.6 !important; font-weight: 400 !important;
}

/* MEMBERS */
.contact-info .detail-item {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 0.65rem !important;
}
.contact-info .detail-label { color: #64748b !important; -webkit-text-fill-color: #64748b !important; font-weight: 600 !important; }
.contact-info .detail-value, .contact-info a.detail-value {
    color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; font-weight: 600 !important;
}
.member-info h6 a { color: #1e40af !important; -webkit-text-fill-color: #1e40af !important; }

/* LOANS */
.loan-card, .loan-info-card, .member-info-card, .loan-detail-card { background: #ffffff !important; }
.loan-card .info-label, .loan-info-card .info-label, .detail-label, .loan-meta-label,
.info-box .label, .info-item .label {
    color: #64748b !important; -webkit-text-fill-color: #64748b !important;
    font-weight: 600 !important; font-size: 0.75rem !important;
}
.loan-card .info-value, .loan-info-card .info-value, .detail-value, .loan-meta-value,
.info-box .value, .info-item .value {
    color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; font-weight: 600 !important;
}
.loan-card .member-name, .loan-card h5, .loan-card h6, .loan-header-title {
    color: #1e293b !important; -webkit-text-fill-color: #1e293b !important; font-weight: 700 !important;
}
.loaned-books .book-title-sm, .loaned-books h6, .loaned-books .title {
    color: #1e293b !important; -webkit-text-fill-color: #1e293b !important; font-weight: 600 !important;
}
.loaned-books .copy-id, .loaned-books .text-muted, .loaned-books small {
    color: #475569 !important; -webkit-text-fill-color: #475569 !important;
}
.member-profile-name, .member-sidebar h5, .member-sidebar .name {
    color: #1e293b !important; -webkit-text-fill-color: #1e293b !important; font-weight: 700 !important;
}
.member-sidebar .email, .member-sidebar .meta-row, .member-sidebar .text-muted {
    color: #475569 !important; -webkit-text-fill-color: #475569 !important;
}
.member-sidebar .meta-row span:last-child {
    color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; font-weight: 600 !important;
}
.text-danger, .fee-amount, .overdue-days {
    color: #dc2626 !important; -webkit-text-fill-color: #dc2626 !important; font-weight: 700 !important;
}
.text-success, .fee-zero { color: #059669 !important; -webkit-text-fill-color: #059669 !important; }

kbd, .shortcuts-info kbd, .keyboard-hint kbd {
    background: #1e293b !important; color: #f8fafc !important; -webkit-text-fill-color: #f8fafc !important;
    border: 1px solid #334155 !important; border-radius: 6px !important;
    padding: 0.2rem 0.5rem !important; font-size: 0.75rem !important; font-weight: 600 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    box-shadow: 0 1px 0 #0f172a !important;
}
kbd.text-black-50 { color: #f8fafc !important; -webkit-text-fill-color: #f8fafc !important; }

/* FOOTER */
.site-footer {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #1e3a5f 100%);
    color: #e2e8f0; padding: 2.5rem 0 1.5rem; margin-top: 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
}
.footer-logo-text { font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-tagline { color: #94a3b8; font-size: 0.9rem; margin-bottom: 0.35rem; }
.footer-copy { color: #64748b; font-size: 0.8rem; margin: 0; }
.footer-heading {
    color: #f1f5f9; font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #60a5fa; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.social-btn {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(148, 163, 184, 0.12); color: #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-btn:hover { background: #3b82f6; color: #fff; transform: translateY(-2px); }
.social-btn .x-logo { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.footer-github-labels { font-size: 0.8rem; color: #64748b; }
.footer-github-labels a { color: #94a3b8; text-decoration: none; }
.footer-github-labels a:hover { color: #60a5fa; }

.brand-logo { display: inline-flex; line-height: 0; }
.brand-text { font-weight: 700; letter-spacing: 0.02em; }

.swal2-popup, .author-detail-modal {
    border-radius: 1.25rem !important; box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
}
.swal2-title { color: #0f172a !important; font-weight: 700 !important; }
.swal2-html-container { color: #334155 !important; }
.swal2-confirm {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important; border-radius: 0.55rem !important;
}
.swal2-cancel {
    background: #e2e8f0 !important; color: #334155 !important; border-radius: 0.55rem !important;
}

.quick-actions-panel, .snabb-atgarder { display: flex; flex-direction: column; gap: 1rem; }
.quick-actions-panel .action-group {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.85rem; padding: 1rem;
}
.quick-actions-panel .action-group h6 {
    color: #1e40af !important; font-weight: 700 !important; font-size: 0.75rem !important;
    letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.quick-actions-panel .btn { width: 100%; margin-bottom: 0.5rem; justify-content: center; }

/* ========== HOME BOOK CARDS (match target design) ========================= */
.home-books { padding-top: 1.25rem; padding-bottom: 2rem; }

.home-book-card {
    height: 100%;
    perspective: none !important;
}

.home-card-inner {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1.15rem !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-book-card:hover .home-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.16) !important;
}

.home-cover {
    position: relative;
    height: 220px;
    background: #e2e8f0;
    overflow: hidden;
    flex-shrink: 0;
}
.home-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}
.home-book-card:hover .home-cover-img {
    transform: scale(1.05);
}
.home-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.home-status.is-available { background: #10b981 !important; }
.home-status.is-unavailable { background: #ef4444 !important; }

.home-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

/* HIGH CONTRAST — title / author / description */
.home-title,
.home-book-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 0.35rem !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-author,
.home-book-author {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    font-style: normal !important;
    margin: 0 0 0.5rem !important;
    color: #4338ca !important;
    -webkit-text-fill-color: #4338ca !important;
}

.home-desc,
.home-book-description {
    font-size: 0.84rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 0 1rem !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.home-action-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    border: none;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-action-btn:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.4);
}
.home-action-btn i {
    transition: transform 0.2s ease;
}
.home-action-btn:hover i {
    transform: translateX(4px);
}

.home-book-content,
.home-card-info {
    background: #fff !important;
}
.home-book-content .home-book-title,
.home-card-info .home-book-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
.home-book-content .home-book-author,
.home-card-info .home-book-author {
    color: #4338ca !important;
    -webkit-text-fill-color: #4338ca !important;
}
.home-book-content .home-book-description,
.home-card-info .home-book-description {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
}

/* ========== BOOK COPIES — high contrast ================================== */
.copy-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
}
.copy-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}
.copy-item .detail-label,
.copy-details .detail-label {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
.copy-item .detail-value,
.copy-details .detail-value {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
/* Barcode: dark chip + WHITE text */
.copy-item .barcode,
.detail-value.barcode,
span.barcode {
    background: #1e293b !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 0.3rem 0.55rem !important;
    border-radius: 0.4rem !important;
    letter-spacing: 0.02em;
}
.copy-actions .text-muted,
.copy-actions .small {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    font-weight: 500 !important;
}
.copy-status.status-available {
    background: #d1fae5 !important;
    color: #065f46 !important;
    -webkit-text-fill-color: #065f46 !important;
}
.copy-status.status-on-loan {
    background: #ffedd5 !important;
    color: #9a3412 !important;
    -webkit-text-fill-color: #9a3412 !important;
}
.condition-badge {
    font-weight: 700 !important;
}
.condition-good {
    background: #fef3c7 !important;
    color: #92400e !important;
    -webkit-text-fill-color: #92400e !important;
}
.condition-excellent {
    background: #dbeafe !important;
    color: #1e40af !important;
    -webkit-text-fill-color: #1e40af !important;
}
.condition-new {
    background: #dcfce7 !important;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
}

@media (max-width: 768px) {
    .quick-stats, .kpi-row { grid-template-columns: 1fr 1fr; }
    .icon-wrapper { width: 60px !important; height: 60px !important; font-size: 1.6rem !important; }
    .books-grid, .authors-grid { grid-template-columns: 1fr; }
    .home-cover { height: 200px; }
}
