/* --------------------------------------
SECTION 1: Global Styles - Base resets and body styling
-------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

/* --------------------------------------
SECTION 2: Background Animation - Extended Deep Space Spectacle
-------------------------------------- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300vh;
    z-index: -2;
    background: #000000;
    overflow: hidden;
}

/* Deep space nebula layers - extended */
.bg-animation::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -50%;
    width: 200%;
    height: 150%;
    background: 
        radial-gradient(ellipse at 25% 20%, rgba(45, 55, 80, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 40%, rgba(60, 40, 70, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse at 40% 60%, rgba(40, 60, 55, 0.05) 0%, transparent 65%),
        radial-gradient(ellipse at 15% 80%, rgba(50, 45, 75, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(35, 65, 50, 0.04) 0%, transparent 70%);
    animation: deepNebula 20s ease-in-out infinite;
    mix-blend-mode: screen;
    filter: blur(40px);
}

.bg-animation::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -30%;
    width: 160%;
    height: 130%;
    background: 
        radial-gradient(circle at 60% 15%, rgba(30, 50, 70, 0.04) 0%, transparent 80%),
        radial-gradient(circle at 20% 45%, rgba(50, 30, 60, 0.03) 0%, transparent 75%),
        radial-gradient(circle at 80% 75%, rgba(40, 55, 45, 0.05) 0%, transparent 70%);
    animation: distantNebula 25s ease-in-out infinite reverse;
    mix-blend-mode: screen;
    filter: blur(60px);
}

/* Extended multi-layered organic starfield */
.bg-animation .star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Top section stars */
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.9) 1px, transparent 2px),
        radial-gradient(circle at 67% 3%, rgba(240, 250, 255, 0.8) 1.5px, transparent 2.5px),
        radial-gradient(circle at 23% 17%, rgba(255, 245, 240, 0.7) 1px, transparent 2px),
        radial-gradient(circle at 89% 11%, rgba(245, 245, 255, 0.9) 1.5px, transparent 2.5px),
        
        /* Middle section stars */
        radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.6) 1px, transparent 2px),
        radial-gradient(circle at 78% 42%, rgba(250, 250, 255, 0.8) 1px, transparent 2px),
        radial-gradient(circle at 34% 38%, rgba(255, 250, 245, 0.7) 1.5px, transparent 2.5px),
        radial-gradient(circle at 56% 45%, rgba(255, 255, 255, 0.5) 1px, transparent 2px),
        radial-gradient(circle at 91% 48%, rgba(240, 250, 255, 0.8) 1px, transparent 2px),
        radial-gradient(circle at 17% 52%, rgba(255, 245, 250, 0.6) 1.5px, transparent 2.5px),
        
        /* Lower section stars */
        radial-gradient(circle at 63% 68%, rgba(255, 255, 255, 0.9) 1px, transparent 2px),
        radial-gradient(circle at 29% 73%, rgba(245, 250, 255, 0.7) 1.5px, transparent 2.5px),
        radial-gradient(circle at 84% 78%, rgba(255, 250, 245, 0.8) 1px, transparent 2px),
        radial-gradient(circle at 41% 82%, rgba(250, 255, 250, 0.6) 1.5px, transparent 2.5px),
        
        /* Bottom section stars */
        radial-gradient(circle at 72% 88%, rgba(255, 255, 255, 0.5) 1px, transparent 2px),
        radial-gradient(circle at 18% 92%, rgba(245, 245, 255, 0.8) 1px, transparent 2px),
        radial-gradient(circle at 55% 95%, rgba(255, 250, 255, 0.7) 1.5px, transparent 2.5px),
        radial-gradient(circle at 87% 97%, rgba(250, 255, 245, 0.6) 1px, transparent 2px);
    animation: starTwinkle 6s ease-in-out infinite;
}

.bg-animation .star-field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Extended medium brightness scattered stars */
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.4) 0.8px, transparent 1.5px),
        radial-gradient(circle at 73% 18%, rgba(245, 250, 255, 0.5) 0.5px, transparent 1px),
        radial-gradient(circle at 41% 24%, rgba(255, 245, 250, 0.3) 0.8px, transparent 1.5px),
        radial-gradient(circle at 92% 29%, rgba(250, 255, 245, 0.4) 0.5px, transparent 1px),
        
        radial-gradient(circle at 27% 38%, rgba(255, 255, 255, 0.3) 0.8px, transparent 1.5px),
        radial-gradient(circle at 64% 44%, rgba(245, 245, 255, 0.5) 0.5px, transparent 1px),
        radial-gradient(circle at 83% 49%, rgba(255, 250, 255, 0.4) 0.8px, transparent 1.5px),
        radial-gradient(circle at 39% 54%, rgba(250, 255, 250, 0.3) 0.5px, transparent 1px),
        
        radial-gradient(circle at 71% 62%, rgba(255, 255, 255, 0.4) 0.8px, transparent 1.5px),
        radial-gradient(circle at 15% 67%, rgba(245, 250, 255, 0.3) 0.5px, transparent 1px),
        radial-gradient(circle at 58% 72%, rgba(255, 245, 250, 0.5) 0.8px, transparent 1.5px),
        radial-gradient(circle at 86% 77%, rgba(250, 255, 245, 0.4) 0.5px, transparent 1px),
        
        radial-gradient(circle at 33% 85%, rgba(255, 255, 255, 0.3) 0.8px, transparent 1.5px),
        radial-gradient(circle at 79% 90%, rgba(245, 245, 255, 0.5) 0.5px, transparent 1px),
        radial-gradient(circle at 46% 94%, rgba(255, 250, 255, 0.4) 0.8px, transparent 1.5px),
        radial-gradient(circle at 21% 98%, rgba(250, 255, 250, 0.3) 0.5px, transparent 1px);
    animation: starShimmer 8s ease-in-out infinite 1.5s;
}

.bg-animation .star-field::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Extended distant dim stars */
        radial-gradient(circle at 31% 6%, rgba(255, 255, 255, 0.2) 0.3px, transparent 0.8px),
        radial-gradient(circle at 76% 14%, rgba(245, 250, 255, 0.15) 0.3px, transparent 0.8px),
        radial-gradient(circle at 19% 22%, rgba(255, 245, 250, 0.2) 0.3px, transparent 0.8px),
        radial-gradient(circle at 94% 28%, rgba(250, 255, 245, 0.15) 0.3px, transparent 0.8px),
        radial-gradient(circle at 52% 34%, rgba(255, 255, 255, 0.1) 0.3px, transparent 0.8px),
        
        radial-gradient(circle at 37% 41%, rgba(245, 245, 255, 0.2) 0.3px, transparent 0.8px),
        radial-gradient(circle at 68% 47%, rgba(255, 250, 255, 0.15) 0.3px, transparent 0.8px),
        radial-gradient(circle at 84% 53%, rgba(250, 255, 250, 0.1) 0.3px, transparent 0.8px),
        radial-gradient(circle at 29% 59%, rgba(255, 255, 255, 0.2) 0.3px, transparent 0.8px),
        radial-gradient(circle at 61% 65%, rgba(245, 250, 255, 0.15) 0.3px, transparent 0.8px),
        
        radial-gradient(circle at 43% 71%, rgba(255, 245, 250, 0.1) 0.3px, transparent 0.8px),
        radial-gradient(circle at 87% 77%, rgba(250, 255, 245, 0.2) 0.3px, transparent 0.8px),
        radial-gradient(circle at 24% 83%, rgba(255, 255, 255, 0.15) 0.3px, transparent 0.8px),
        radial-gradient(circle at 66% 89%, rgba(245, 250, 255, 0.1) 0.3px, transparent 0.8px),
        radial-gradient(circle at 91% 94%, rgba(255, 245, 250, 0.2) 0.3px, transparent 0.8px),
        radial-gradient(circle at 38% 97%, rgba(250, 255, 245, 0.15) 0.3px, transparent 0.8px);
    animation: distantStarGlow 12s ease-in-out infinite 3s;
}

/* Extended shooting stars */
.bg-animation .shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bg-animation .shooting-stars::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -5%;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    animation: shootingStar1 8s linear infinite;
}

.bg-animation .shooting-stars::after {
    content: '';
    position: absolute;
    top: 65%;
    left: -5%;
    width: 1px;
    height: 1px;
    background: linear-gradient(30deg, transparent, rgba(240, 250, 255, 0.6), transparent);
    box-shadow: 0 0 4px rgba(240, 250, 255, 0.3);
    animation: shootingStar2 12s linear infinite 4s;
}

/* Animation keyframes */
@keyframes deepNebula {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    33% { 
        transform: translate(-8%, 6%) scale(1.1) rotate(0.3deg);
        opacity: 0.5;
    }
    66% { 
        transform: translate(6%, -8%) scale(1.15) rotate(-0.2deg);
        opacity: 0.2;
    }
}

@keyframes distantNebula {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.2;
    }
    50% { 
        transform: translate(5%, -5%) scale(1.08) rotate(0.1deg);
        opacity: 0.4;
    }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.9; }
    15% { opacity: 0.4; }
    30% { opacity: 1; }
    45% { opacity: 0.3; }
    60% { opacity: 0.8; }
    75% { opacity: 0.2; }
    90% { opacity: 0.7; }
}

@keyframes starShimmer {
    0%, 100% { opacity: 0.6; }
    25% { opacity: 0.2; }
    50% { opacity: 0.9; }
    75% { opacity: 0.1; }
}

@keyframes distantStarGlow {
    0%, 100% { opacity: 0.3; }
    33% { opacity: 0.6; }
    66% { opacity: 0.1; }
}

@keyframes shootingStar1 {
    0% { 
        transform: translateX(-100px) translateY(-100px) rotate(45deg);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(45deg);
        opacity: 0;
    }
}

@keyframes shootingStar2 {
    0% { 
        transform: translateX(-80px) translateY(-80px) rotate(30deg);
        opacity: 0;
    }
    15% { 
        opacity: 0.8;
    }
    85% { 
        opacity: 0.8;
    }
    100% { 
        transform: translateX(calc(100vw + 80px)) translateY(calc(100vh + 80px)) rotate(30deg);
        opacity: 0;
    }
}

/* --------------------------------------
SECTION 3: Mouse Trail Effect - Enhanced cursor trail
-------------------------------------- */
.mouse-trail {
    position: fixed;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, opacity 0.2s ease;
    opacity: 0.9;
    mix-blend-mode: screen;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.mouse-trail.active {
    transform: scale(1.3);
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 107, 53, 1), transparent);
}

.trail-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: fadeOut 1s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.trail-particle.large {
    width: 12px;
    height: 12px;
    animation: fadeOutLarge 1.5s ease-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 0.9; transform: scale(1) translate(0, 0); }
    100% { opacity: 0; transform: scale(0.5) translate(calc(var(--dx) * 10px), calc(var(--dy) * 10px)); }
}

@keyframes fadeOutLarge {
    0% { opacity: 0.8; transform: scale(1) translate(0, 0); }
    100% { opacity: 0; transform: scale(0.3) translate(calc(var(--dx) * 15px), calc(var(--dy) * 15px)); }
}

/* --------------------------------------
SECTION 4: Header Styles - CardChase navigation
-------------------------------------- */
.header {
    z-index: 1000;
    background: none;
    border: none;
    box-shadow: none;
    transition: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff6b35, #ff8f5a);
    border-radius: 1px;
}

.nav-links a.cta-nav {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nav-links a.cta-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.mobile-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:hover {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.1);
}

.mobile-menu a.cta-nav {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    color: #ffffff !important;
    border-radius: 100px;
    margin: 2rem 0;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.mobile-menu a.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* --------------------------------------
SECTION 5: Print Hero Section - Tool introduction
-------------------------------------- */
.print-hero {
    padding: 4rem 2rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.print-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b35 50%, #ff8f5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.print-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --------------------------------------
SECTION 6: Selection Status Bar - Shows selected card count
-------------------------------------- */
.selection-status {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    margin: 0 auto 2rem;
    max-width: 600px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    animation: slideInFromTop 0.5s ease-out;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4caf50;
    font-weight: 500;
}

.selection-info i {
    font-size: 1.1rem;
}

.clear-all-btn {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-all-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
    transform: translateY(-1px);
}

@keyframes slideInFromTop {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------
SECTION 7: Glass Card Components - Premium card styling
-------------------------------------- */
.glass-card {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 107, 53, 0.2);
}

.glass-card-light {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.glass-card-light:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 53, 0.1);
}

/* Card Selection States */
.glass-card-light.selected {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.05);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
}

.glass-card-light.selected::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    z-index: 10;
}

.glass-card-light.selected::after {
    content: '\f00c'; /* Font Awesome check icon */
}

/* Selection animation */
@keyframes cardSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.glass-card-light.selecting {
    animation: cardSelect 0.3s ease-out;
}

/* --------------------------------------
SECTION 8: Form Styling - Modern input design
-------------------------------------- */
.input-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
}

.input-modern:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.input-modern option {
    background: #1a1a1a;
    color: #ffffff;
}

/* --------------------------------------
SECTION 9: Button Styling - Premium button design
-------------------------------------- */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.4);
}

.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.1);
}

/* --------------------------------------
SECTION 10: Floating Printer Button - Shopping cart style
-------------------------------------- */
.floating-printer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: floatIn 0.5s ease-out;
}

.printer-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.printer-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
}

.printer-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
    animation: badgePulse 2s infinite;
}

@keyframes floatIn {
    0% { transform: translateY(100px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* --------------------------------------
SECTION 11: Print Modal - Full screen selection management
-------------------------------------- */
.print-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.print-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.print-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.print-modal-overlay.active .print-modal {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    color: #ff6b35;
}

.close-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Modal Content */
.modal-content {
    flex: 1;
    padding: 0 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

/* Modal Controls */
.modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-sort-container {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 600px;
}

.modal-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.modal-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.selection-search-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 8px;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.selection-search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modal-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sort-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.selection-sort-select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.clear-selection-btn {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.clear-selection-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
}

/* Selected Cards Grid */
.selected-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.selected-card-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.selected-card-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.selected-card-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.selected-card-info h4 {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.selected-card-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 0.125rem;
}

.remove-card-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(244, 67, 54, 0.8);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.remove-card-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Empty Selection State */
.empty-selection {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-selection i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.empty-selection h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Print Options Section */
.print-options-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.print-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.option-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-label {
    color: #ffffff;
    font-weight: 500;
}

.option-warning {
    font-size: 0.75rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.print-tip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.print-tip i {
    color: #3b82f6;
}

/* Modal Footer */
.modal-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.selection-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.limit-warning {
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.print-button {
    min-width: 200px;
}

/* --------------------------------------
SECTION 12: Toggle Switch Styling - Modern toggles
-------------------------------------- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ff6b35, #ff8f5a);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* --------------------------------------
SECTION 13: Loading Overlay - Premium loading UI
-------------------------------------- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ff6b35, #ff8f5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-message {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8f5a);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.loading-details {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.checkmark {
    color: #4caf50;
    font-size: 3rem;
    animation: checkmarkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 0 auto 1.5rem;
    display: block;
}

@keyframes checkmarkPop {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* --------------------------------------
SECTION 14: Toast Notification - Selection feedback
-------------------------------------- */
.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    background: rgba(76, 175, 80, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-weight: 500;
    font-size: 0.9rem;
}

/* --------------------------------------
SECTION 15: Card Results Grid - Result display styling
-------------------------------------- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card-result {
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-result:hover {
    transform: translateY(-8px) rotateX(5deg);
}

.set-logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
    max-width: 128px;
    max-height: 128px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px;
    margin: 0 auto;
    display: block;
}

.card-image {
    width: 160px;
    height: 220px;
    object-fit: contain;
    max-width: 160px;
    max-height: 220px;
    border-radius: 12px;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
}

.card-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.card-details {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.card-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.detail-label {
    color: rgba(255, 255, 255, 0.5);
}

.detail-value {
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------
SECTION 16: Section Headers - Consistent section styling
-------------------------------------- */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

/* --------------------------------------
SECTION 17: Responsive Design - Mobile optimization
-------------------------------------- */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .print-hero {
        padding: 2rem 1rem;
    }

    .print-hero h1 {
        font-size: 2.5rem;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .glass-card {
        margin: 0 0.5rem;
    }

    .selection-status {
        margin: 0 1rem 2rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .floating-printer {
        bottom: 20px;
        right: 20px;
    }

    .print-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-header, .modal-footer {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 0 1.5rem;
    }

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

    .search-sort-container {
        flex-direction: column;
        max-width: none;
    }

    .print-options-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .print-button {
        min-width: 100%;
    }

    .selected-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .toast-notification {
        right: 20px;
        bottom: 90px;
    }
}

/* --------------------------------------
SECTION 18: Utility Classes - Helper classes
-------------------------------------- */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-500 { color: #6b7280; }
.text-red-400 { color: #f87171; }
.text-yellow-400 { color: #fbbf24; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.transition-all { transition: all 0.3s ease; }

.block { display: block; }
.cursor-pointer { cursor: pointer; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.bg-yellow-500 { background-color: #eab308; }
.bg-opacity-20 { background-opacity: 0.2; }
.border { border-width: 1px; }
.border-yellow-500 { border-color: #eab308; }
.border-opacity-30 { border-opacity: 0.3; }

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* --------------------------------------
SECTION 19: Fade In Animations - Scroll animations
-------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --------------------------------------
SECTION 20: Image Skeleton Loader - Loading placeholders
-------------------------------------- */
.image-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes skeletonLoading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}