        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --success-color: #27ae60;
            --warning-color: #f39c12;
            --text-dark: #2c3e50;
            --text-light: #ffffff;
            --bg-light: #f8f9fa;
            --shadow: 0 2px 10px rgba(0,0,0,0.1);
            --transition: all 0.3s ease;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-light);
        }

        /* Update the .header class with smooth transition */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: var(--text-light);
            box-shadow: var(--shadow);
            z-index: 1000;
            max-width: 1200px;
            margin: 0 auto;
            transition: transform 0.3s ease-in-out; /* Add smooth transition */
            transform: translateY(0); /* Initial position */
        }
        .header_container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.5rem;
            gap: 1rem;
        }
        
        /* Preloader style */
        #pagePreloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.6s ease;
        }

        .spinner {
            width: 80px;
            height: 80px;
            position: relative;
        }

        .book {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: bookFlip 2s infinite linear;
        }

        .page {
            position: absolute;
            width: 40px;
            height: 60px;
            background: linear-gradient(90deg, #f5f5f5 0%, #e0e0e0 100%);
            border-radius: 4px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .page:nth-child(1) { transform: rotateY(0deg) translateZ(20px); }
        .page:nth-child(2) { transform: rotateY(60deg) translateZ(20px); }
        .page:nth-child(3) { transform: rotateY(120deg) translateZ(20px); }
        .page:nth-child(4) { transform: rotateY(180deg) translateZ(20px); }
        .page:nth-child(5) { transform: rotateY(240deg) translateZ(20px); }
        .page:nth-child(6) { transform: rotateY(300deg) translateZ(20px); }

        @keyframes bookFlip {
            0% { transform: rotateY(0deg); }
            100% { transform: rotateY(360deg); }
        }

        .loader-text {
            margin-top: 30px;
            font-family: 'Georgia', serif;
            font-size: 1.5rem;
            color: #333;
            letter-spacing: 2px;
        }

        .loader-text::after {
            content: '...';
            animation: dots 1.5s infinite;
        }

        @keyframes dots {
            0%, 20% { content: '.'; }
            40% { content: '..'; }
            60%, 100% { content: '...'; }
        }

        /* Fade out class */
        .fade-out {
            opacity: 0;
            pointer-events: none;
        }
        
        .left_section {
            display: flex;
            align-items: center;
            gap: 0;
        }
        .menu_btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }
        .menu_btn:hover {
            transform: scale(1.1);
        }
        .icon_wrapper {
            width: 28px;
            height: 28px;
            position: relative;
        }
        .book_icon {
            width: 100%;
            height: 100%;
            position: absolute;
            transition: all 0.4s ease;
            opacity: 1;
            transform: rotate(0deg);
        }
        .menu_btn.active .book_icon {
            opacity: 0;
            transform: rotate(180deg);
        }
        .book_icon .book_cover {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            border-radius: 2px;
            position: relative;
            box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
        }
        .book_icon .book_cover::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--primary-color);
        }
        .book_icon .book_pages {
            position: absolute;
            right: 2px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 20px;
        }
        .book_icon .book_pages span {
            position: absolute;
            width: 100%;
            height: 2px;
            background: rgba(255,255,255,0.7);
            left: 0;
        }
        .book_icon .book_pages span:nth-child(1) { top: 6px; }
        .book_icon .book_pages span:nth-child(2) { top: 10px; }
        .book_icon .book_pages span:nth-child(3) { top: 14px; }
        .cross_icon {
            width: 100%;
            height: 100%;
            position: absolute;
            opacity: 0;
            transform: rotate(-180deg);
            transition: all 0.4s ease;
        }
        .menu_btn.active .cross_icon {
            opacity: 1;
            transform: rotate(0deg);
        }
        .cross_icon::before,
        .cross_icon::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 3px;
            background: linear-gradient(135deg, var(--accent-color), #c0392b);
            border-radius: 2px;
            top: 50%;
            left: 0;
        }
        .cross_icon::before {
            transform: translateY(-50%) rotate(45deg);
        }
        .cross_icon::after {
            transform: translateY(-50%) rotate(-45deg);
        }
        .logo_text {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            letter-spacing: 0.5px;
            margin-left: 0;
        }
        .last_part {
            position: relative;
        }
        /* Updated styles for last_part icons */
        .icons {
            display: flex;
            align-items: center;
            gap: 1.5rem; /* Increased from 1.2rem */
        }
        
        .icons > * {
            font-size: 1.3rem; /* Increased from 1.2rem */
            color: var(--text-dark);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }
        
        /* Make search icon specifically slightly larger */
        .fa-magnifying-glass {
            font-size: 1.35rem; /* Slightly larger than other icons */
        }
        
        .icons > *:hover {
            color: var(--secondary-color);
            transform: scale(1.1);
        }
        

        .user_avatar_circle {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid var(--secondary-color);
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-light);
        }
        .user_avatar_circle:hover {
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
        }
        .user_avatar_circle img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .user_avatar_circle i {
            font-size: 1.1rem;
            color: var(--text-dark);
        }
        .notification_badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ef4444;
            color: white;
            font-size: 10px;
            font-weight: bold;
            min-width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 6px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.8; }
        }
        .fa-shopping-cart {
            color: var(--text-dark);
        }
        .quantity {
            position: absolute;
            top: -8px;
            right: -10px;
            background: var(--accent-color);
            color: white;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 18px;
            text-align: center;
        }
        .header_acc_box {
            position: absolute;
            top: calc(100% + 15px);
            right: 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            padding: 1.5rem;
            min-width: 300px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
        }
        .header_acc_box.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .header_acc_box::before {
            content: '';
            position: absolute;
            top: -8px;
            right: 20px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid white;
        }
        .account_balance {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            color: white;
            padding: 0.8rem 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
        }
        .balance_info {
            flex: 1;
        }
        .balance_header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            margin-bottom: 0.3rem;
            opacity: 0.9;
        }
        .low_balance_dot {
            width: 8px;
            height: 8px;
            background: var(--accent-color);
            border-radius: 50%;
            animation: pulse 1.5s infinite;
            display: none;
        }
        .low_balance_dot.show {
            display: block;
        }
        .account_balance .balance {
            font-size: 1.5rem;
            font-weight: 700;
        }
        .add_balance_btn {
            background: rgba(255,255,255,0.2);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            color: white;
        }
        .add_balance_btn:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.1);
        }
        .user_info_row {
            margin: 0.8rem 0;
            color: var(--text-dark);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }
        .user_info_row .info_label {
            font-weight: 600;
            color: var(--text-dark);
        }
        .user_info_row .info_value {
            flex: 1;
            color: var(--secondary-color);
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .user_info_row .info_value.empty {
            color: #95a5a6;
            font-style: italic;
        }
        .action_icons {
            display: flex;
            gap: 0.3rem;
        }
        .icon_btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.75rem;
            text-decoration: none;
        }
        .icon_btn.add {
            background: var(--success-color);
            color: white;
        }
        .icon_btn.add:hover {
            background: #229954;
            transform: scale(1.1);
        }
        .icon_btn.verify {
            background: var(--warning-color);
            color: white;
        }
        .icon_btn.verify:hover {
            background: #e67e22;
            transform: scale(1.1);
        }
        .header_acc_box .btn {
            display: block;
            width: 100%;
            padding: 0.7rem;
            margin: 0.5rem 0;
            text-align: center;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            transition: var(--transition);
        }
        .btn-primary {
            background: var(--secondary-color);
            color: white;
        }
        .btn-primary:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }
        .btn-reading {
            background: #27ae60;
            color: white;
        }
        .btn-reading:hover {
            background: #229954;
            transform: translateY(-2px);
        }
        .btn-danger {
            background: var(--accent-color);
            color: white;
        }
        .btn-danger:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }
        .sidebar {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100vh;
            background: white;
            box-shadow: 2px 0 20px rgba(0,0,0,0.1);
            transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 1001;
            overflow-y: auto;
        }
        .sidebar.active {
            left: 0;
        }
        .sidebar_header {
            padding: 1.5rem;
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .sidebar_header h2 {
            font-size: 1.5rem;
            font-weight: 700;
        }
        .close_sidebar_btn {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }
        .close_sidebar_btn:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }
        .close_sidebar_btn i {
            font-size: 1.2rem;
        }
        .sidebar_menu {
            padding: 1rem 0;
        }
        .sidebar_menu a {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition);
            font-weight: 500;
        }
        .sidebar_menu a:hover {
            background: var(--bg-light);
            color: var(--secondary-color);
            padding-left: 2rem;
        }
        .sidebar_menu a i {
            width: 20px;
            font-size: 1.1rem;
        }
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
        }
        .overlay.active {
            opacity: 1;
            visibility: visible;
        }
        #user_menu_btn {
            display: none;
        }
        
        /* Empty Cart Message Styles */
        .empty_cart_message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            text-align: center;
            z-index: 10001;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            max-width: 400px;
            width: 90%;
        }
        .empty_cart_message.show {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }
        .empty_cart_message i {
            font-size: 4rem;
            color: var(--accent-color);
            margin-bottom: 1rem;
        }
        .empty_cart_message h3 {
            color: var(--text-dark);
            margin-bottom: 0.5rem;
            font-size: 1.5rem;
        }
        .empty_cart_message p {
            color: #7f8c8d;
            margin-bottom: 1.5rem;
        }
        .empty_cart_message .btn {
            display: inline-block;
            padding: 0.7rem 2rem;
            background: var(--secondary-color);
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            transition: var(--transition);
        }
        .empty_cart_message .btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }
        
        @media (max-width: 768px) {
            .header_container {
                padding: 1rem;
            }
            .logo_text {
                font-size: 1.2rem;
            }
            .icons {
                gap: 1rem; /* Increased from 0.8rem */
            }
            
            .icons > * {
                font-size: 1.15rem; /* Increased from 1.1rem */
            }
            
            .fa-magnifying-glass {
                font-size: 1.4rem;
            }
            #user_menu_btn {
                display: block;
            }
            .header_acc_box {
                min-width: 280px;
                right: -10px;
            }
            .sidebar {
                width: 280px;
                left: -280px;
            }
        }
        @media (max-width: 480px) {
            .logo_text {
                font-size: 1.1rem;
            }
            .icons {
                gap: 0.8rem; /* Increased from 0.6rem */
            }
            
            .icons > * {
                font-size: 1.1rem; /* Increased from 1rem */
            }
            
            .fa-magnifying-glass {
                font-size: 1.3rem;
            }
            .header_acc_box {
                min-width: 260px;
                padding: 1rem;
            }
            .sidebar {
                width: 260px;
                left: -260px;
            }
            .user_avatar_circle {
                width: 30px;
                height: 30px;
            }
        }
        .content_spacer {
            height: 70px;
        }
        










        /* Backdrop for search and notification overlays */
        .overlay_backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }
        
        .overlay_backdrop.active {
            opacity: ০;
            visibility: visible;
        }
        
        /* Search Page Overlay */
        .search_overlay {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            max-width: 1200px;
            height: 100%;
            background: #fff;
            z-index: 9999;
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            margin: 0 auto;
            left: 50%;
            margin-left: -600px; /* Half of max-width */
        }
        
        .search_overlay.active {
            transform: translateX(0);
        }
        
        .search_overlay iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        /* Close button for search overlay */
        .search_close_btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.1);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            transition: all 0.3s ease;
        }
        
        .search_close_btn:hover {
            background: rgba(0, 0, 0, 0.2);
            transform: rotate(90deg);
        }
        
        .search_close_btn i {
            font-size: 20px;
            color: #333;
        }
        
        /* Notification Page Overlay */
        .notification_overlay {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            max-width: 1200px;
            height: 100%;
            background: #fff;
            z-index: 9999;
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            margin: 0 auto;
            left: 50%;
            margin-left: -600px; /* Half of max-width */
        }
        
        .notification_overlay.active {
            transform: translateX(0);
        }
        
        .notification_overlay iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        /* Close button for notification overlay */
        .notification_close_btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.1);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            transition: all 0.3s ease;
        }
        
        .notification_close_btn:hover {
            background: rgba(0, 0, 0, 0.2);
            transform: rotate(90deg);
        }
        
        .notification_close_btn i {
            font-size: 20px;
            color: #333;
        }
        
        /* Responsive adjustments */
        @media (max-width: 1200px) {
            .search_overlay,
            .notification_overlay {
                left: 0;
                margin-left: 0;
                max-width: 100%;
            }
        }