
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #451A03;
            background-color: #FFFBEB;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Navigation */
        .nav {
            background: linear-gradient(135deg, #F59E0B, #EA580C);
            box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* padding: 1rem 1rem; */
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-menu a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
        }

        .nav-menu a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .cart-btn {
            background: white;
            color: #EA580C;
            border: none;
            padding: 0.7rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            position: relative;
            left: -20px;
        }

        .cart-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(234, 88, 12, 0.3);
        }

        .cart-count {
            background: #C2410C;
            color: white;
            border-radius: 50%;
            width: 1.2rem;
            height: 1.2rem;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: -0.3rem;
            right: -0.3rem;
        }

        .auth-btn {
            background: transparent;
            color: white;
            border: 2px solid white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .auth-btn:hover {
            background: white;
            color: #EA580C;
            transform: translateY(-2px);
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Page Styles */

  

        .page {
            display: none;
            padding-top: 80px;
            min-height: 100vh;
        }
              /* ✅ For mobile and tablet screens (up to 1024px width) */
@media (max-width: 1000px) {
  .page {
    padding-top: 15px;
  }
}

        .page.active {
            display: block;
        }

        /* Home Page Styles */
        .hero {
            background: linear-gradient(135deg, #FBBF24, #FB923C);
            padding: 4rem 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:0" /></radialGradient></defs><rect width="100" height="20" fill="url(%23a)" /></svg>');
            opacity: 0.5;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 3rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1rem;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .hero p {
            font-size: 1.2rem;
            color: white;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .cta-btn {
            background: white;
            color: #EA580C;
            padding: 1rem 2rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .cta-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(234, 88, 12, 0.3);
        }

        /* School Selection */
        .school-selector {
            background: white;
            padding: 3rem 2rem;
            border-radius: 1rem;
            margin: -2rem 0 4rem;
            box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2);
            position: relative;
            z-index: 2;
        }

        .selector-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .form-group label {
            font-weight: 600;
            color: #78716C;
        }

        .form-select {
            padding: 0.8rem;
            border: 2px solid #e5e5e5;
            border-radius: 0.5rem;
            font-size: 1rem;
            background: white;
            transition: all 0.3s ease;
        }

        .form-select:focus {
            outline: none;
            border-color: #F59E0B;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        }

        /* Featured Books */
        .featured-books {
            padding: 2rem 0;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            color: #451A03;
            margin-bottom: 3rem;
        }

       .books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* keeps single card in center */
}


        .book-card {
            width: 370px;
            background: white;
            border-radius: 1rem;
            padding: 1.5rem;
            box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .book-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(245, 158, 11, 0.25);
        }

        .book-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, #F59E0B, #EA580C);
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
            position: relative;
            overflow: hidden;
        }

        .book-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg>') center/50px no-repeat;
            opacity: 0.3;
        }

        .book-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #451A03;
            margin-bottom: 0.5rem;
        }

        .book-author {
            color: #78716C;
            margin-bottom: 0.5rem;
        }

        .book-grade {
            background: linear-gradient(135deg, #F59E0B, #EA580C);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 1rem;
            font-size: 0.8rem;
            font-weight: 500;
            display: inline-block;
            margin-bottom: 1rem;
        }

        .book-price {
            font-size: 1.3rem;
            font-weight: 700;
            color: #C2410C;
            margin-bottom: 1rem;
        }

        .rating {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .stars {
            color: #F59E0B;
        }

        .add-to-cart {
            background: linear-gradient(135deg, #F59E0B, #EA580C);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
        }

        .add-to-cart:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
        }

        /* Categories */
        .categories {
            background: white;
            padding: 4rem 0;
        }

        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .category-card {
            background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
            border: 2px solid #F59E0B;
            border-radius: 1rem;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(245, 158, 11, 0.25);
        }

        .category-icon {
            font-size: 3rem;
            color: #EA580C;
            margin-bottom: 1rem;
        }

        .category-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #451A03;
            margin-bottom: 1rem;
        }

        .category-desc {
            color: #78716C;
        }

        /* Testimonials */
        .testimonials {
            padding: 4rem 0;
            background: linear-gradient(135deg, #FEF3C7, #FED7AA);
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .testimonial-card {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
                width: 95%;
            box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
            position: relative;
        }

        .testimonial-quote {
            font-style: italic;
            color: #451A03;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

        .testimonial-author {
            font-weight: 600;
            color: #EA580C;
        }

        .testimonial-role {
            color: #78716C;
            font-size: 0.9rem;
        }

        /* Footer */
        .footer {
            background: linear-gradient(135deg, #451A03, #78716C);
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: #F59E0B;
        }

        .footer-section a {
            color: white;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: #F59E0B;
        }

        .newsletter {
            background: rgba(245, 158, 11, 0.1);
            padding: 1.5rem;
            border-radius: 0.5rem;
        }

        .newsletter-form {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .newsletter-input {
            flex: 1;
            padding: 0.8rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 1rem;
        }

        .newsletter-btn {
            background: #F59E0B;
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .newsletter-btn:hover {
            background: #EA580C;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 1rem;
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Login Page */
        .login-page {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 30px 0px;
            min-height: calc(100vh - 80px);
            background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
        }

        .auth-card {
            background: white;
            padding: 3rem;
            border-radius: 1rem;
            box-shadow: 0 20px 60px rgba(245, 158, 11, 0.2);
            width: 100%;
            max-width: 400px;
        }

        .auth-title {
            font-size: 2rem;
            font-weight: 700;
            text-align: center;
            color: #451A03;
            margin-bottom: 2rem;
        }

        .form-input {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e5e5e5;
            border-radius: 0.5rem;
            font-size: 1rem;
            transition: all 0.3s ease;
            margin-bottom: 1rem;
        }

        .form-input:focus {
            outline: none;
            border-color: #F59E0B;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        }

        .form-btn {
            width: 100%;
            background: linear-gradient(135deg, #F59E0B, #EA580C);
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 0.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 1rem 0;
        }

        .form-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
        }

        .form-checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 1rem 0;
        }

        .auth-link {
            text-align: center;
            margin-top: 1rem;
            color: #78716C;
        }

        .auth-link a {
            color: #EA580C;
            text-decoration: none;
            font-weight: 600;
        }

        .auth-link a:hover {
            text-decoration: underline;
        }

        .social-login {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #e5e5e5;
        }

        .social-btn {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e5e5e5;
            border-radius: 0.5rem;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-weight: 500;
        }

        .social-btn:hover {
            border-color: #F59E0B;
            box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
        }

        .error {
            color: #C2410C;
            font-size: 0.9rem;
            margin-top: 0.5rem;
            display: none;
        }

        /* Register Page */
        .register-page {
            padding: 2rem 0;
            background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
        }

        .register-card {
            background: white;
            padding: 3rem;
            border-radius: 1rem;
            box-shadow: 0 20px 60px rgba(245, 158, 11, 0.2);
            max-width: 500px;
            margin: 0 auto;
        }

        .role-selector {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .role-option {
            padding: 1rem;
            border: 2px solid #e5e5e5;
            border-radius: 0.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
        }

        .role-option.selected {
            border-color: #F59E0B;
            background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
        }

        .role-option:hover {
            border-color: #F59E0B;
        }

        .role-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .mobile-toggle {
                display: block;
                margin-right: 10px;
               
            }
            /* .cart-btn{
                left: 50px;
            } */

            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: linear-gradient(135deg, #F59E0B, #EA580C);
                flex-direction: column;
                padding: 1rem 0;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
                 align-items: start;
            }

            .nav-menu.active {
                display: flex;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .selector-grid {
                grid-template-columns: 1fr;
            }

            .books-grid {
                grid-template-columns: 1fr;
            }

            .auth-card {
                margin: 1rem;
                padding: 2rem;
            }

            .newsletter-form {
                flex-direction: column;
            }

            .role-selector {
                grid-template-columns: 1fr;
            }
        }

        /* Loading Animation */
        .loading {
            display: none;
            text-align: center;
            padding: 2rem;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #e5e5e5;
            border-top: 4px solid #F59E0B;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Success Message */
        .success-message {
            background: linear-gradient(135deg, #10B981, #059669);
            color: white;
            padding: 1rem;
            border-radius: 0.5rem;
            margin: 1rem 0;
            text-align: center;
            display: none;
        }
  