/**
 * Component Styles
 * Navbar, Footer, Buttons, Cards, Forms
 */

/* =========================================
   NAVBAR - EPIC MORPHING DESIGN
   ========================================= */

.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) var(--space-6);
    
    /* Smooth transitions */
    transition: 
        padding 300ms ease,
        background 250ms ease,
        border-radius 300ms ease,
        width 300ms ease,
        left 300ms ease,
        right 300ms ease,
        top 300ms ease,
        transform 300ms ease,
        box-shadow 250ms ease,
        opacity 250ms ease;
    
    /* Clean background */
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Scrolled state - slightly more solid */
.navbar-container.scrolled:not(.morphed) {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   MORPHED PILL STATE - CLEAN FLOATING NAV
   ========================================= */

.navbar-container.morphed {
    /* Detach from edges and center */
    top: var(--space-4);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: 1000px;
    
    /* More rounded corners */
    border-radius: 28px;
    padding: var(--space-4) var(--space-8);
    
    /* Clean glassmorphism */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Subtle shadow */
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* Morphed hover - subtle lift */
.navbar-container.morphed:hover {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Hide on scroll up (when user scrolls back up) */
.navbar-container.morphed.nav-hidden {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   GRADIENT BORDER - SUBTLE ACCENT
   ========================================= */

.navbar-gradient-border {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(197, 160, 89, 0.3),
        transparent
    );
    background-size: 200% 100%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.navbar-container.morphed .navbar-gradient-border {
    opacity: 0;
}

.navbar-container.morphed:hover .navbar-gradient-border {
    opacity: 1;
}

/* =========================================
   SCROLL PROGRESS BAR
   ========================================= */

.navbar-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    opacity: 1;
    transition: opacity 300ms ease;
}

.navbar-container.morphed .navbar-progress-bar {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    opacity: 1;
}

.navbar-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-gold-primary);
    border-radius: inherit;
    transition: width 100ms ease-out;
}

/* =========================================
   NAVBAR WRAPPER
   ========================================= */

.navbar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-8);
    transition: gap 300ms ease;
}

.navbar-container.morphed .navbar-wrapper {
    gap: var(--space-8);
}

/* =========================================
   LOGO - CLEAN & MODERN
   ========================================= */

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    z-index: var(--z-fixed);
    transition: gap 300ms ease;
}

.navbar-container.morphed .navbar-logo {
    gap: var(--space-2);
}

.logo-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 1.5px solid var(--color-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transform: rotate(45deg);
    background-color: transparent;
    transition: all 200ms ease;
}

.navbar-logo:hover .logo-icon {
    background-color: rgba(197, 160, 89, 0.1);
}

/* Morphed logo icon - comfortable size */
.navbar-container.morphed .logo-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: var(--radius-sm);
}

.logo-letter {
    color: var(--color-gold-primary);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    transform: rotate(-45deg);
    transition: font-size 300ms ease;
}

.navbar-container.morphed .logo-letter {
    font-size: var(--text-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    transition: 
        opacity 250ms ease,
        width 300ms ease,
        transform 300ms ease;
    overflow: hidden;
}

/* Hide logo text when morphed */
.navbar-container.morphed .logo-text {
    width: 0;
    opacity: 0;
    transform: translateX(-10px);
}

.logo-primary {
    font-family: var(--font-display);
    color: white;
    letter-spacing: 0.05em;
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-secondary {
    font-family: var(--font-serif);
    color: var(--color-gold-primary);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
    white-space: nowrap;
}

/* =========================================
   DESKTOP MENU - CLEAN & MODERN
   ========================================= */

.navbar-menu {
    display: none;
    gap: var(--space-2);
    align-items: center;
    position: relative;
    transition: gap 400ms ease;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
}

/* Morphed state - comfortable spacing for usability */
.navbar-container.morphed .navbar-menu {
    gap: var(--space-3);
}

/* =========================================
   SLIDING ACTIVE INDICATOR
   ========================================= */

.navbar-active-indicator {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 
        transform 120ms ease-out,
        width 120ms ease-out,
        opacity 100ms ease;
    z-index: 0;
}

/* =========================================
   NAV SEPARATOR (subtle divider before donate)
   ========================================= */

.nav-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 var(--space-3);
    transition: all 300ms ease;
}

/* Hide separator in morphed state - cart button serves as visual break */
.navbar-container.morphed .nav-separator {
    width: 0;
    opacity: 0;
    margin: 0;
}

/* =========================================
   NAV LINKS - CLEAN & REFINED
   ========================================= */

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
    font-weight: 500;
    background: transparent;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all 200ms ease;
    z-index: 1;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

/* Morphed nav links - pill-shaped with comfortable padding */
.navbar-container.morphed .nav-link {
    font-size: var(--text-sm);
    padding: 10px 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
}

/* Subtle underline indicator */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    background: var(--color-gold-primary);
    transform: translateX(-50%);
    transition: width 200ms ease;
    border-radius: 1px;
}

/* Hide underline in morphed state */
.navbar-container.morphed .nav-link::after {
    display: none;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: var(--color-gold-primary);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active::after {
    width: 60%;
    background: var(--color-gold-primary);
}

/* Morphed hover - pill-shaped background */
.navbar-container.morphed .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.navbar-container.morphed .nav-link.active {
    background: rgba(197, 160, 89, 0.2);
    color: var(--color-gold-primary);
}

/* =========================================
   NAVBAR CART BUTTON
   ========================================= */

.navbar-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 200ms ease;
    z-index: 1;
}

.navbar-cart-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px);
}

.navbar-cart-icon {
    width: 18px;
    height: 18px;
}

.navbar-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-gold-primary);
    color: var(--color-navy-dark);
    font-size: 10px;
    font-weight: 800;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-cart-badge.hidden {
    display: none;
}

/* Morphed state - cart button with comfortable size */
.navbar-container.morphed .navbar-cart-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    margin-left: var(--space-2);
}

.navbar-container.morphed .navbar-cart-icon {
    width: 16px;
    height: 16px;
}

.navbar-container.morphed .navbar-cart-badge {
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
}

/* =========================================
   DONATE BUTTON - CLEAN & ELEGANT
   ========================================= */

.btn-donate {
    background: var(--color-gold-primary);
    color: var(--color-navy-dark);
    padding: var(--space-2) var(--space-6);
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
    font-weight: 600;
    transition: all 200ms ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
    cursor: pointer;
}

.btn-donate-text {
    transition: opacity 200ms ease;
}

.btn-donate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    width: auto;
}

.donate-heart-icon {
    width: 16px;
    height: 16px;
}

/* Morphed donate button - comfortable size, matching navbar shape */
.navbar-container.morphed .btn-donate {
    padding: 8px 20px;
    font-size: var(--text-xs);
    min-height: 36px;
    border-radius: 18px;
    margin-left: var(--space-2);
    gap: var(--space-2);
}

.navbar-container.morphed .donate-heart-icon {
    width: 14px;
    height: 14px;
}

.btn-donate:hover {
    background: var(--color-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-donate:active {
    transform: translateY(0);
}

/* Mobile Menu Button - See mobile.css for the gorgeous hamburger styles */
/* Legacy fallback - hidden by default */
.mobile-menu-btn {
    display: none;
}

/* Mobile Menu Overlay - See mobile.css for the gorgeous menu styles */
/* Base styles for desktop (hidden) */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
    
    .hamburger-btn {
        display: none !important;
    }
}

/* =========================================
   MORPHING NAVBAR - MOBILE OVERRIDE
   ========================================= */

/* Disable morphing on mobile - keep traditional navbar */
@media (max-width: 767px) {
    .navbar-container.morphed {
        /* Reset all morphing styles on mobile */
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: var(--space-3) var(--space-4);
        background: rgba(15, 23, 42, 0.92);
    }
    
    .navbar-container.morphed .navbar-wrapper {
        gap: var(--space-4);
    }
    
    .navbar-container.morphed .logo-text {
        width: auto;
        opacity: 1;
        transform: none;
    }
    
    .navbar-container.morphed .logo-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: var(--radius-sm);
        transform: rotate(45deg);
    }
    
    .navbar-container.morphed .logo-letter {
        transform: rotate(-45deg);
        font-size: var(--text-lg);
    }
    
    .navbar-gradient-border,
    .navbar-progress-bar,
    .navbar-active-indicator,
    .nav-separator {
        display: none !important;
    }
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    background-color: var(--color-navy-dark);
    color: white;
    padding: var(--space-12) 0 var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: var(--space-10);
    }
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon-small {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transform: rotate(45deg);
    background-color: var(--color-navy-dark);
}

.logo-icon-small .logo-letter {
    font-size: var(--text-sm);
    transform: rotate(-45deg);
}

.footer-logo-text {
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    font-size: var(--text-lg);
    line-height: 1.3;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-gold-primary);
    border-color: var(--color-gold-primary);
    color: var(--color-navy-dark);
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-heading {
    font-family: var(--font-display);
    color: var(--color-gold-primary);
    font-size: var(--text-base);
    margin-bottom: 0;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

/* Newsletter */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    outline: none;
    transition: all var(--transition-base);
}

.newsletter-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold-primary);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    background-color: var(--color-gold-primary);
    color: var(--color-navy-dark);
    padding: var(--space-3) var(--space-6);
    font-weight: 700;
    font-size: var(--text-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.newsletter-btn:hover {
    background-color: white;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-base);
}

    .footer-legal-link:hover {
    color: var(--color-gold-primary);
}

/* =========================================
   PWA INSTALL FLOATING BUTTON - PREMIUM DESIGN
   ========================================= */

.pwa-install-floating {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-tooltip);
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.pwa-install-floating.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: pwaFloatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pwaFloatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.85) rotate(-5deg);
    }
    60% {
        transform: translateY(-5px) scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.pwa-install-btn-floating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, #C5A059 0%, #D4AF37 50%, #FCD34D 100%);
    color: var(--color-navy-dark);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(197, 160, 89, 0.4),
        0 5px 15px rgba(197, 160, 89, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: pwaPulse 3s ease-in-out infinite;
}

@keyframes pwaPulse {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(197, 160, 89, 0.4),
            0 5px 15px rgba(197, 160, 89, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(197, 160, 89, 0.5),
            0 6px 18px rgba(197, 160, 89, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset,
            0 2px 10px rgba(0, 0, 0, 0.2),
            0 0 20px rgba(252, 211, 77, 0.3);
    }
}

/* Shine effect */
.pwa-install-btn-floating::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.pwa-install-btn-floating:hover::before {
    opacity: 1;
    animation: pwaShine 0.8s ease;
}

@keyframes pwaShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Glow effect */
.pwa-install-btn-floating::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #C5A059, #FCD34D, #C5A059);
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.4s ease;
}

.pwa-install-btn-floating:hover {
    transform: translateY(-4px) scale(1.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 15px 40px rgba(197, 160, 89, 0.5),
        0 8px 20px rgba(197, 160, 89, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(252, 211, 77, 0.4);
    animation: none;
}

.pwa-install-btn-floating:hover::after {
    opacity: 0.6;
}

.pwa-install-btn-floating:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(197, 160, 89, 0.4),
        0 4px 10px rgba(197, 160, 89, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.pwa-install-btn-floating i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.pwa-install-btn-floating:hover i {
    transform: translateY(-2px) rotate(-5deg) scale(1.1);
}

.pwa-install-text {
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* Tooltip on hover */
.pwa-install-btn-floating:hover .pwa-install-text::after {
    content: 'Add to Home Screen';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-navy-dark);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    animation: pwaTooltipFadeIn 0.3s ease 0.2s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
}

.pwa-install-btn-floating:hover .pwa-install-text::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--color-navy-dark);
    opacity: 0;
    animation: pwaTooltipFadeIn 0.3s ease 0.2s forwards;
    z-index: 10;
}

@keyframes pwaTooltipFadeIn {
    to {
        opacity: 1;
    }
}

/* Mobile: Smaller button, adjust position */
@media (max-width: 767px) {
    .pwa-install-floating {
        bottom: calc(var(--space-6) + 60px); /* Above bottom nav */
        right: var(--space-4);
    }

    .pwa-install-btn-floating {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
        gap: var(--space-1);
    }

    .pwa-install-btn-floating i {
        width: 18px;
        height: 18px;
    }

    .pwa-install-btn-floating:hover .pwa-install-text::after {
        display: none; /* Hide tooltip on mobile */
    }

    /* Hide text on very small screens, show icon only */
    @media (max-width: 360px) {
        .pwa-install-text {
            display: none;
        }

        .pwa-install-btn-floating {
            width: 56px;
            height: 56px;
            padding: 0;
            border-radius: var(--radius-full);
            justify-content: center;
        }

        .pwa-install-btn-floating i {
            width: 24px;
            height: 24px;
        }
    }
}

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */

.toast-container {
    position: fixed;
    top: 80px;
    right: var(--space-4);
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    padding: var(--space-4);
    background: var(--color-navy-dark);
    color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(197, 160, 89, 0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-message {
    font-size: var(--text-sm);
    line-height: 1.5;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.toast-success {
    border-left: 3px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 3px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left: 3px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left: 3px solid var(--color-gold-primary);
}

.toast-info .toast-icon {
    color: var(--color-gold-primary);
}

@media (max-width: 767px) {
    .toast-container {
        top: auto;
        bottom: 100px;
        right: var(--space-4);
        left: var(--space-4);
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 56px;
    border-radius: var(--radius-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    box-shadow: var(--shadow-gold);
    font-weight: 800;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FCD34D 0%, #D4AF37 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 800;
    position: relative;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-secondary:hover {
    border-color: white;
    color: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
}

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

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-outline:hover {
    color: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline:hover::before {
    opacity: 1;
}

/* =========================================
   CARDS
   ========================================= */

.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card:hover::before {
    opacity: 1;
}

/* Book Card */
.book-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-8);
    transform-style: preserve-3d;
    perspective: 1200px;
}

.book-card:hover {
    transform: translateY(-8px);
}

.book-cover {
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(197, 160, 89, 0.08), transparent 50%), linear-gradient(145deg, #f8f9fa 0%, #eef1f5 100%);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow-xl);
}

.book-cover-inner {
    width: 190px;
    height: 255px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 8px 24px rgba(197, 160, 89, 0.15);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base);
}

.book-card:hover .book-cover-inner {
    transform: scale(1.02) translateY(-2px);
}

.book-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-2);
}

.book-description {
    color: var(--color-text-muted);
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: var(--space-4);
}

.book-price {
    font-weight: 700;
    color: var(--color-navy-blue);
    font-size: var(--text-lg);
}

.book-add-btn {
    color: var(--color-gold-primary);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(212, 175, 55, 0.15));
    border: 1px solid var(--color-gold-primary);
    border-radius: var(--radius-base);
    padding: var(--space-2) var(--space-4);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.book-add-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.book-add-btn:hover {
    color: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    border-color: transparent;
}

.book-add-btn:hover::before {
    opacity: 1;
}

/* Badge */
.badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    font-size: var(--text-xs);
    font-weight: 800;
    padding: var(--space-1) var(--space-3);
    letter-spacing: 0.08em;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-md);
    z-index: 10;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.book-subtitle {
    font-family: var(--font-serif);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-top: calc(var(--space-1) / 2);
    margin-bottom: var(--space-2);
}

/* Book Detail Layout */
.book-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--space-8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 245, 242, 0.9));
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(207, 181, 59, 0.15);
    align-items: center;
    justify-items: center;
}

.book-detail-cover-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: center;
}

.book-detail-cover {
    width: 100%;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(197, 160, 89, 0.12), rgba(15, 23, 42, 0.03) 45%), linear-gradient(180deg, #ffffff, #f5f6fa);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--shadow-2xl);
}

.book-detail-cover img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 12px 30px rgba(197, 160, 89, 0.18);
    object-fit: contain;
    background: white;
    padding: var(--space-4);
}

.book-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--space-3);
}

.book-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
    max-width: 620px;
    width: 100%;
}

.book-author {
    font-weight: 700;
    color: var(--color-navy-blue);
    font-size: var(--text-base);
    letter-spacing: 0.02em;
}

.book-blurb {
    font-size: var(--text-base);
    color: var(--color-navy);
    font-style: italic;
}

.book-details {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
}

.book-chip {
    display: inline-block;
    background: rgba(197, 160, 89, 0.12);
    color: var(--color-gold-primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
}

.book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.06));
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Recording Cards */
.recording-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
}

.recording-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(197, 160, 89, 0.3);
}

.recording-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: var(--color-cream-light);
    box-shadow: var(--shadow-base);
}

.recording-meta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.recording-chip {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(197, 160, 89, 0.15);
    color: var(--color-gold-primary);
}

.recording-duration {
    color: var(--color-navy-lighter);
}

.recording-title {
    font-weight: 800;
    font-size: var(--text-lg);
    color: var(--color-text-dark);
    margin-bottom: var(--space-1);
}

.recording-performer {
    color: var(--color-text-muted);
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.recording-action {
    margin-left: auto;
    color: var(--color-gold-primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

.recording-action:hover {
    color: var(--color-text-dark);
}

.recording-filter.active {
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    color: white;
    box-shadow: var(--shadow-lg);
    border-color: transparent !important;
}

/* Audio Player Modal */
.audio-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    z-index: var(--z-modal);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.audio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease;
}

.audio-modal.open .audio-modal-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.audio-modal-content {
    position: relative;
    width: min(1200px, 95%);
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(10, 16, 28, 0.98));
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: white;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.audio-modal.open .audio-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.audio-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.audio-modal-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.audio-modal-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-6);
}

.audio-modal-info {
    padding: var(--space-8);
}

.audio-modal-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-family: var(--font-display);
    margin-bottom: var(--space-2);
    color: #FDF7E3;
}

.audio-modal-artist {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-serif);
    margin-bottom: var(--space-3);
}

.audio-modal-description {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 620px;
    margin-bottom: var(--space-6);
}

.audio-meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.audio-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(197, 160, 89, 0.15);
    color: #F2D49C;
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.audio-meta-pill {
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
}

.audio-controls {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.audio-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #C5A059, #FCD34D);
    color: #0F172A;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4), 0 0 0 0 rgba(252, 211, 77, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.audio-play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-play-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 40px rgba(252, 211, 77, 0.5), 0 0 0 4px rgba(252, 211, 77, 0.1);
    filter: brightness(1.05);
}

.audio-play-btn:hover::before {
    opacity: 1;
}

.audio-play-btn.is-playing {
    background: linear-gradient(135deg, #FCD34D, #C5A059);
}

.audio-play-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    background: #0F172A;
    color: #FCD34D;
    border-radius: 999px;
    padding-left: 2px;
    font-size: 0.8rem;
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.audio-progress-wrap {
    flex: 1;
    min-width: 220px;
}

.audio-progress-wrap input[type="range"] {
    width: 100%;
    accent-color: #FCD34D;
    background: linear-gradient(90deg, rgba(252, 211, 77, 0.65), rgba(197, 160, 89, 0.65));
    border-radius: var(--radius-full);
}

.audio-time {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.audio-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    gap: var(--space-4);
}

.audio-support-title {
    color: #FDF7E3;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.audio-support-copy {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.audio-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 160, 89, 0.7);
    color: #FDF7E3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.audio-support-link:hover {
    background: rgba(197, 160, 89, 0.16);
    transform: translateY(-1px);
}

.audio-queue {
    margin-top: var(--space-5);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.audio-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.audio-queue-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #FDF7E3;
    margin: 0;
}

.audio-queue-sub {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-sm);
}

.audio-queue-controls {
    display: inline-flex;
    gap: 0.35rem;
}

.audio-queue-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #FDF7E3;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-base), background var(--transition-base);
}

.audio-queue-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.audio-tracklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.audio-tracklist::-webkit-scrollbar {
    width: 8px;
}

.audio-tracklist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.audio-track {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    color: #FDF7E3;
    cursor: pointer;
    transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
    text-align: left;
}

.audio-track:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-md);
}

.audio-track.active {
    border-color: rgba(252, 211, 77, 0.4);
    background: radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: 0 10px 26px rgba(252, 211, 77, 0.16);
}

.audio-track-title {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.audio-track-artist {
    margin: 0.1rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    font-family: var(--font-serif);
}

.audio-track-meta {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
}

.audio-visualizer-panel {
    position: relative;
    padding: var(--space-8);
    background: radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.08), transparent 45%), 
                radial-gradient(circle at 80% 30%, rgba(30, 64, 175, 0.1), transparent 40%), 
                rgba(15, 23, 42, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    max-height: 90vh;
}

.audio-visualizer-panel::-webkit-scrollbar {
    width: 8px;
}

.audio-visualizer-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.audio-artwork {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-2xl);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-modal.open .audio-artwork {
    animation: artworkFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes artworkFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.audio-artwork::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.audio-visualizer {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.audio-visualizer canvas {
    display: block;
    width: 100%;
    height: 180px;
}

.audio-visualizer-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 40%, rgba(252, 211, 77, 0.08), transparent 50%), radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.08), transparent 50%);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1023px) {
    .audio-modal-grid {
        grid-template-columns: 1fr;
    }

    .audio-modal {
        padding: var(--space-4);
    }
    
    .audio-visualizer-panel {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .audio-artwork {
        max-width: 400px;
        margin: 0 auto var(--space-6);
    }
}

@media (max-width: 640px) {
    .audio-modal {
        padding: 0;
    }
    
    .audio-modal-content {
        border-radius: 0;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
    }

    .audio-modal-info,
    .audio-visualizer-panel {
        padding: var(--space-5);
    }
    
    .audio-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .audio-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .audio-progress-wrap {
        width: 100%;
    }
    
    .audio-artwork {
        aspect-ratio: 1;
        margin-bottom: var(--space-4);
    }
    
    .audio-modal-grid {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
    }
    
    .audio-visualizer-panel {
        flex: 1;
        overflow-y: auto;
    }
}

/* =========================================
   IMPACT / DONATION / EVENTS / LEARNING
   ========================================= */

.glass-panel,
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-2xl);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.donate-header {
    max-width: 980px;
    margin: 0 auto var(--space-10);
    text-align: center;
}

.donation-pill-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.donation-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FCD34D;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: var(--text-xs);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.donation-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.donation-hero {
    position: relative;
    z-index: 1;
}

.donation-story {
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
}

.donation-story::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.08), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.14), transparent 40%);
    opacity: 0.6;
    pointer-events: none;
}

.donation-ribbon {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    display: grid;
    gap: var(--space-4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.donation-ribbon-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
}

.donation-ribbon-title {
    font-size: var(--text-xl);
    font-weight: 800;
    margin: 0;
}

.donation-progress {
    display: grid;
    gap: 0.5rem;
}

.donation-progress-track {
    position: relative;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.donation-progress-fill {
    position: absolute;
    inset: 0;
    width: 60%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    box-shadow: 0 0 16px rgba(252, 211, 77, 0.4);
}

.donation-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-weight: 700;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
}

.donation-progress-value {
    color: #FCD34D;
}

.donation-progress-target {
    color: rgba(255, 255, 255, 0.7);
}

.donation-highlights {
    position: relative;
    z-index: 1;
    margin: var(--space-5) 0;
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.donation-highlight {
    padding: var(--space-5);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.donation-highlight:hover {
    transform: translateY(-2px);
    border-color: rgba(252, 211, 77, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.donation-highlight-kicker {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    font-size: var(--text-xs);
    color: #FCD34D;
    margin-bottom: 0.4rem;
}

.donation-highlight-copy {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.donation-trust {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.donation-trust-item {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all var(--transition-base);
}

.donation-trust-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.donation-trust-label {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FCD34D;
    font-size: var(--text-xs);
}

.donation-trust-copy {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.donation-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.donation-builder {
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
}

.donation-builder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(252, 211, 77, 0.15), transparent 40%);
    opacity: 0.7;
    pointer-events: none;
}

.donation-builder-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.donation-builder-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
    margin-bottom: 0.3rem;
}

.donation-builder-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin: 0;
}

.donation-builder-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #FCD34D;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: var(--text-xs);
}

.donation-mode-switch {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: var(--space-4);
}

.donation-mode-btn {
    border: none;
    border-radius: var(--radius-full);
    padding: 0.7rem 1rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.donation-mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
}

.donation-mode-btn.active {
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    box-shadow: 0 8px 25px rgba(252, 211, 77, 0.35);
}

.donation-amount-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: var(--space-4);
}

.donation-amount-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 1rem 0.8rem;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: var(--text-lg);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.donation-amount-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.1), rgba(252, 211, 77, 0.2));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.donation-amount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.donation-amount-btn:hover::before {
    opacity: 1;
}

.donation-amount-btn.active {
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.2), rgba(252, 211, 77, 0.4));
    border-color: rgba(252, 211, 77, 0.9);
    color: #FCD34D;
    box-shadow: 0 10px 40px rgba(252, 211, 77, 0.35);
}

.donation-amount-btn.active::before {
    opacity: 1;
}

.donation-custom {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-3);
}

.donation-custom-label {
    display: block;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
}

.donation-custom-input {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.donation-custom-input span {
    color: #FCD34D;
    font-weight: 800;
}

.donation-custom-input input {
    background: transparent;
    border: none;
    color: white;
    font-weight: 700;
    font-size: var(--text-lg);
    outline: none;
}

.donation-custom-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.donation-custom-apply {
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(252, 211, 77, 0.16);
    color: #FCD34D;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.donation-custom-apply:hover {
    background: rgba(252, 211, 77, 0.3);
}

.donation-impact-preview {
    position: relative;
    z-index: 1;
    margin: var(--space-3) 0;
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.08), rgba(252, 211, 77, 0.03));
    border: 1px solid rgba(252, 211, 77, 0.2);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-size: var(--text-sm);
    box-shadow: 0 4px 15px rgba(252, 211, 77, 0.1);
}

.donation-fine-print {
    position: relative;
    z-index: 1;
    margin-top: var(--space-2);
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.donation-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.donation-panel-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-xs);
}

.donation-panel-title {
    font-size: var(--text-xl);
    margin: 0.2rem 0 0;
}

.donation-panel-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.impact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.impact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(252, 211, 77, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.impact-value {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #FCD34D;
    margin-bottom: var(--space-2);
}

.impact-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2);
}

.impact-detail {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-family: var(--font-serif);
}

.donation-stack .impact-card {
    height: 100%;
}

.donation-card {
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.55), 0 0 40px rgba(252, 211, 77, 0.05);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.donation-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(252, 211, 77, 0.12), transparent 45%);
    pointer-events: none;
}

.donation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-lg);
    border-color: rgba(252, 211, 77, 0.4);
}

.donation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.2), rgba(197, 160, 89, 0.15));
    border: 1px solid rgba(252, 211, 77, 0.3);
    color: #FCD34D;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: var(--text-xs);
    align-self: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(252, 211, 77, 0.2);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.donation-title {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    margin: 0;
    color: white;
}

.donation-amount {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #FCD34D;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.donation-cta {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: -0.2rem;
}

.donation-impact {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-serif);
    line-height: 1.6;
}

.donation-perks {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 var(--space-3) 0;
    color: rgba(255, 255, 255, 0.85);
    display: grid;
    gap: 0.4rem;
}

.donation-perks li {
    padding-left: 1.6rem;
    position: relative;
    line-height: 1.5;
}

.donation-perks li::before {
    content: '•';
    color: #FCD34D;
    position: absolute;
    left: 0;
}

.donation-btn {
    margin-top: auto;
    text-decoration: none;
}

.donation-transparency {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.donation-transparency-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.donation-transparency-kicker {
    color: #FCD34D;
    font-weight: 800;
}

.donation-options-head h3 {
    margin: 0.2rem 0 0;
}

.donation-unlocks-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
    display: grid;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.donation-unlocks-list li {
    position: relative;
    padding-left: 1.3rem;
}

.donation-unlocks-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FCD34D;
}

.pill-filter {
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: white;
    color: var(--color-text-dark);
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.pill-filter:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.pill-filter.active {
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    border-color: transparent;
    box-shadow: var(--shadow-gold-lg);
}

.event-card {
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.event-card-featured {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(255, 255, 255, 0.9));
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: var(--shadow-gold-lg);
}

.event-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.event-pill {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(197, 160, 89, 0.12);
    color: var(--color-navy-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: var(--text-xs);
}

.event-date {
    color: var(--color-text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.event-title {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    color: var(--color-text-dark);
    margin: 0;
}

.event-location {
    color: var(--color-text-muted);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

.event-description {
    color: var(--color-text-dark);
    line-height: 1.6;
    margin: 0;
}

.event-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-tag {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--color-cream-light);
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: var(--text-xs);
}

.event-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.event-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: var(--text-xs);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.event-btn.primary {
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    box-shadow: var(--shadow-gold);
}

.event-btn.ghost {
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--color-text-dark);
    background: white;
}

.event-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.resource-card {
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-2xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-height: 100%;
}

.resource-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resource-pill {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(197, 160, 89, 0.16);
    color: #FCD34D;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: var(--text-xs);
}

.resource-pill.muted {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.resource-title {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    margin: 0;
    color: white;
}

.resource-summary {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.resource-meta {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.resource-topic {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.resource-btn {
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-full);
    background: white;
    color: var(--color-text-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.resource-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
}

.testimonial-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    color: white;
    font-family: var(--font-serif);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.testimonial-name {
    color: #FCD34D;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0;
}

.testimonial-role {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.testimonial-tag {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-top: var(--space-2);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: white;
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.25);
}

/* =========================================
   ENHANCED PRODUCT PAGE STYLES
   ========================================= */

/* Product Page Container */
.product-page-container {
    position: relative;
    display: flex;
    min-height: 100vh;
}

.product-main-content {
    flex: 1;
    transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section with Immersive Background */
.product-hero {
    position: relative;
    padding: var(--space-8) var(--space-6);
    background: linear-gradient(135deg, #FDFCFB 0%, #F5F3EF 50%, #E8E3DB 100%);
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.product-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(248, 245, 242, 1), transparent);
    pointer-events: none;
}

/* Breadcrumb Navigation */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    position: relative;
    z-index: 2;
}

.product-breadcrumb a,
.product-breadcrumb button {
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    transition: color var(--transition-base);
}

.product-breadcrumb a:hover,
.product-breadcrumb button:hover {
    color: var(--color-gold-primary);
}

.product-breadcrumb span {
    color: var(--color-text-dark);
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(0, 0, 0, 0.2);
}

/* Main Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-12);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* Product Image Section */
.product-image-section {
    position: relative;
}

.product-image-showcase {
    position: sticky;
    top: 120px;
}

/* 3D Book Presentation */
.book-3d-container {
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    position: relative;
}

.book-3d-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-3d-container:hover .book-3d-wrapper {
    transform: rotateY(-8deg) rotateX(3deg);
}

/* Main Book Display */
.book-display {
    position: relative;
    width: 320px;
    height: 440px;
    transform-style: preserve-3d;
}

.book-display::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
    filter: blur(15px);
    z-index: -1;
}

.book-cover-main {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform-style: preserve-3d;
}

.book-cover-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-3);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-3d-container:hover .book-cover-main img {
    transform: scale(1.02);
}

/* Book Spine Effect */
.book-spine {
    position: absolute;
    left: -15px;
    top: 3%;
    bottom: 3%;
    width: 15px;
    background: linear-gradient(90deg, 
        rgba(15, 23, 42, 0.1) 0%, 
        rgba(15, 23, 42, 0.05) 50%,
        rgba(15, 23, 42, 0.15) 100%);
    transform: rotateY(-90deg) translateX(-7.5px);
    transform-origin: right center;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Book Pages Effect */
.book-pages {
    position: absolute;
    right: -8px;
    top: 2%;
    bottom: 2%;
    width: 8px;
    background: repeating-linear-gradient(
        to right,
        #f5f5f0 0px,
        #f5f5f0 1px,
        #ebe8e1 1px,
        #ebe8e1 2px
    );
    border-radius: 0 2px 2px 0;
    transform: translateZ(-1px);
}

/* Badge Positioning */
.product-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 10;
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    font-size: var(--text-xs);
    font-weight: 800;
    padding: var(--space-2) var(--space-4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Quick Actions (Zoom, Share) */
.product-quick-actions {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    display: flex;
    gap: var(--space-2);
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.book-3d-container:hover .product-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.quick-action-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-dark);
}

.quick-action-btn:hover {
    background: var(--color-gold-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-4) 0;
}

/* Category & Rating Row */
.product-meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.product-category-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.12), rgba(197, 160, 89, 0.06));
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-gold-primary);
    font-weight: 700;
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-gold-primary);
}

.product-rating-text {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-left: var(--space-1);
}

/* Product Title */
.product-title-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: var(--space-6);
}

.product-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-subtitle {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-3);
}

.product-author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-navy-blue);
    font-weight: 600;
    font-size: var(--text-base);
}

.product-author-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.08), rgba(197, 160, 89, 0.03));
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.product-price {
    display: flex;
    align-items: flex-start;
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-navy-dark);
}

.product-price-currency {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-gold-primary);
    margin-top: 0.25em;
    margin-right: 2px;
}

.product-stock-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: #10b981;
    font-weight: 600;
    font-size: var(--text-sm);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: #10b981;
    animation: stock-pulse 2s ease-in-out infinite;
}

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

/* Description Section */
.product-description-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.product-blurb {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--color-navy-blue);
    font-style: italic;
    line-height: 1.7;
    padding-left: var(--space-4);
    border-left: 3px solid var(--color-gold-primary);
}

.product-full-description {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    line-height: 1.8;
}

/* Product Details Tabs */
.product-tabs {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: white;
    box-shadow: var(--shadow-lg);
}

.product-tabs-nav {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa, #f1f3f5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.product-tab-btn {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.product-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gold-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-tab-btn:hover {
    color: var(--color-text-dark);
    background: rgba(197, 160, 89, 0.05);
}

.product-tab-btn.active {
    color: var(--color-gold-primary);
    background: white;
}

.product-tab-btn.active::after {
    transform: scaleX(1);
}

.product-tab-content {
    padding: var(--space-6);
    display: none;
}

.product-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Details List */
.product-details-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .product-details-list {
        grid-template-columns: 1fr;
    }
}

.product-detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-lg);
}

.product-detail-label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.product-detail-value {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* =========================================
   PREMIUM ACTION SECTION
   ========================================= */

.product-action-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(145deg, #ffffff 0%, #fdfcfb 100%);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(197, 160, 89, 0.12);
    border-top: 3px solid var(--color-gold-primary);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 100px;
}

/* Price + Stock Row */
.action-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.action-price {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.action-price-currency {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-gold-primary);
    margin-top: 0.35em;
    margin-right: 1px;
}

.action-price-value {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-navy-dark);
    letter-spacing: -0.03em;
    line-height: 1;
}

.action-stock {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
}

.action-stock-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: stockPulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

@keyframes stockPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

/* Quantity + Cart Row */
.action-cart-row {
    display: flex;
    gap: var(--space-3);
    align-items: stretch;
}

/* Premium Quantity Selector */
.quantity-selector-premium {
    display: flex;
    align-items: center;
    background: #f4f5f7;
    border-radius: var(--radius-xl);
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.qty-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy-dark);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.qty-btn:hover:not(:disabled) {
    background: var(--color-gold-primary);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.qty-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.qty-display {
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-value {
    width: 44px;
    height: 42px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--color-navy-dark);
    pointer-events: none;
    -moz-appearance: textfield;
}

.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Premium Add to Cart Button */
.add-cart-btn-premium {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4) 0 var(--space-5);
    min-height: 50px;
    background: linear-gradient(135deg, #C5A059 0%, #D4AF61 50%, #E5C77B 100%);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(197, 160, 89, 0.3),
        0 3px 6px rgba(197, 160, 89, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-cart-btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #D4AF61 0%, #FCD34D 50%, #F59E0B 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-cart-btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.add-cart-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(197, 160, 89, 0.4),
        0 4px 10px rgba(197, 160, 89, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.add-cart-btn-premium:hover::before {
    opacity: 1;
}

.add-cart-btn-premium:hover::after {
    left: 100%;
}

.add-cart-btn-premium:active {
    transform: translateY(0) scale(0.99);
}

.cart-btn-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    z-index: 1;
}

.cart-btn-content span {
    font-weight: 800;
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-navy-dark);
}

.cart-btn-content svg {
    color: var(--color-navy-dark);
    transition: transform 0.3s ease;
}

.add-cart-btn-premium:hover .cart-btn-content svg {
    transform: scale(1.1) rotate(-6deg);
}

.cart-btn-price {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.15);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    margin: 4px 0;
    transition: background 0.3s ease;
}

.cart-btn-price-value {
    font-weight: 800;
    font-size: var(--text-base);
    color: var(--color-navy-dark);
}

.add-cart-btn-premium:hover .cart-btn-price {
    background: rgba(15, 23, 42, 0.22);
}

/* Quick Actions Row */
.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
}

.quick-action svg {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

.quick-action:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.25);
    color: var(--color-gold-primary);
    transform: translateY(-1px);
}

.quick-action:hover svg {
    transform: scale(1.1);
}

.quick-action:active {
    transform: translateY(0);
}

/* Wishlist heart animation */
.quick-action#wishlist-btn.active {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

.quick-action#wishlist-btn.active svg {
    fill: currentColor;
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Trust Strip */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.trust-item svg {
    width: 14px;
    height: 14px;
    color: var(--color-gold-primary);
    flex-shrink: 0;
}

.trust-divider {
    width: 1px;
    height: 14px;
    background: rgba(0, 0, 0, 0.08);
}

/* Legacy support for cart icon animation */
.cart-icon-animated {
    transition: transform 0.3s ease;
}

/* Enhanced Recommendations Section */
.recommendations-section {
    padding: var(--space-16) var(--space-6);
    background: linear-gradient(180deg, var(--color-cream-bg) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.recommendations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.3), transparent);
}

.recommendations-header {
    text-align: center;
    margin-bottom: var(--space-10);
    position: relative;
}

.recommendations-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

/* Enhanced Recommendation Card */
.recommendation-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.recommendation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.3);
}

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

.recommendation-card-image {
    height: 200px;
    background: linear-gradient(145deg, #f8f9fa 0%, #eef1f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
}

.recommendation-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(197, 160, 89, 0.08), transparent 50%);
}

.recommendation-card-image img {
    max-height: 100%;
    max-width: 60%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.recommendation-card:hover .recommendation-card-image img {
    transform: scale(1.05) translateY(-5px);
}

.recommendation-card-content {
    padding: var(--space-5);
}

.recommendation-card-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold-primary);
    margin-bottom: var(--space-2);
}

.recommendation-card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.recommendation-card-price {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-navy-blue);
}

.recommendation-card-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(197, 160, 89, 0.05));
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-gold-primary);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.recommendation-card:hover .recommendation-card-btn {
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    border-color: transparent;
}

/* Image Zoom Modal */
.image-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.image-zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-zoom-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-modal.active .image-zoom-content {
    transform: scale(1);
}

.image-zoom-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.image-zoom-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.image-zoom-close:hover {
    background: var(--color-gold-primary);
    color: white;
    transform: scale(1.1);
}

/* Share Modal */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-2xl);
}

.share-modal.active .share-modal-content {
    transform: translateY(0);
}

.share-modal-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    color: var(--color-text-dark);
}

.share-options {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.share-option {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-option:hover {
    border-color: var(--color-gold-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.share-option.twitter:hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.share-option.facebook:hover { background: #4267B2; color: white; border-color: #4267B2; }
.share-option.email:hover { background: var(--color-gold-primary); color: white; }
.share-option.copy:hover { background: var(--color-navy-dark); color: white; border-color: var(--color-navy-dark); }

.share-url-input {
    display: flex;
    gap: var(--space-2);
}

.share-url-input input {
    flex: 1;
    padding: var(--space-3);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.share-url-input button {
    padding: var(--space-3) var(--space-4);
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-url-input button:hover {
    transform: scale(1.05);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .product-hero {
        padding: var(--space-4);
    }
    
    .product-grid {
        padding: 0 var(--space-4);
    }
    
    .book-3d-container {
        min-height: 380px;
    }
    
    .book-display {
        width: 240px;
        height: 340px;
    }
    
    .product-title {
        font-size: var(--text-2xl);
    }
    
    .product-action-section {
        position: relative;
        top: 0;
    }
    
    .recommendations-section {
        padding: var(--space-10) var(--space-4);
    }
    
    .secondary-actions {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
