/* --- CSS Reset & Variables --- */
        :root {
            --primary: #2563eb; --primary-hover: #1d4ed8; --secondary: #1e40af;
            --bg-color: #f4f6f9; --text-dark: #1f2937; --text-light: #6b7280;
            --header-bg: #ffffff; --bundle-color: #f59e0b; --border-radius: 8px; --success: #84cc16;
            --admin-bg: #0f172a;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
        body { background-color: var(--bg-color); color: var(--text-dark); overflow-x: hidden; }

        html { overflow-y: auto; scrollbar-gutter: stable; }

        ::-webkit-scrollbar { width: 10px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        /* --- UNIVERSAL CUSTOM MODAL STYLES --- */
        .universal-modal-overlay {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
            display: none; justify-content: center; align-items: center;
            z-index: 300; transition: opacity 0.2s ease;
        }
        .universal-modal-overlay.active { display: flex; }
        .universal-modal-card {
            background: white; border-radius: var(--border-radius); width: 90%; max-width: 450px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2); overflow: hidden; animation: modalPop 0.2s ease;
        }
        @keyframes modalPop {
            from { transform: scale(0.95); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .universal-modal-header {
            padding: 18px 24px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
            display: flex; justify-content: space-between; align-items: center;
        }
        .universal-modal-header h3 { font-size: 18px; color: var(--text-dark); margin: 0; display: flex; align-items: center; gap: 10px; }
        .u-modal-close-btn { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-light); }
        .universal-modal-body { padding: 24px; font-size: 15px; color: #334155; line-height: 1.5; }
        .universal-modal-footer {
            padding: 16px 24px; background: #f8fafc; border-top: 1px solid #e2e8f0;
            display: flex; justify-content: flex-end; gap: 10px;
        }

/* --- Top Navigation Header --- */
header {
    background-color: var(--header-bg); padding: 0 30px; display: flex; justify-content: space-between;
    align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: 70px;
}
        .logo { font-size: 24px; font-weight: bold; color: var(--primary); display: flex; align-items: center; gap: 10px; cursor: pointer; }
        
        .nav-menu { display: flex; list-style: none; height: 100%; align-items: center; margin: 0 auto; padding-left: 10px; }
        .nav-menu > li { position: relative; height: 100%; display: flex; align-items: center; margin: 0 10px; }

        .nav-menu a, .nav-menu .drop-btn {
            text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 16px;
            cursor: pointer; background: none; border: none; display: flex; align-items: center; gap: 5px; transition: color 0.2s;
            white-space: nowrap; /* 🟢 Keeps "Book Store" on 1 single line! */
        }

        .nav-menu a:hover, .nav-menu .drop-btn:hover, .nav-menu a.active { color: var(--primary); }

        /* Dropdowns */
        .dropdown-content {
            display: none; position: absolute; top: 70px; left: 0; background-color: white;
            min-width: 250px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 0 0 var(--border-radius) var(--border-radius);
            overflow: hidden; z-index: 100; flex-direction: column; max-height: 400px; overflow-y: auto;
        }

        /* 🟢 Desktop only: hover to open dropdowns */
        @media (min-width: 1025px) {
            .nav-menu li:hover .dropdown-content { 
                display: flex; 
            }
        }
        .dropdown-content a { padding: 12px 20px; text-decoration: none; display: block; color: var(--text-dark); font-weight: 500; border-bottom: 1px solid #f1f1f1; }
        .dropdown-content a:hover { background-color: #f8fafc; color: var(--primary); padding-left: 25px; transition: 0.3s; }
        .dropdown-content a.active { background-color: #eff6ff; color: var(--primary); font-weight: bold; border-left: 4px solid var(--primary); padding-left: 20px; }
        .dropdown-content .category-label { background: #f1f5f9; padding: 8px 20px; font-size: 12px; color: var(--text-light); font-weight: bold; text-transform: uppercase; }

        .nav-actions { display: flex; align-items: center; gap: 15px; }
        .icon-btn { background: none; border: none; color: var(--text-dark); cursor: pointer; transition: color 0.2s; font-size: 20px; }
        .icon-btn:hover { color: var(--primary); }
        .cart-btn {
            background-color: var(--primary); color: white; border: none; padding: 10px 20px; 
            border-radius: 20px; cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 8px; transition: background 0.2s;
        }
        .cart-btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); }

        .user-nav-btn {
            display: flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 6px 14px;
            border-radius: 20px; font-weight: 600; font-size: 14px; color: var(--text-dark); border: none; cursor: pointer;
        }
        .user-nav-btn:hover { background: #e2e8f0; }

        /* --- Admin Sidebar & Overlay --- */
        #admin-sidebar {
            position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
            background-color: var(--admin-bg); color: white;
            transition: right 0.3s ease-in-out; z-index: 200; box-shadow: -2px 0 10px rgba(0,0,0,0.5);
            display: flex; flex-direction: column;
        }
        #admin-sidebar.active { right: 0; }
        .admin-sb-header { padding: 25px; border-bottom: 1px solid #334155; display: flex; justify-content: space-between; align-items: center; }
        .admin-sb-header h2 { margin: 0; font-size: 20px; color: #38bdf8; }
        .admin-sb-header button { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }
        .admin-sb-links { padding: 20px 0; flex-grow: 1; }
        .admin-sb-links button {
            width: 100%; text-align: left; background: none; border: none; color: #cbd5e1;
            padding: 15px 25px; font-size: 16px; cursor: pointer; transition: 0.2s; display: flex; gap: 10px; align-items: center;
        }
        .admin-sb-links button:hover, .admin-sb-links button.active { background-color: #1e293b; color: #38bdf8; border-left: 4px solid #38bdf8; }
        
        #admin-overlay, #modal-overlay {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.5); display: none; z-index: 150;
        }
        #admin-overlay.active, #modal-overlay.active { display: block; }

        /* --- AUTH MODAL STYLES --- */
        .auth-modal {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
            background: white; border-radius: var(--border-radius); padding: 35px; width: 90%; max-width: 420px;
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); z-index: 200; display: none;
        }
        .auth-modal.active { display: block; }
        .auth-tabs { display: flex; border-bottom: 2px solid #f1f5f9; margin-bottom: 25px; }
        .auth-tab { flex: 1; text-align: center; padding: 10px; font-weight: bold; cursor: pointer; color: var(--text-light); }
        .auth-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
        
        .btn-google {
            background-color: #ffffff; color: #374151; border: 1px solid #d1d5db; padding: 12px;
            border-radius: 6px; font-weight: 600; cursor: pointer; width: 100%; display: flex; align-items: center;
            justify-content: center; gap: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-bottom: 20px; transition: background 0.2s;
        }
        .btn-google:hover { background-color: #f9fafb; }

        /* --- Main Layout & Views --- */
        .view-section { display: none; padding: 40px 20px; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 70px); padding-top: 90px; }
        .view-section.active { display: block; }
        .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
        .page-title { font-size: 28px; color: var(--text-dark); }

        /* --- HOME PAGE STYLES --- */
        .hero-slider-container {
            position: relative; width: 100%; height: 380px; border-radius: var(--border-radius);
            overflow: hidden; margin-bottom: 40px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        .slide {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out;
            background-size: cover; background-position: center; display: flex; align-items: center; padding: 0 60px;
        }
        .slide.active { opacity: 1; }
        .slide-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(90deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.3) 100%);
        }
        .slide-content { position: relative; z-index: 10; max-width: 600px; color: white; }
        .slide-content h1 { font-size: 38px; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
        .slide-content p { font-size: 18px; margin-bottom: 25px; color: #cbd5e1; }
        .btn-cta {
            display: inline-block; background: var(--primary); color: white; padding: 14px 28px;
            font-size: 16px; font-weight: bold; border-radius: 30px; text-decoration: none; border: none; cursor: pointer;
            transition: all 0.3s; box-shadow: 0 4px 12px rgba(37,99,235,0.4);
        }
        .btn-cta:hover { background: var(--primary-hover); transform: translateY(-3px); }

        .slider-controls { position: absolute; bottom: 20px; right: 40px; display: flex; gap: 10px; z-index: 10; }
        .slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
        .slider-dot.active { background: white; width: 30px; border-radius: 10px; }

        .section-heading { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); display: flex; align-items: center; justify-content: space-between; }
        .quick-cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 50px; }
        .quick-cat-card {
            background: white; border-radius: var(--border-radius); padding: 25px 20px; text-align: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: all 0.3s; cursor: pointer; border: 1px solid #e2e8f0;
        }
        .quick-cat-card:hover { transform: translateY(-8px); box-shadow: 0 12px 20px rgba(37,99,235,0.12); border-color: var(--primary); }
        .quick-cat-icon { width: 60px; height: 60px; border-radius: 50%; background: #eff6ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 15px; }

        .about-section {
            background: white; border-radius: var(--border-radius); padding: 50px; margin-bottom: 50px;
            display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .about-text h2 { font-size: 32px; margin-bottom: 15px; color: var(--text-dark); }
        .about-text p { font-size: 16px; color: var(--text-light); line-height: 1.7; margin-bottom: 25px; }
        .about-stats { display: flex; gap: 30px; }
        .stat-item h3 { font-size: 28px; font-weight: 800; color: var(--primary); }

        .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 50px; }
        .testimonial-card {
            background: white; padding: 25px; border-radius: var(--border-radius);
            box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
        }
        .stars { color: #f59e0b; margin-bottom: 12px; font-size: 14px; }
        .user-info { display: flex; align-items: center; gap: 12px; margin-top: 10px;}
        .user-avatar { width: 45px; height: 45px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--primary); }

        .trust-bar {
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
            gap: 40px; /* Increased gap from 20px to spread items out more */
            background: #0f172a; 
            color: white; 
            padding: 40px 50px; /* Increased outer padding for a wider frame */
            border-radius: var(--border-radius); 
            text-align: center;
        }
        .trust-item {
            padding: 0 15px; /* Adds invisible bumpers so text never hits the sides */
        }
        .trust-item i { font-size: 28px; color: #38bdf8; margin-bottom: 10px; }

        /* --- USER PROFILE DASHBOARD STYLES --- */
        .profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
        .profile-card { background: white; border-radius: var(--border-radius); padding: 30px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); height: fit-content; }
        .profile-avatar-large { width: 90px; height: 90px; border-radius: 50%; background: #eff6ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 15px; font-weight: bold; border: 3px solid var(--primary); }
        .profile-tabs { background: white; border-radius: var(--border-radius); padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        .profile-nav { display: flex; gap: 10px; border-bottom: 2px solid #f1f5f9; margin-bottom: 25px; }
        .profile-nav-btn { padding: 12px 20px; font-weight: bold; background: none; border: none; cursor: pointer; color: var(--text-light); }
        .profile-nav-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }

        .download-item-card {
            display: flex; align-items: center; justify-content: space-between; background: #f8fafc;
            border: 1px solid #e2e8f0; border-radius: var(--border-radius); padding: 15px 20px; margin-bottom: 15px;
        }
        .download-item-card img { width: 50px; height: 75px; object-fit: cover; border-radius: 4px; margin-right: 15px; }

        /* --- Forms & Buttons --- */
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: var(--text-dark); }
        .form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 14px; background: #f9fafb; }

        /* --- Password Wrapper & Toggle Eye Icon --- */
        .password-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        .password-wrapper input {
            padding-right: 40px !important;
        }
        .password-toggle-icon {
            position: absolute;
            right: 12px;
            color: var(--text-light);
            cursor: pointer;
            font-size: 16px;
            user-select: none;
            transition: color 0.2s;
        }
        .password-toggle-icon:hover {
            color: var(--primary);
        }
        .btn-submit { background-color: var(--primary); color: white; padding: 12px; border: none; border-radius: 4px; font-size: 15px; font-weight: bold; cursor: pointer; width: 100%; margin-bottom: 10px; }
        .btn-danger { background-color: #ef4444; color: white; padding: 12px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }

        /* --- Storefront Grid --- */
        .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
        .card { background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.06); transition: all 0.2s; display: flex; flex-direction: column; position: relative; border: 1px solid #e5e7eb; cursor: pointer; }
        .card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-color: var(--primary); }
        .book-cover-wrapper { width: 100%; aspect-ratio: 2 / 3; background-color: #e2e8f0; position: relative; overflow: hidden; }
        .book-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; }
        .card-content { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
        .card-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; color: #111827; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 34px; word-break: break-word; }
        .card-meta { font-size: 11px; color: var(--text-light); margin-bottom: 8px; display: flex; justify-content: space-between; }
        .card-price { color: var(--primary); font-size: 18px; font-weight: 800; margin-bottom: 12px; margin-top: auto; }
        .add-to-cart { width: 100%; padding: 8px; background-color: var(--text-dark); color: white; font-weight: bold; font-size: 13px; border: none; border-radius: 4px; cursor: pointer; }
        .badge-bundle { position: absolute; top: 8px; right: 8px; background: var(--bundle-color); color: white; padding: 4px 8px; border-radius: 12px; font-size: 10px; font-weight: bold; z-index: 10; }

        /* --- Admin Layout Grid --- */
        .admin-panel { background: white; padding: 30px; border-radius: var(--border-radius); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        .admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
        .admin-books-list .admin-book-item { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #eee; align-items: center; }

        .category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .category-box { background: #f8fafc; border: 1px solid #e2e8f0; padding: 20px; border-radius: var(--border-radius); }
        .cat-item { display: flex; justify-content: space-between; background: white; padding: 10px; margin-bottom: 5px; border-radius: 4px; border: 1px solid #e2e8f0; align-items: center; font-size: 14px; }
        
        .data-table { width: 100%; border-collapse: collapse; }
        .data-table th, .data-table td { text-align: left; padding: 12px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
        .data-table th { background-color: #f8fafc; font-weight: bold; }

        .cart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
        .cart-items { background: white; border-radius: var(--border-radius); padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        .checkout-container { background: white; padding: 30px; border-radius: var(--border-radius); box-shadow: 0 4px 10px rgba(0,0,0,0.05); height: fit-content; position: sticky; top: 100px; }
        
        .product-detail-container { display: grid; grid-template-columns: 300px 1fr 350px; gap: 40px; background: white; padding: 40px; border-radius: var(--border-radius); }
        .pd-image img { width: 100%; border-radius: var(--border-radius); }
        .pd-checkout-box { background: #f8fafc; padding: 30px; text-align: center; border-radius: 8px; border: 1px solid #e2e8f0; }
        .qty-controls { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; gap: 10px; }

        /* --- Related Books Horizontal Carousel & Arrows --- */
        .related-slider-container {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 10px 35px 20px 35px; /* Added 35px left and right padding to make space for the arrows */
            scrollbar-width: none;
        }
        .related-slider-container::-webkit-scrollbar {
            display: none;
        }
        .related-slider-container .card {
            min-width: 170px;
            max-width: 170px;
            flex-shrink: 0;
        }

        .carousel-arrow-btn {
            background: white;
            border: 1px solid #cbd5e1;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-dark);
            box-shadow: 0 2px 5px rgba(0,0,0,0.08);
            transition: all 0.2s;
        }
        .carousel-arrow-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .carousel-arrow-btn.arrow-left {
            position: absolute;
            left: -5px;
            top: 45%;
            transform: translateY(-50%);
            z-index: 10;
        }

        /* Position Right Arrow inside the new right space */
        .carousel-arrow-btn.arrow-right {
            position: absolute;
            right: -5px;
            top: 45%;
            transform: translateY(-50%);
            z-index: 10;
        }

        /* --- Header Search Box --- */
        .search-box {
            position: relative;
            display: flex;
            align-items: center;
        }
        .search-box input {
            padding: 8px 35px 8px 15px;
            border: 1px solid #d1d5db;
            border-radius: 20px;
            font-size: 14px;
            outline: none;
            width: 240px;
            transition: all 0.3s ease;
            background: #f8fafc;
        }
        .search-box input:focus {
            width: 240px;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        .search-box .search-icon {
            position: absolute;
            right: 12px;
            color: var(--text-light);
            pointer-events: none;
            font-size: 14px;
        }

        /* --- Page Navigation (Pagination) Buttons --- */
        .pagination-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 40px;
            margin-bottom: 20px;
        }
        .page-btn {
            background: white;
            border: 1px solid #cbd5e1;
            color: var(--text-dark);
            padding: 8px 14px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .page-btn:hover {
            background: #f1f5f9;
            color: var(--primary);
            border-color: var(--primary);
        }
        .page-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        
        @media (max-width: 1000px) {
            .about-section, .profile-layout { grid-template-columns: 1fr; }
            .product-detail-container, .admin-layout, .category-grid, .cart-grid { grid-template-columns: 1fr; }
        }

        
/* --- CONNECTION SIGNAL / VPN SCREEN STYLES --- */
#connection-signal-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99998;
    color: white;
    text-align: center;
    padding: 20px;
    user-select: none;
}

#connection-signal-screen.active {
    display: flex;
}

.signal-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 480px;
    width: 90%;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.signal-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #ef4444;
    font-size: 32px;
    animation: signalPulse 2s infinite;
}

@keyframes signalPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(239, 68, 68, 0.6); }
}

.vpn-notice-box {
    background: rgba(245, 158, 11, 0.15);
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 6px;
    text-align: left;
    margin-bottom: 25px;
    font-size: 13px;
    color: #fde68a;
    line-height: 1.5;
}

/* --- HEADER CONNECTION SIGNAL RADIO DOT --- */
.header-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px; /* Slightly more compact */
    border-radius: 12px;
    font-size: 11px;  /* Compact, clean text */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 4px; /* 🟢 Moved left, right next to logo */
    margin-right: 5px;
    user-select: none;
    white-space: nowrap;
}

.header-status-badge.online {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.header-status-badge.offline {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Pulsing Green Dot */
.header-status-badge.online .status-radio-dot {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: radioPulseGreen 2s infinite;
}

/* Pulsing Red Dot */
.header-status-badge.offline .status-radio-dot {
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: radioPulseRed 1.5s infinite;
}

@keyframes radioPulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes radioPulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- CUSTOMER REVIEWS SCROLLABLE CONTAINER --- */
#pd-reviews-list {
    max-height: 320px; /* Caps the height so it doesn't stretch the page */
    overflow-y: auto;  /* Adds vertical scrollbar when reviews exceed height */
    padding-right: 8px;
    margin-top: 15px;
}

/* Custom Slim Scrollbar Styling for Reviews */
#pd-reviews-list::-webkit-scrollbar {
    width: 6px;
}
#pd-reviews-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
#pd-reviews-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
#pd-reviews-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- 🟢 SLEEK FORMAT CHIPS / PILL BADGES STYLES --- */
.format-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8fafc;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.format-chip-input {
    display: none; /* Hide default raw browser checkbox */
}

.format-chip-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px; /* Modern Pill shape */
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap; /* 🟢 Prevents text from breaking onto two lines */
}

.format-chip-label:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

/* 🟢 Checked Active State: Solid Blue Pill */
.format-chip-input:checked + .format-chip-label {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* =========================================================================
   --- 3D TACTILE ADMIN SIDEBAR BUTTONS ---
   ========================================================================= */
.admin-sb-links {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Spaces out buttons into distinct 3D cards */
    overflow-y: auto;
}

.admin-sb-links button {
    width: 100%;
    text-align: left;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid #090d16; /* 3D Bottom Depth Shadow */
    border-radius: 10px;
    color: #cbd5e1;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    user-select: none;
}

/* 3D Hover State: Lifts up with Cyan Glow */
.admin-sb-links button:hover {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    border-bottom: 3px solid #0f172a;
    transform: translateY(-2px); /* Lifts up in 3D */
    box-shadow: 0 8px 18px -2px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 3D Active / Selected State */
.admin-sb-links button.active {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid #38bdf8;
    border-bottom: 3px solid #075985;
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 3D Click Press Effect */
.admin-sb-links button:active {
    transform: translateY(1px); /* Press down effect */
    border-bottom-width: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Button Icon Animation */
.admin-sb-links button i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    transition: transform 0.2s ease;
}

.admin-sb-links button:hover i {
    transform: scale(1.15);
    color: #38bdf8;
}

.admin-sb-links button.active i {
    color: #ffffff;
}

/* 3D Pending Order Badge inside Sidebar */
#sidebar-pending-badge {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    border-bottom: 2px solid #991b1b;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* --- 3D TACTILE BUTTONS FOR ADMIN FORMS & PANELS --- */
.admin-panel .btn-submit {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #3b82f6;
    border-bottom: 3px solid #1e40af;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}

.admin-panel .btn-submit:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.admin-panel .btn-submit:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* =========================================================================
   --- 🟢 UNIVERSAL 3D TACTILE BUTTON SYSTEM ---
   ========================================================================= */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px; /* 🟢 ADDED: Restores button height and horizontal breathing room */
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;    /* 🟢 ADDED: Sets standard readable text size */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    user-select: none;
    text-decoration: none;
    border: 1px solid transparent;
    box-sizing: border-box; /* Ensures padding is calculated correctly */
}

/* 3D Blue Variant (Used for Saves / Form Submissions) */
.btn-3d-blue {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    border-bottom: 3px solid #1e40af;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-3d-blue:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-3d-blue:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 3D Yellow Variant (Used for Edits / Modifications) */
.btn-3d-yellow {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-color: #fbbf24;
    border-bottom: 3px solid #b45309;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-3d-yellow:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-3d-yellow:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 3D Red Variant (Used for Deletions / Cancellations) */
.btn-3d-red {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    border-color: #f87171;
    border-bottom: 3px solid #991b1b;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-3d-red:hover {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-3d-red:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- 3D BOOKSHELF PERSPECTIVE STYLES --- */
.shelf-row-unit {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.book-card-item:hover {
    transform: translateY(-12px) scale(1.03);
}

.book-cover-frame {
    width: 135px;
    height: 190px;
    border-radius: 2px 4px 4px 2px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.22), 3px 6px 14px rgba(0, 0, 0, 0.25);
}

.book-shadow-spot {
    width: 125px;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 75%);
    margin-top: -3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 4;
}

.books-group-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    position: relative;
    z-index: 5;
    margin-bottom: -20px;
    flex-wrap: nowrap;
    width: 100%;
}

.book-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-cover-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.28) 0%, rgba(255,255,255,0.25) 50%, rgba(0,0,0,0.05) 100%);
    z-index: 3;
}

.book-tooltip-title {
    position: absolute;
    bottom: -32px;
    background: rgba(20, 20, 20, 0.92);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.book-card-item:hover .book-tooltip-title {
    opacity: 1;
    transform: translateY(0);
}

.shelf-3d-structure {
    width: 100%;
    position: relative;
    z-index: 2;
}

.shelf-surface-top {
    height: 22px;
    clip-path: polygon(2% 0%, 98% 0%, 100% 100%, 0% 100%);
    transition: all 0.4s ease;
}

.shelf-front-bevel {
    height: 10px;
    border-radius: 0 0 2px 2px;
    transition: all 0.4s ease;
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.25), 0 4px 6px rgba(0, 0, 0, 0.12);
}

/* SHELF THEMES */
.theme-oak .shelf-surface-top { background: linear-gradient(to bottom, #ba9264 0%, #d8b284 60%, #e6c89c 100%); border-top: 1px solid #f2dcb0; }
.theme-oak .shelf-front-bevel { background: linear-gradient(to bottom, #a37d4c 0%, #7a5829 100%); }

.theme-walnut .shelf-surface-top { background: linear-gradient(to bottom, #2d1e16 0%, #463327 60%, #584435 100%); border-top: 1px solid #735742; }
.theme-walnut .shelf-front-bevel { background: linear-gradient(to bottom, #231610 0%, #120b07 100%); }

.theme-silver .shelf-surface-top { background: linear-gradient(to bottom, #d8d8dc 0%, #eaeaea 60%, #f4f4f6 100%); border-top: 1px solid #c0c0c5; }
.theme-silver .shelf-front-bevel { background: linear-gradient(to bottom, #bebec3 0%, #9e9ea4 100%); }

.theme-glass .shelf-surface-top { background: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, rgba(230,245,255,0.75) 60%, rgba(200,235,255,0.9) 100%); border-top: 1.5px solid rgba(255,255,255,0.95); }
.theme-glass .shelf-front-bevel { background: linear-gradient(to bottom, rgba(180,220,245,0.85) 0%, rgba(130,185,220,0.95) 100%); }

.theme-gold .shelf-surface-top { background: linear-gradient(to bottom, #c09733 0%, #e1c05d 60%, #f6e082 100%); border-top: 1px solid #fff2a8; }
.theme-gold .shelf-front-bevel { background: linear-gradient(to bottom, #a17c24 0%, #785a12 100%); }

.theme-white .shelf-surface-top { background: linear-gradient(to bottom, #e2e2e2 0%, #f4f4f4 60%, #ffffff 100%); border-top: 1px solid #ffffff; }
.theme-white .shelf-front-bevel { background: linear-gradient(to bottom, #cccccc 0%, #b2b2b2 100%); }

/* --- MODERN SLIDE-IN MOBILE NAVIGATION DRAWER --- */
.header-mobile-right-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-search-item,
.mobile-auth-item {
    display: none;
}

/* --- HIDE MOBILE ITEMS ON DESKTOP --- */
@media (min-width: 1025px) {
    .mobile-search-item,
    .mobile-auth-item,
    .mobile-logout-item,
    .header-mobile-right-actions,
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .desktop-nav-actions {
        display: none !important;
    }

    .header-mobile-right-actions {
        display: flex !important;
    }

    .mobile-search-item,
    .mobile-auth-item {
        display: block !important;
        width: 100%;
        margin-bottom: 12px;
    }

    .mobile-menu-toggle {
        background: #f1f5f9;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 18px;
        color: var(--text-dark);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 102; /* Ensures hamburger stays on top of drawer */
    }

    .mobile-cart-icon-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
    }

    .nav-menu {
        position: fixed;
        top: 70px; 
        right: -320px;
        width: 320px;
        height: calc(100vh - 70px); 
        background: white;
        flex-direction: column;
        align-items: flex-start !important;
        overflow-y: auto;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
        
        /* 🟢 CHANGED: Increased the 3rd value (bottom padding) from 40px to 120px */
        padding: 20px 20px 120px 20px; 
        
        z-index: 999;
        display: flex !important;
    }

    .nav-menu.mobile-active {
        right: 0; 
    }

    .nav-menu > li {
        width: 100%;
        height: auto !important;
        display: block;
        margin: 6px 0 !important;
    }

    /* 🟢 Transform mobile profile pill into a thick, prominent square-ish button */
    .mobile-auth-item .user-nav-btn {
        padding: 14px 16px !important;
        border-radius: 10px !important;
        background: var(--primary) !important;
        border: none !important;
        color: #ffffff !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 10px rgba(37,99,235,0.2) !important;
    }

    /* 🟢 Style top-level mobile menu links as beautiful button cards */
    .nav-menu > li > a, .nav-menu > li > .drop-btn {
        width: 100%;
        padding: 14px 16px !important;
        font-size: 15px;
        font-weight: 700 !important;
        background: #f8fafc;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        color: #334155;
        justify-content: flex-start;
    }

    .nav-menu > li > a i, .nav-menu > li > .drop-btn i:first-child {
        color: var(--primary);
        width: 24px;
        text-align: center;
        margin-right: 4px;
    }

    /* Keep the inner dropdown content links looking like a clean list */
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        width: 100%;
        max-height: none !important;
        overflow-y: visible !important;
        border-radius: 10px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        margin-top: 6px;
        display: none !important;
        padding: 5px;
    }

    .dropdown-content a {
        background: transparent;
        border: none !important;
        padding: 12px 16px !important;
        border-radius: 6px !important;
        font-weight: 600 !important;
    }

    /* 🟢 Only display when toggled open on mobile */
    .nav-menu li.open .dropdown-content {
        display: flex !important;
    }

    /* 🟢 Smooth caret rotation indicator */
    .drop-btn .fa-caret-down {
        transition: transform 0.2s ease;
    }
    .nav-menu li.open .drop-btn .fa-caret-down {
        transform: rotate(180deg);
    }
}

/* =========================================================================
   --- 📱 MOBILE RESPONSIVE USER PROFILE DASHBOARD (NATIVE APP FEEL) ---
   ========================================================================= */
@media (max-width: 768px) {
    /* 1. Page Spacing */
    .view-section {
        padding: 12px !important;
        padding-top: 80px !important; /* Clears fixed top header */
    }

    /* 🟢 2. Transform the giant Profile Card into a sleek, compact top header */
    .profile-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .profile-card {
        display: grid !important;
        grid-template-columns: 46px 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 4px 15px !important;
        text-align: left !important;
        padding: 16px !important;
        margin-bottom: 0 !important;
        border-radius: 12px !important;
        align-items: center !important;
    }

    /* Smaller, elegant avatar on mobile */
    .profile-avatar-large {
        grid-column: 1;
        grid-row: 1 / span 3; /* spans down beside name, email, and badge */
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
        margin: 0 !important;
        border-width: 2px !important;
        align-self: start;
    }

    .profile-card h2 {
        grid-column: 2;
        grid-row: 1;
        font-size: 17px !important;
        margin: 0 !important;
        color: #0f172a;
    }

    .profile-card p {
        grid-column: 2;
        grid-row: 2;
        font-size: 12px !important;
        margin: 0 !important;
        color: #64748b;
        word-break: break-all;
    }

    /* Position the new badge on mobile */
    #profile-account-state {
        grid-column: 2;
        grid-row: 3;
        margin-bottom: 0 !important;
        width: fit-content;
    }

    /* Move Sign Out button to the bottom row */
    .profile-card .btn-danger {
        grid-column: 1 / span 2;
        grid-row: 4;
        width: 100% !important;
        padding: 10px !important;
        font-size: 13px !important;
        margin: 15px 0 0 0 !important;
        border-radius: 6px !important;
    }


    /* 🟢 3. Modern Touch-Friendly Swipeable Tab Pills */
    .profile-tabs {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }

    .profile-nav {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        scrollbar-width: none !important; /* Firefox */
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        border-bottom: none !important; /* Remove harsh bottom line */
        margin-bottom: 18px !important;
        padding-bottom: 6px !important;
    }

    .profile-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar for native app feel */
    }

    /* Style tabs as clean, modern rounded pills */
    .profile-nav-btn {
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 20px !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        flex-shrink: 0 !important; /* Never clips text */
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .profile-nav-btn.active {
        background: var(--primary) !important;
        color: #ffffff !important;
        border-color: var(--primary) !important;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
    }

    /* 🟢 4. Stack Download Item Cards vertically for easy tapping */
    .download-item-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
    }

    .download-item-card > div:first-child {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .download-item-card img {
        width: 45px !important;
        height: 65px !important;
    }

    .download-item-card .btn-submit,
    .download-item-card .btn-3d {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 10px !important;
        font-size: 13px !important;
    }

    /* 🟢 5. Smooth Scroll for Order History Table */
    #p-content-orders {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    #p-content-orders .data-table {
        min-width: 600px !important;
    }

    /* 🟢 6. Single-Column Form for Billing Info */
    #p-content-info > div {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 🟢 7. Discounts Card on Mobile */
    #profile-personal-coupons-list > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 15px !important;
    }

    #profile-personal-coupons-list .btn-3d {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* =========================================================================
   --- 📱 MOBILE RESPONSIVE FIXES FOR HOME PAGE ---
   ========================================================================= */
@media (max-width: 768px) {
    
    /* 1. Fix Hero Slider Overlaps & Spacing */
    .hero-slider-container {
        height: 420px; /* Give more height for text wrapping */
    }
    .slide {
        padding: 0 25px !important; /* Reduce huge 60px side padding */
    }
    .slide-content h1 {
        font-size: 28px !important; /* Scale down title */
        margin-bottom: 12px !important;
    }
    .slide-content p {
        font-size: 15px !important;
        margin-bottom: 25px !important;
    }
    .slider-controls {
        right: 50% !important;
        transform: translateX(50%); /* Perfectly center the dots at the bottom */
        bottom: 15px !important;
    }

    /* 2. Fix "Who We Are" / About Section Squishing */
    .about-section {
        padding: 25px !important; /* Reduce huge 50px padding */
        gap: 25px !important;
    }
    .about-text h2 {
        font-size: 26px !important;
    }
    .about-text p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .about-stats {
        gap: 15px !important;
        justify-content: space-between !important;
        flex-wrap: wrap; /* Allows stats to wrap cleanly if screen is very thin */
    }
    .stat-item h3 {
        font-size: 22px !important;
    }
    .stat-item p {
        font-size: 13px !important;
    }

    /* 3. Center Testimonial Cards on Mobile */
    .testimonial-card {
        text-align: center !important;
    }
    
    .testimonial-card .user-info {
        justify-content: center !important; /* Centers the avatar and name side-by-side */
        text-align: left; /* Keeps the name and role stacked neatly next to the avatar */
    }

    /* 4. breathing room to the Trust Bar items on mobile */
    .trust-bar {
        gap: 40px !important; /* Increases the vertical space between the stacked items */
        padding: 40px 25px !important; /* Adjusts the outer padding for smaller screens */
    }
}

/* =========================================================================
   --- ❓ FAQ ACCORDION STYLES ---
   ========================================================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    outline: none;
}
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    background: #f8fafc;
}
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}
.faq-item.active .faq-question {
    color: var(--primary);
    background: #eff6ff;
}
.faq-item.active .faq-answer {
    padding: 0 24px 24px 24px;
    max-height: 1000px;
    border-top: 1px solid #e2e8f0;
}
.faq-icon {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}