/* //////////////////////////////////////
// CARDCHASE™ ELEVATED SEARCH STYLES
// Premium space-themed design system
////////////////////////////////////// */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* //////////////////////////////////////
// SECTION 1: GLOBAL STYLES & RESETS
////////////////////////////////////// */
* {
    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;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* //////////////////////////////////////
// SECTION 2: DEEP SPACE BACKGROUND ANIMATION
////////////////////////////////////// */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background: #000000;
    overflow: hidden;
}

.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);
}

.bg-animation .star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        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),
        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),
        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);
    animation: starTwinkle 6s ease-in-out infinite;
}

.bg-animation .star-field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        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);
    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: 
        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);
    animation: distantStarGlow 12s ease-in-out infinite 3s;
}

.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;
}

/* Space 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
////////////////////////////////////// */
.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 & NAVIGATION
////////////////////////////////////// */
.header {
    position: relative;
    z-index: 1000;
    background: none;
    border: none;
    box-shadow: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 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;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    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 {
    color: #ffffff;
}

.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);
}

.nav-links a.active {
    color: #ffffff;
    font-weight: 600;
}

.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;
}

/* 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: 10002;
    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: HERO SECTION
////////////////////////////////////// */
.hero-search {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    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.04em;
    line-height: 1.1;
    animation: heroGlow 4s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.6;
    animation: slideUp 1s ease 0.3s both;
}

@keyframes heroGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.2)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.4)); }
}

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

/* //////////////////////////////////////
// SECTION 6: MAIN CONTAINER & LAYOUT
////////////////////////////////////// */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* //////////////////////////////////////
// SECTION 7: TAB NAVIGATION
////////////////////////////////////// */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.tab-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.tab-button:hover::before {
    left: 100%;
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 143, 90, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
}

.tab-button:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.tab-button.active .tab-icon {
    opacity: 1;
}

/* //////////////////////////////////////
// SECTION 8: GLASS CARDS & CONTAINERS
////////////////////////////////////// */
.glass-card-premium {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

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

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

.glass-card-premium:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* //////////////////////////////////////
// SECTION 8: GLASS CARDS & CONTAINERS
////////////////////////////////////// */
.glass-card-premium {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: visible;
}

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

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

.glass-card-premium:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* //////////////////////////////////////
// SECTION 9: SEARCH FORM STYLES
////////////////////////////////////// */
.search-form-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

.input-group {
    position: relative;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.premium-input, .premium-select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.premium-input:focus, .premium-select:focus {
    outline: none;
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: rgba(15, 15, 15, 0.9);
}

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

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #ff8f5a);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.premium-input:focus + .input-underline,
.premium-select:focus + .input-underline {
    width: 100%;
}

/* //////////////////////////////////////
// SECTION 10: DROPDOWN STYLES
////////////////////////////////////// */
.dropdown-container {
    position: relative;
}

.premium-dropdown {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-dropdown:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(15, 15, 15, 0.9);
}

.dropdown-text {
    color: #ffffff;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ffffff;
}

/* //////////////////////////////////////
// SECTION 11: LANGUAGE SELECTION GRID
////////////////////////////////////// */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
}

.language-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.language-option:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.2);
}

.language-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
    border-radius: 4px;
}

.language-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.language-option:hover .language-name {
    color: #ffffff;
}

.checkbox-glow {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 143, 90, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-option:has(.language-checkbox:checked) .checkbox-glow {
    opacity: 1;
}

/* //////////////////////////////////////
// SECTION 12: PREMIUM BUTTON STYLES
////////////////////////////////////// */
.button-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary-premium, .btn-secondary-premium, .btn-ebay-premium {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-premium {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
}

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

.btn-secondary-premium {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ef4444;
}

.btn-secondary-premium:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-1px);
}

.btn-ebay-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000000;
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.3);
}

.btn-ebay-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
}

.btn-glow {
    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-premium:hover .btn-glow,
.btn-ebay-premium:hover .btn-glow {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* //////////////////////////////////////
// SECTION 13: ERROR MESSAGES
////////////////////////////////////// */
.error-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: errorSlide 0.3s ease;
}

.error-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.error-text {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* //////////////////////////////////////
// SECTION 14: RESULTS GRID
////////////////////////////////////// */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.sets-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card-container {
    position: relative;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.card-container::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;
}

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

.card-container:hover {
    transform: translateY(-8px);
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card-container:hover .card-image {
    transform: scale(1.02);
}

.card-info > * + * {
    margin-top: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

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

.card-details p {
    margin-bottom: 0.25rem;
}

/* //////////////////////////////////////
// SECTION 15: TYPE BADGES
////////////////////////////////////// */
.type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* //////////////////////////////////////
// SECTION 16: ACTION BUTTONS (eBay, etc.)
////////////////////////////////////// */
.ebay-button-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.btn-ebay, .btn-search-more {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-ebay {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000000;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-ebay:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
}

.btn-search-more {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-search-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* eBay Buttons Container */
.ebay-buttons-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-ebay-premium {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-ebay-listed {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-ebay-sold {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-ebay-premium:hover {
    transform: translateY(-2px);
}

.btn-ebay-listed:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-ebay-sold:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-ebay-premium .btn-glow {
    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-ebay-premium:hover .btn-glow {
    left: 100%;
}
/* //////////////////////////////////////
// SECTION 17: NO RESULTS STATE
////////////////////////////////////// */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-results p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* //////////////////////////////////////
// SECTION 18: MODAL STYLES
////////////////////////////////////// */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 50;
    padding: 2rem;
}

.modal-container {
    max-width: 6xl;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
}

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

.modal-close-btn:hover {
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.1);
}

.modal-content {
    padding: 2rem;
}

/* //////////////////////////////////////
// SECTION 19: IMAGE MODAL
////////////////////////////////////// */
.image-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 60;
    padding: 2rem;
}

.image-modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.image-modal-close:hover {
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.1);
}

.image-modal-content {
    max-width: none;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-wrapper {
    text-align: center;
}

.huge-image {
    max-height: 85vh;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-title {
    margin-top: 1.5rem;
}

.image-modal-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* //////////////////////////////////////
// SECTION 20: EXPANDED MODAL LAYOUT
////////////////////////////////////// */
.modal-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .modal-layout {
        flex-direction: row;
        gap: 3rem;
    }
}

.modal-image-section {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .modal-image-section {
        flex: 0 0 40%;
        margin: 0;
    }
}

.modal-details-section {
    flex: 1;
    min-width: 0;
}

.modal-image-container {
    position: relative;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-image-container:hover {
    transform: scale(1.02);
}

.modal-card-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.modal-image-container:hover .image-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.image-zoom-indicator {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-image-container:hover .image-zoom-indicator {
    opacity: 1;
}

.image-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 300;
}

.card-header {
    margin-bottom: 2rem;
}

.card-name {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.details-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 0.9rem;
}

.info-value {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.9rem;
}

.abilities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ability-item {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 1rem;
}

.ability-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.ability-effect {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.attacks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.attack-item {
    border-left: 2px solid rgba(220, 38, 38, 0.3);
    padding-left: 1rem;
}

.attack-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.attack-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
}

.attack-damage {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.attack-cost {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.attack-effect {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* //////////////////////////////////////
// SECTION 21: EBAY MODAL SPECIFIC
////////////////////////////////////// */
.ebay-modal-container {
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.ebay-modal-content {
    padding: 2.5rem;
}

.ebay-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ebay-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ebay-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: -0.02em;
}

.ebay-card-details {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ebay-card-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.grade-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* //////////////////////////////////////
// SECTION 21: TAB CONTENT
////////////////////////////////////// */
.tab-content {
    transition: opacity 0.3s ease-in-out;
}

.tab-content.hidden {
    display: none;
}

/* //////////////////////////////////////
// SECTION 22: LOADING STATES
////////////////////////////////////// */
.loading-spinner {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.section-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.section-card .loading-spinner {
    margin-bottom: 1rem;
}

/* //////////////////////////////////////
// SECTION 23: FADE IN ANIMATIONS
////////////////////////////////////// */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* //////////////////////////////////////
// SECTION 24: UTILITY CLASSES
////////////////////////////////////// */
.hidden {
    display: none !important;
}

.text-primary { 
    color: #ffffff; 
}

.text-secondary { 
    color: rgba(255, 255, 255, 0.7); 
}

.text-tertiary { 
    color: rgba(255, 255, 255, 0.5); 
}

.text-accent { 
    color: rgba(255, 255, 255, 0.9); 
}

/* //////////////////////////////////////
// SECTION 25: RESPONSIVE DESIGN
////////////////////////////////////// */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .hero-search {
        min-height: 30vh;
        padding: 1rem;
    }

    .main-container {
        padding: 0 1rem;
    }

    .search-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .tab-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .language-grid {
        grid-template-columns: 1fr;
        max-height: 200px;
    }

    .modal-backdrop {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .ebay-modal-content {
        padding: 2rem;
    }

    .image-modal-backdrop {
        padding: 1rem;
    }

    .huge-image {
        max-height: 80vh;
    }

    .dropdown-menu {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .tab-navigation {
        margin-bottom: 2rem;
    }

    .glass-card-premium {
        padding: 1.5rem;
    }

    .search-form-grid {
        gap: 1rem;
    }

    .language-grid {
        padding: 1rem;
        grid-template-columns: 1fr;
    }

    .dropdown-menu {
        max-height: 200px;
    }
}

/* //////////////////////////////////////
// SECTION 26: PERFORMANCE OPTIMIZATIONS
////////////////////////////////////// */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-animation, .bg-animation::before, .bg-animation::after,
    .bg-animation .star-field, .bg-animation .star-field::before, 
    .bg-animation .star-field::after, .bg-animation .shooting-stars::before,
    .bg-animation .shooting-stars::after {
        animation: none !important;
    }
}