/* ========================================
   TABLE OF CONTENTS
   ========================================
   1. CSS Variables & Root
   2. Base Styles & Reset
   3. Typography
   4. Preloader
   5. Navigation
   6. Hero Section
   7. Stats Bar
   8. Categories Section
   9. Catalog Section
   10. Book Cards
   11. Featured Section
   12. Reading Progress
   13. Testimonials
   14. Newsletter
   15. About Section
   16. Footer
   17. Modals
   18. Sidebars
   19. Search Overlay
   20. Utilities & Components
   21. Animations
   22. Dark Theme
   23. Responsive Design
   ======================================== */

/* ========================================
   1. CSS Variables & Root
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-rgb: 99, 102, 241;
    
    /* Secondary Colors */
    --secondary: #ec4899;
    --secondary-light: #f472b6;
    --secondary-dark: #db2777;
    
    /* Accent Colors */
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --accent-dark: #0d9488;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-light: #ffffff;
    
    /* Border Colors */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-primary: 0 10px 40px -10px rgba(var(--primary-rgb), 0.5);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Font Families */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Merriweather', serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* ========================================
   2. Base Styles & Reset
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background-color: var(--primary);
    color: white;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ========================================
   3. Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   4. Preloader
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.book {
    --book-color: var(--primary);
    width: 60px;
    height: 45px;
    position: relative;
    margin: 0 auto 20px;
}

.book__page {
    position: absolute;
    width: 30px;
    height: 45px;
    background: var(--book-color);
    border-radius: 0 5px 5px 0;
    transform-origin: left center;
    animation: flip 1.5s infinite;
}

.book__page:nth-child(1) { animation-delay: 0s; z-index: 3; }
.book__page:nth-child(2) { animation-delay: 0.1s; z-index: 2; }
.book__page:nth-child(3) { animation-delay: 0.2s; z-index: 1; }

@keyframes flip {
    0%, 40% { transform: rotateY(0); }
    60%, 100% { transform: rotateY(-180deg); }
}

.loader-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   5. Navigation
   ======================================== */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-text .text-primary,
.logo-text span {
    color: var(--primary);
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.1);
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-actions {
    gap: 0.5rem;
}

.btn-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-icon i {
    font-size: 1.2rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   6. Hero Section
   ======================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
    min-height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-books {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-book {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.float-book:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.float-book:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.float-book:nth-child(3) { top: 60%; left: 8%; animation-delay: 2s; }
.float-book:nth-child(4) { top: 70%; right: 15%; animation-delay: 3s; }
.float-book:nth-child(5) { top: 40%; right: 5%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.book-showcase {
    position: relative;
}

.book-3d {
    perspective: 1000px;
}

.book-cover {
    width: 280px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg);
    box-shadow: var(--shadow-2xl);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.book-cover:hover {
    transform: rotateY(0deg);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 200px;
}

.book-info-card .badge {
    font-size: var(--text-xs);
    margin-bottom: 0.5rem;
}

.book-info-card h4 {
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.book-info-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.progress-bar-custom {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: var(--radius-full);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ========================================
   7. Stats Bar
   ======================================== */
.stats-bar {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card i {
    font-size: 2.5rem;
    color: white;
}

.stat-card .number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: white;
}

.stat-card .label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   8. Categories Section
   ======================================== */
.categories-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-name {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ========================================
   9. Catalog Section
   ======================================== */
.catalog-section {
    padding: 5rem 0;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-group .form-select {
    min-width: 150px;
    border-color: var(--border-color);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.results-count {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
}

.filter-tag button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    font-size: 10px;
}

/* ========================================
   10. Book Cards
   ======================================== */
.books-container {
    margin-bottom: 3rem;
}

.books-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.books-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.book-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.book-cover-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.book-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-cover-wrapper img {
    transform: scale(1.05);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-actions {
    display: flex;
    gap: 0.5rem;
}

.book-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: var(--text-sm);
}

.book-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-badges .badge {
    font-size: var(--text-xs);
    padding: 0.375rem 0.625rem;
}

.book-quick-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.book-card:hover .book-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.book-quick-actions button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    color: var(--text-secondary);
    transition: var(--transition);
}

.book-quick-actions button:hover {
    background: var(--primary);
    color: white;
}

.book-quick-actions button.active {
    background: var(--danger);
    color: white;
}

.book-info {
    padding: 1.25rem;
}

.book-category {
    display: inline-block;
    font-size: var(--text-xs);
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.book-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--text-sm);
}

.book-rating i {
    color: var(--warning);
}

.book-rating span {
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* List View Styles */
.books-container.list-view .book-card {
    display: flex;
    flex-direction: row;
}

.books-container.list-view .book-cover-wrapper {
    width: 120px;
    min-width: 120px;
    aspect-ratio: auto;
    height: 180px;
}

.books-container.list-view .book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.books-container.list-view .book-overlay {
    display: none;
}

/* Load More */
.load-more-container {
    text-align: center;
}

/* ========================================
   11. Featured Section
   ======================================== */
.featured-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.featured-slider {
    position: relative;
    padding: 0 50px;
}

.featured-swiper {
    padding: 2rem 0;
}

.swiper-slide {
    height: auto;
}

.featured-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.featured-cover {
    position: relative;
    aspect-ratio: 3/4;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    padding: 1.5rem;
}

.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.swiper-pagination-bullet {
    background: var(--primary);
}

/* ========================================
   12. Reading Progress Section
   ======================================== */
.reading-progress-section {
    padding: 5rem 0;
}

.progress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.progress-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.progress-card:hover {
    box-shadow: var(--shadow-lg);
}

.progress-card-cover {
    width: 80px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.progress-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-card-info {
    flex: 1;
}

.progress-card-info h5 {
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.progress-card-info p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.progress-bar-wrapper {
    margin-bottom: 0.5rem;
}

.progress-bar-wrapper .progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
}

.progress-bar-wrapper .progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ========================================
   13. Testimonials Section
   ======================================== */
.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--warning);
}

.testimonial-text {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-author h5 {
    font-size: var(--text-base);
    margin-bottom: 0.125rem;
}

.testimonial-author span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ========================================
   14. Newsletter Section
   ======================================== */
.newsletter-section {
    padding: 5rem 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 3rem;
    border-radius: var(--radius-2xl);
    color: white;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form .form-control {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
}

.newsletter-form .form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

/* ========================================
   15. About Section
   ======================================== */
.about-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.about-image {
    position: relative;
}

.image-stack {
    position: relative;
    padding: 2rem;
}

.stack-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.stack-item:first-child {
    width: 80%;
}

.stack-item:last-child {
    position: absolute;
    width: 60%;
    bottom: 0;
    right: 0;
    border: 5px solid var(--bg-secondary);
}

.experience-badge {
    position: absolute;
    top: 20%;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
}

.experience-badge .text {
    font-size: var(--text-sm);
}

.about-content .lead {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    color: var(--success);
    font-size: 1.25rem;
}

/* ========================================
   16. Footer
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
}

.footer-top {
    padding: 4rem 0;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-brand .logo-text span {
    color: var(--primary-light);
}

.footer-brand p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h5 {
    color: white;
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info i {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    margin: 0;
    font-size: var(--text-sm);
}

/* ========================================
   17. Modals
   ======================================== */
.book-modal .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.book-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background-color: var(--bg-card);
    opacity: 1;
    padding: 0.75rem;
    border-radius: var(--radius-full);
}

.book-modal .modal-body {
    padding: 2rem;
}

.book-modal-cover {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.book-modal-cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.book-modal-info .book-category {
    margin-bottom: 0.5rem;
}

.book-modal-info h2 {
    font-size: var(--text-2xl);
    margin-bottom: 0.5rem;
}

.book-modal-info .book-author {
    font-size: var(--text-base);
    margin-bottom: 1rem;
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary);
}

.book-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.book-tags .tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.book-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Reader Modal */
.reader-modal .modal-content {
    background: var(--bg-primary);
    border: none;
}

.reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.reader-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reader-title h5 {
    margin: 0;
    font-size: var(--text-base);
}

.reader-controls {
    display: flex;
    gap: 0.5rem;
}

.reader-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.reader-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.reader-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.reader-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.reader-progress .form-range {
    flex: 1;
}

.reader-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   18. Sidebars
   ======================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-modal-backdrop);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.favorites-sidebar,
.reading-list-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: var(--bg-card);
    box-shadow: var(--shadow-2xl);
    transition: var(--transition);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
}

.favorites-sidebar.active,
.reading-list-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: var(--text-lg);
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar-book-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.sidebar-book-item:hover {
    background: var(--bg-tertiary);
}

.sidebar-book-item img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.sidebar-book-info {
    flex: 1;
}

.sidebar-book-info h6 {
    font-size: var(--text-sm);
    margin-bottom: 0.25rem;
}

.sidebar-book-info p {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sidebar-book-info .btn {
    padding: 0.25rem 0.5rem;
    font-size: var(--text-xs);
}

/* ========================================
   19. Search Overlay
   ======================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.search-close:hover {
    background: white;
    color: var(--gray-900);
}

.search-content {
    width: 100%;
    max-width: 700px;
    padding: 0 1.5rem;
}

.search-content h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.25rem;
}

.search-box input {
    width: 100%;
    padding: 1.25rem 4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-lg);
    transition: var(--transition);
}

.search-box input::placeholder {
    color: var(--gray-500);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.search-voice {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-full);
    color: white;
    transition: var(--transition);
}

.search-voice:hover {
    background: var(--primary-light);
}

.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-filters .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
}

.search-filters .form-select option {
    color: var(--text-primary);
}

.search-results {
    max-height: 50vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-info h5 {
    color: white;
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.search-result-info p {
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.search-suggestions {
    text-align: center;
}

.search-suggestions h5 {
    color: var(--gray-400);
    font-size: var(--text-sm);
    margin-bottom: 1rem;
}

.suggestion-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tags .tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-tags .tag:hover {
    background: var(--primary);
}

/* ========================================
   20. Utilities & Components
   ======================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Toast */
.toast {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Badge */
.badge {
    font-weight: 500;
}

/* ========================================
   21. Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   22. Dark Theme
   ======================================== */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: #334155;
    --border-light: #1e293b;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .logo-text {
    color: white;
}

[data-theme="dark"] #themeToggle i::before {
    content: "\F5A2"; /* Sun icon */
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .book-cover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--gray-600);
}

/* ========================================
   23. Responsive Design
   ======================================== */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .book-cover {
        width: 240px;
        height: 340px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .nav-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-left {
        width: 100%;
    }
    
    .filter-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: var(--text-2xl);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .books-container.grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .newsletter-card {
        padding: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        padding: 3rem 0;
    }
    
    .featured-slider {
        padding: 0;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .books-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group .form-select {
        width: 100%;
    }
    
    .book-modal .modal-body {
        padding: 1rem;
    }
    
    .book-modal .row {
        flex-direction: column;
    }
    
    .book-modal-cover {
        max-width: 200px;
        margin: 0 auto 1.5rem;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .favorites-sidebar,
    .reading-list-sidebar {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .back-to-top,
    .search-overlay,
    .favorites-sidebar,
    .reading-list-sidebar,
    .toast-container {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .book-card {
        break-inside: avoid;
    }
}
.book-card-3d {
    perspective: 1000px;
}

.book-card-3d .book-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.book-card-3d:hover .book-inner {
    transform: rotateY(180deg);
}

.book-card-3d .book-front,
.book-card-3d .book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
}

.book-card-3d .book-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton-img {
    width: 100%;
    height: 250px;
}

.skeleton-text {
    height: 20px;
    margin-top: 10px;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.quick-preview {
    position: absolute;
    width: 350px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.quick-preview img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
}

.quick-preview .description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.highlight-menu {
    position: absolute;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
    z-index: 9999;
}

.highlight-menu button {
    padding: 0.5rem;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.highlight-yellow { background: rgba(255, 235, 59, 0.4); }
.highlight-green { background: rgba(76, 175, 80, 0.4); }
.highlight-blue { background: rgba(33, 150, 243, 0.4); }
.highlight-pink { background: rgba(233, 30, 99, 0.4); }

.achievement-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    display: flex;
    gap: 1rem;
    z-index: 9999;
    transition: right 0.5s ease;
}

.achievement-notification.show {
    right: 20px;
}

.achievement-icon {
    font-size: 3rem;
}

.achievement-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.achievement-card.earned {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 179, 71, 0.2));
    border: 2px solid gold;
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-card .icon {
    font-size: 3rem;
}