/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container,
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.cart-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
}

@media (min-width: 480px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

.book-card {
    background: white;
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.book-card img {
    width: 100%;
    aspect-ratio: 2/3;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

.book-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    height: auto;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 0.6rem;
}

.book-card h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    padding: 0;
    color: #333;
    line-height: 1.2;
}

.author {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 0.25rem 0;
    padding: 0;
}

.price {
    color: #667eea;
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0.25rem 0;
    padding: 0;
}

.book-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0;
}

.book-actions .btn {
    flex: 1;
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.book-detail img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 8px;
}

.description {
    margin: 1rem 0;
    line-height: 1.8;
}

/* Cart */
.cart-items {
    margin: 2rem 0;
}

.cart-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-total {
    font-weight: bold;
    color: #667eea;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin: 1rem 0;
}

/* =========================================
   MODERN FORM STYLES
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label,
.modern-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #4a5568;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select,
.modern-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #2d3748;
    background: #f8fafc;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.modern-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover,
.modern-input:hover {
    border-color: #a0aec0;
}

.form-group input[type="file"] {
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.form-group input[type="color"] {
    padding: 0.3rem 0.5rem;
    height: 48px;
    cursor: pointer;
}

.form-group input[type="number"] {
    width: auto;
    min-width: 100px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.35rem;
    color: #718096;
    font-size: 0.8rem;
}

/* Auth card wrapper */
.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f0ff 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    animation: fadeInDown 0.5s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #718096;
    font-size: 1rem;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Google / social button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.google-btn:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* Divider */
.divider,
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #a0aec0;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Auth button */
.btn-auth {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Product / upload forms */
.auth-form {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.product-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.product-form h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.product-form > p {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Hero text always white regardless of other rules */
.landing-hero .hero-title,
.landing-hero .hero-subtitle {
    color: white !important;
}

/* Library */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.library-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.library-item:hover {
    transform: translateY(-3px);
}

.library-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Messages */
.messages {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 20px;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Info Box */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.info-box h3 {
    margin-bottom: 0.5rem;
    color: #1976D2;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* =========================================
   MODERN LANDING PAGE STYLES
   ========================================= */

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Landing Hero Section */
.landing-hero {
    position: relative;
    padding: 8rem 20px;
    text-align: center;
    color: white;
    background-image: url('../images/banner_movil.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .landing-hero {
        background-image: url('../images/banner_web.png');
    }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Common Section Styles */
.section-title {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 3rem;
}

.text-center { text-align: center; }

/* How It Works (Features) */
.landing-features {
    padding: 4rem 20px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }
}

.feature-card {
    background: #f8fafc;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Products Showcase */
.landing-products {
    padding: 5rem 20px;
    background: #f8fafc;
}

.product-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.promo-card {
    border-radius: 24px;
    padding: 3rem;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.catalog-promo {
    background: linear-gradient(135deg, #FFD194 0%, #70E1F5 100%);
    color: #333;
}

.book-promo {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
    color: #333;
}

.music-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.book-promo h3 { color: #d6336c; }

.promo-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.subsection-title {
    font-size: 2rem;
    margin: 4rem 0 2rem;
    text-align: center;
    color: #2d3748;
}

.book-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.book-img-wrapper img {
    width: 100%;
    aspect-ratio: 2/3;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.book-card:hover .book-img-wrapper img {
    transform: scale(1.05);
}

/* Testimonials */
.landing-testimonials {
    padding: 6rem 20px;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 6rem;
    color: #f1f5f9;
    font-family: Georgia, serif;
    line-height: 1;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review {
    font-size: 1.1rem;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.client-name {
    font-weight: 700;
    color: #2d3748;
}

/* Footer improvements */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #aaa;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    padding-top: 2rem;
    color: #888;
    text-align: center;
}

/* =========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================= */
@media (max-width: 992px) {
    .product-types-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .navbar {
        position: relative;
    }

    .nav-container {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        z-index: 999;
        width: 100%;
        gap: 0;
    }

    .nav-menu.active {
        max-height: 1000px;
        padding: 1rem 0;
        overflow: visible;
    }

    .nav-menu a {
        padding: 0.75rem 2rem;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-menu a:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    .navbar {
        position: relative;
    }

    /* Landing modifications */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .landing-hero {
        padding: 4rem 20px;
    }

    .promo-card {
        padding: 2rem;
    }

    .promo-card h3 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   Modern Authentication Design
   ========================================= */

.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Custom Form Styling */
.modern-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.modern-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-left: 4px;
}

/* Social Login Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 2px solid #e1e1e1;
    color: #333;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s;
    text-decoration: none;
    margin-top: 1rem;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #d1d1d1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #888;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e1e1;
}

.divider::before {
    margin-right: .5em;
}

.divider::after {
    margin-left: .5em;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
/* =========================================
   CATALOG PAGE
   ========================================= */

.catalog-header {
    background: linear-gradient(135deg, #1f1c2c 0%, #928DAB 100%);
    color: white;
    padding: 4rem 20px;
    text-align: center;
    margin-bottom: 3rem;
}

.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.catalog-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.catalog-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
}

.search-input-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 0.5rem;
}

.sort-group {
    min-width: 200px;
}

.sort-group .modern-label {
    margin-bottom: 0.25rem;
}

.search-btn {
    padding: 0 1.5rem;
    white-space: nowrap;
}

.active-filters {
    background: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-filters {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
}

.clear-filters:hover {
    text-decoration: underline;
}

.catalog-grid {
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.no-results {
    grid-column: 1 / -1;
    padding: 4rem 0;
    color: #4a5568;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .sort-group {
        width: 100%;
    }
}


.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Button override for auth */
.btn-auth {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-top: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
}

/* =========================================
   Enhanced Authentication Styles (ADDON)
   ========================================= */

.input-container {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: #1a202c;
    outline: none;
    height: 56px;
}

.modern-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.input-placeholder {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 4px;
}

.modern-input:focus + .input-placeholder,
.modern-input:not(:placeholder-shown) + .input-placeholder {
    transform: translateY(-24px) scale(0.85);
    color: #667eea;
}

.input-focus-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 12px 12px;
}

.modern-input:focus ~ .input-focus-indicator {
    transform: scaleX(1);
}

.label-text {
    display: inline-block;
}

.required-asterisk {
    color: #f56565;
    margin-left: 2px;
}

.field-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.error-icon {
    font-size: 0.875rem;
    color: #f56565;
}

.error-text {
    color: #f56565;
    font-size: 0.875rem;
    font-weight: 500;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.4;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}


.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-container input:checked ~ .checkmark::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}

.forgot-password {
    font-size: 0.875rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Enhanced form actions */
.form-actions {
    margin-bottom: 2rem;
}

.btn-auth {
    width: 100%;
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.1);
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-auth:hover .btn-icon {
    transform: translateX(4px);
}

/* Enhanced divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider-text {
    padding: 0 1rem;
    color: #a0aec0;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Enhanced social auth */
.social-auth {
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.google-btn {
    background: white;
    border-color: #e2e8f0;
    color: #4a5568;
}

.google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.social-text {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Enhanced footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    color: #718096;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.footer-note {
    color: #a0aec0;
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.4;
}

.footer-note strong {
    color: #4a5568;
    font-weight: 600;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for auth only */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
}

/* =========================================
   NAVBAR DROPDOWNS
   ========================================= */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
    display: inline-block;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    padding: 0.5rem;
    z-index: 1000;
    animation: dropdownIn 0.2s ease-out;
}

.nav-dropdown-menu--right {
    left: auto;
    right: 0;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu .nav-dropdown-item {
    display: block;
    padding: 0.65rem 1rem;
    color: #2d3748;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu .nav-dropdown-item:hover {
    background: #f0f4ff;
    color: #667eea;
}

.nav-dropdown-menu .nav-dropdown-item--danger {
    color: #e53e3e;
}

.nav-dropdown-menu .nav-dropdown-item--danger:hover {
    background: #fff5f5;
    color: #c53030;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.4rem 0.5rem;
}

/* Mobile: dropdowns stack vertically inside open nav */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 8px;
        background: rgba(255,255,255,0.08);
        margin-top: 0.25rem;
        padding: 0.25rem 0.5rem;
        animation: none;
    }

    .nav-dropdown-item {
        color: white;
        font-size: 0.9rem;
    }

    .nav-dropdown-item:hover {
        background: rgba(255,255,255,0.15);
        color: white;
    }

    .nav-dropdown-item--danger {
        color: #fc8181;
    }

    .nav-dropdown-item--danger:hover {
        background: rgba(252,129,129,0.15);
        color: #fc8181;
    }

    .dropdown-divider {
        background: rgba(255,255,255,0.2);
    }
}