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

:root {
    --bg-color: #050608;
    --surface-color: rgba(18, 20, 26, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --accent: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }

    .desktop-only {
        display: none !important;
    }

    .topbar-inner {
        padding: 0.5rem 0.75rem !important;
        gap: 0.5rem !important;
    }

    .logo img {
        height: 28px !important;
    }

    .topbar-right {
        gap: 0.5rem !important;
    }

    .btn-dropdown {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }

    .btn-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .btn-icon i,
    .btn-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .topbar-center {
        display: none !important;
    }

    .topbar.search-active .topbar-center {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        z-index: 100;
        padding: 0.5rem;
    }

    .topbar.search-active .topbar-search {
        max-width: 100%;
    }

    .auth-link.btn-dropdown {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Gradients */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header / Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 6, 8, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.topbar.scrolled {
    background: rgba(5, 6, 8, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-center {
    flex: 1;
    max-width: 600px;
}

.topbar-search {
    position: relative;
}

.topbar-search i,
.topbar-search svg {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.topbar-search input:focus {
    position: relative;
    z-index: 9;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Mobile/Tablet Sidebar (Collapsed by default) */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(10, 11, 14, 0.95);
    backdrop-filter: blur(30px);
    z-index: 2000;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: transform 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Custom Scrollbar for Chrome/Safari */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

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

/* Dashboard Mode (Large Desktops Only) */
@media (min-width: 1025px) {
    .topbar-left {
        display: none;
    }

    .sidebar {
        left: 0 !important;
        transform: none !important;
        background: #0a0b0e;
        width: 320px;
        padding: 2rem;
    }

    .topbar {
        left: 320px !important;
        width: calc(100% - 320px) !important;
    }

    .main-content,
    .main-footer {
        margin-left: 320px !important;
    }

    .btn-menu,
    .btn-close {
        display: none !important;
    }

    .sidebar-header {
        justify-content: center;
    }
}

.sidebar.active {
    transform: translateX(320px);
}

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

.sidebar-links {
    list-style: none;
    flex: 1;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1.25rem;
}

.sidebar-links a.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Specific styling for Collections (Icon-less & Compact) */
#sidebar-categories a {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

#sidebar-categories a:hover {
    opacity: 1;
    padding-left: 1.2rem;
}

.sidebar-section {
    padding-top: 1rem;
}

.sidebar-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    opacity: 0.5;
}

.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.social-icons i,
.social-icons svg {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn-menu,
.btn-close,
.btn-icon,
.btn-dropdown {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-menu,
.btn-close,
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.btn-menu:hover,
.btn-close:hover,
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.btn-dropdown {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.btn-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.category-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    background: rgba(18, 20, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 200px;
    display: none;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Main Content Padding */
.main-content {
    padding-top: 100px;
}

/* Hero Section / Comparison Area */
.hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    margin-bottom: 4rem;
}

.comparison-card {
    height: fit-content;
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    border: 1px border-color var(--border-color);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.comparison-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    text-align: center;
    padding: 2rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* The actual WebGL canvas and Slider logic */
#comparison-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.compare-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    z-index: 10;
    pointer-events: none;
    /* Let parent handle logic or use a handle */
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 11;
    pointer-events: auto;
    cursor: grab;
}

.slider-handle:active {
    cursor: grabbing;
}

.label-before,
.label-after {
    position: absolute;
    top: 20px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

/* Control Panel */
.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
}

.panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lut-info {
    margin-top: 1rem;
}

.lut-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.lut-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.download-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.btn-primary {
    background: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

#file-input {
    display: none;
}

/* Grid Section */
.catalog-section {
    margin-top: 4rem;
}

.category-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 0.4rem 0.8rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn:hover {
    background: var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.category-btn.active .category-count {
    opacity: 0.8;
}

.lut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.lut-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lut-card-preview {
    margin-top: -20px;
    position: relative;
    width: 100%;
    background: #000;
}

.lut-card-preview canvas {
    width: 100%;
    height: auto;
    display: block;
    z-index: 4;
}

.lut-card-content {
    padding: 1.25rem;
}

.lut-card-labels {
    position: absolute;
    top: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 5 !important;
}

.lut-card:hover .lut-card-labels {
    opacity: 0.6;
}

.lut-card-labels .label-mini {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

.lut-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.lut-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
}

.lut-card:hover::after {
    opacity: 0.05;
}

.lut-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.lut-card * {
    position: relative;
    z-index: 1;
}

.lut-card-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.lut-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .panel {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 32px;
    }

    .sidebar-links a {
        color: var(--text-primary) !important;
    }

    .sidebar {
        background: #00000099 !important;
    }

    .topbar-search input:focus {
        background: #000 !important;
    }

    .container {
        padding: 1rem;
    }

    header {
        margin-bottom: 1.5rem;
    }

    .hero {
        gap: 1rem;
    }

    .lut-grid {
        grid-template-columns: 1fr;
    }
}

/* Loader and Infinite Scroll */
.loader-container {
    display: none;
    justify-content: center;
    padding: 3rem 0;
    width: 100%;
}

.loader-container.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#scroll-sentinel {
    width: 100%;
    height: 1px;
    margin-top: 10px;
}

.category-count {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-left: -0.4rem;
    margin-top: 3px;
    font-weight: 400;
}

/* Product Card Download Button */
.btn-download-mini {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-download-mini:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Product Page Specific */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--text-primary);
    transform: translateX(-4px);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin-bottom: 5rem;
}

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

/* New Sections */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features */
.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Collections */
.collections-section {
    padding: 6rem 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.collection-card {
    position: relative;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
}

.collection-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .collection-image {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    transition: var(--transition);
}

.collection-card:hover .collection-overlay {
    background: linear-gradient(to top, rgba(139, 92, 246, 0.4) 0%, transparent 100%);
}

.collection-overlay h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.collection-overlay span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 4rem 3rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.testimonial-content {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-author div {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Newsletter */
.newsletter-section {
    padding: 6rem 0;
}

.newsletter-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 5rem 3rem;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.1;
    z-index: -1;
}

.newsletter-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-card p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: white;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer Overhaul */
.main-footer {
    background: #08090b;
    border-top: 1px solid var(--border-color);
    padding: 8rem 0 4rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #ffffff1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-social i,
.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-info .logo {
    margin-bottom: 1.2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sort Select Styling Update */
.catalog-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.sort-wrapper {
    position: relative;
    display: inline-block;
}

.sort-wrapper .btn-dropdown {
    min-width: 130px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.sort-wrapper .dropdown-menu {
    width: 100%;
    min-width: 130px;
    right: 0;
    left: auto;
    background: rgba(18, 20, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.4rem;
}

.sort-wrapper .dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
    text-align: left;
}

.sort-wrapper .dropdown-item.active {
    background: var(--primary-glow);
    color: var(--primary);
}

/* Responsive Updates */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2rem !important;
    }

    /* Hide horizontal UI elements */
    .topbar-center,
    .category-dropdown {
        display: none !important;
    }

    /* Show mobile search trigger */
    .mobile-search-toggle {
        display: flex !important;
    }

    /* Active Search Mode in Topbar */
    .topbar.search-active .topbar-center {
        display: flex !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-card);
        z-index: 100;
        padding: 0 1rem;
        align-items: center;
    }

    .topbar.search-active .topbar-search {
        max-width: 100%;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        left: -100%;
    }

    /* Sidebar Collection Styling */
    .sidebar-section {
        margin-top: 1rem;
        padding: 0 0rem;
    }

    .sidebar-section-title {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-secondary);
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .sidebar-links .category-count {
        margin-left: auto;
        opacity: 0.4;
        font-size: 0.8rem;
    }

    .sidebar.active {
        transform: translateX(100%);
    }
}

.mobile-search-toggle {
    display: none;
}

/* Info Pages: Common */
.section-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Page */
.about-hero {
    padding: 4rem 0;
    max-width: 900px;
    margin: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.about-card {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-card h3 i,
.about-card h3 svg {
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 6rem;
    background: rgba(139, 92, 246, 0.05);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 600;
}

/* FAQ Page */
.faq-container {
    max-width: 800px;
    margin: 0 auto 6rem;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question i,
.faq-question svg {
    transition: var(--transition);
    color: var(--text-secondary);
}

.faq-item.active .faq-question i,
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding-bottom: 2rem;
    max-height: 500px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.contact-form-card {
    background: var(--surface-color);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-card i,
.info-card svg {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card h4 {
    margin-bottom: 0.25rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .about-card {
        padding: 2rem;
    }

    .contact-form-card {
        padding: 2rem;
    }
}

/* Empty State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-color);
    border-radius: 20px;
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
}

/* --- Mesmerizing Hero Section --- */
.main-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    margin-top: -80px;
    /* Pull into topbar area */
    padding: 120px 2rem 80px;
    z-index: 1;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 6, 8, 0.2) 0%, rgba(5, 6, 8, 0.95) 100%),
        linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-text-wrapper {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--primary-glow);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-text-wrapper h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-wrapper p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-glow {
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 50px var(--primary-glow);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preview Tool Spacing */
.preview-tool {
    padding: 10rem 0;
}

@media (max-width: 768px) {
    .main-hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-text-wrapper h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .hero-text-wrapper p {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* --- Global Image Selector Bar (16:9 Responsive) --- */
.image-selector-bar {
    background: rgba(26, 27, 32, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
}

@media (min-width: 1025px) {
    .image-selector-bar {
        left: 320px !important;
        width: calc(100% - 320px) !important;
    }
}

.selector-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    /* Mobile Padding */
}

@media (min-width: 1025px) {
    .selector-content {
        padding: 0.5rem 2rem;
    }
}

.selector-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 48px;
    /* Mobile Height */
}

@media (min-width: 1025px) {
    .selector-row {
        height: 100px;
        /* Desktop Height */
    }
}

.selector-items-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.selector-items-container::-webkit-scrollbar {
    display: none;
}

.selector-list {
    display: flex;
    gap: 1rem;
    /* Gap: 1rem */
}

.selector-item {
    width: 80px;
    /* Mobile Width */
    height: 45px;
    /* Mobile Height (16:9) */
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

@media (min-width: 1025px) {
    .selector-item {
        width: 160px;
        /* Desktop Width */
        height: 90px;
        /* Desktop Height (16:9) */
        border-radius: 10px;
    }
}

.selector-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.selector-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.selector-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selector-label {
    display: none;
}

.action-btns {
    display: flex;
    gap: 0.5rem;
}

@media (min-width: 1025px) {
    .selector-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        padding-top: 0.2rem;
    }

    .selector-label {
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-secondary);
        opacity: 0.8;
        white-space: nowrap;
    }
}

.btn-action-round {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action-round span {
    display: none;
}

@media (min-width: 1025px) {
    .btn-action-round {
        width: 40px;
        height: 40px;
    }

    #image-selector-upload-btn {
        width: auto;
        padding: 0 1.25rem;
        border-radius: 30px;
        gap: 0.6rem;
    }

    #image-selector-upload-btn span {
        display: inline;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

.btn-action-round:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* Static padding for fixed bar - Only on preview-enabled pages */
[data-page="catalog"] .main-footer,
[data-page="category"] .main-footer,
[data-page="product"] .main-footer {
    padding-bottom: 64px !important;
}

@media (min-width: 1025px) {

    [data-page="catalog"] .main-footer,
    [data-page="category"] .main-footer,
    [data-page="product"] .main-footer {
        padding-bottom: 168px !important;
    }
}

[data-page="catalog"] body,
[data-page="category"] body,
[data-page="product"] body {
    padding-bottom: 64px;
}

@media (min-width: 1025px) {

    [data-page="catalog"] body,
    [data-page="category"] body,
    [data-page="product"] body {
        padding-bottom: 0px;
    }
}

/* Hide on search overlay */
.search-active .image-selector-bar {
    opacity: 0;
    pointer-events: none;
}

.dropdown-item>span.category-count {
    margin-left: 4px;
}

/* ChromaForge Promo V2 */
.chromaforge-promo-v2 {
    margin: 10rem 0;
    padding: 6rem 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.promo-v2-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.promo-v2-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.promo-v2-features.side-left {
    text-align: right;
}

.promo-v2-features.side-right {
    text-align: left;
}

.v2-feature-card {
    transition: var(--transition);
}

.v2-feature-card .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    transition: var(--transition);
}

.side-left .icon-box {
    margin-left: auto;
}

.v2-feature-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.v2-feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.v2-feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Center Visual */
.promo-v2-main {
    position: relative;
    z-index: 2;
}

.visual-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(104, 104, 104, 0.445);
    border-radius: 8px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transform: perspective(2000px) rotateX(5deg);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-wrapper:hover {
    transform: perspective(2000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 70px 120px rgba(0, 0, 0, 0.6);
}

.v2-promo-img {
    width: 100%;
    border-radius: 24px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-glow-v2 {
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

/* Responsive */
@media (max-width: 1200px) {
    .promo-v2-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .promo-v2-main {
        grid-column: span 2;
        order: -1;
        max-width: 900px;
        margin: 0 auto 4rem;
    }

    .promo-v2-features.side-left {
        text-align: left;
    }

    .side-left .icon-box {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .promo-v2-grid {
        grid-template-columns: 1fr;
    }

    .promo-v2-main {
        grid-column: span 1;
    }

    .chromaforge-promo-v2 {
        margin: 6rem 0;
        padding: 4rem 0;
    }
}