/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A0A0B;
    --primary-light: #1E293B;
    --accent-color: #1E40FF;
    --accent-hover: #1E3AD9;
    --accent-orange: #FF6B35;
    --accent-orange-hover: #FF8C42;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --text-dark: #0A0A0B;
    --text-gray: #64748B;
    --text-light: #94A3B8;
    --bg-gradient: linear-gradient(135deg, #FAFAFA 0%, #F5F5F7 100%);
    --bg-white: #FFFFFF;
    --bg-subtle: #F5F5F7;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(10, 10, 11, 0.08);
    --shadow-md: 0 4px 12px rgba(10, 10, 11, 0.08);
    --shadow-lg: 0 10px 40px rgba(10, 10, 11, 0.12);
    --shadow-xl: 0 20px 60px rgba(10, 10, 11, 0.15);
    --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                   box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                   border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                   background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                   color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                   opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                        border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                        background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                        color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-gradient);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.comparison-page .main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison-page .main-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo menu extras";
    align-items: center;
    gap: 1.75rem;
}

.comparison-page .nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    justify-self: start;
    grid-area: logo;
}

.comparison-page .logo-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s ease;
}

.comparison-page .logo-symbol svg {
    width: 28px;
    height: 28px;
}

.comparison-page .nav-logo:hover .logo-symbol {
    border-color: #cbd5f5;
}

.comparison-page .brand-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.comparison-page .brand-headline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comparison-page .brand-full {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    line-height: 1.2;
}

.comparison-page .beta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid rgba(67, 56, 202, 0.35);
}

.comparison-page .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 120;
    justify-self: end;
    grid-area: extras;
}

.comparison-page .nav-toggle:hover {
    background: #eff6ff;
    border-color: #cbd5f5;
}

.comparison-page .nav-toggle:active {
    transform: scale(0.95);
}

.comparison-page .nav-toggle:focus-visible {
    outline: 3px solid rgba(165, 180, 252, 0.6);
    outline-offset: 3px;
}

.comparison-page .nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.comparison-page .nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.comparison-page .nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.comparison-page .nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.comparison-page .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 90;
}

.comparison-page .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    justify-self: center;
    text-align: center;
    grid-area: menu;
}

.comparison-page .nav-menu li {
    list-style: none;
}

.comparison-page .nav-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.comparison-page .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.4;
}

.comparison-page .nav-menu a:hover,
.comparison-page .nav-menu a:focus-visible {
    color: var(--accent-color);
}

.comparison-page .nav-menu a:hover::after,
.comparison-page .nav-menu a:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.comparison-page .nav-menu a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.35);
    border-radius: 6px;
}

.comparison-page .nav-extras {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0;
    min-width: 0;
    justify-self: end;
    grid-area: extras;
}

.comparison-page .nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    background: linear-gradient(135deg, rgba(10, 15, 35, 0.92) 0%, rgba(23, 37, 84, 0.9) 55%, rgba(59, 130, 246, 0.88) 100%);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    min-height: 34px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(148, 197, 253, 0.08) inset;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.comparison-page .nav-chip:hover,
.comparison-page .nav-chip:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(191, 219, 254, 0.3) inset;
    border-color: rgba(191, 219, 254, 0.6);
    outline: none;
}

.comparison-page .nav-chip--streak {
    cursor: default;
    background: linear-gradient(135deg, rgba(255, 123, 49, 0.95) 0%, rgba(251, 191, 36, 0.95) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35), 0 0 0 1px rgba(255, 213, 153, 0.35) inset;
}

.comparison-page .nav-chip--streak:hover,
.comparison-page .nav-chip--streak:focus-visible {
    border-color: rgba(254, 215, 170, 0.6);
    box-shadow: 0 20px 40px rgba(251, 146, 60, 0.38), 0 0 0 1px rgba(255, 229, 180, 0.4) inset;
    transform: translateY(-1px);
}

.comparison-page .nav-chip--progress {
    cursor: pointer;
}

.comparison-page .beta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    line-height: 1.4;
    word-break: keep-all;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.comparison-page .beta-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4338ca, #60a5fa);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.streak-badge {
    background: linear-gradient(135deg, rgba(10, 15, 35, 0.92) 0%, rgba(23, 37, 84, 0.9) 55%, rgba(59, 130, 246, 0.88) 100%);
    border: 1px solid rgba(125, 211, 252, 0.45);
    color: #f8fafc;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(148, 197, 253, 0.08) inset;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.comparison-page.nav-open {
    overflow: hidden;
}

.comparison-page.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.comparison-page .nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.comparison-page .nav-pill-offer,
.comparison-page .nav-pill-about,
.comparison-page .nav-pill-compare {
    color: inherit;
}

@media (max-width: 1200px) {
    .comparison-page .main-nav {
        padding: 0 1.25rem;
        gap: 1.5rem;
    }

    .comparison-page .nav-menu {
        gap: 1.25rem;
    }
}

@media (max-width: 960px) {
    .comparison-page .main-nav {
        padding: 0 1.1rem;
        height: 64px;
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
    }

    .comparison-page .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .comparison-page .nav-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.92);
        width: min(94vw, 420px);
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.85rem 1.6rem;
        padding-bottom: calc(1.9rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(155deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 255, 0.94) 50%, rgba(228, 233, 255, 0.96) 100%);
        border: 1px solid rgba(191, 219, 254, 0.55);
        border-radius: 22px;
        box-shadow: 0 38px 90px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(191, 219, 254, 0.35) inset;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.32s ease, transform 0.32s ease;
        z-index: 140;
    }

    .comparison-page .nav-menu::before {
        content: "Menu beta";
        display: block;
        text-align: center;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: rgba(15, 23, 42, 0.6);
        margin-bottom: 1rem;
    }

    .comparison-page .nav-menu::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at 18% 18%, rgba(147, 197, 253, 0.25), transparent 55%),
                    radial-gradient(circle at 82% 78%, rgba(244, 114, 182, 0.2), transparent 60%);
        pointer-events: none;
        opacity: 0.75;
        z-index: -1;
    }

    .comparison-page .nav-extras {
        display: none;
    }

    .comparison-page .nav-menu.is-open,
    .comparison-page.nav-open .nav-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }

    .comparison-page .nav-menu li {
        width: 100%;
    }

    .comparison-page .nav-menu a {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
        padding: 0.9rem 1.15rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(191, 219, 254, 0.35);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(148, 163, 184, 0.18);
        color: #0f172a;
    }

    .comparison-page .nav-menu a::after {
        display: inline-flex;
        content: "\203A";
        font-size: 1.3rem;
        font-weight: 600;
        color: rgba(30, 64, 175, 0.65);
        transform: translateX(0);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .comparison-page .nav-menu a:focus-visible,
    .comparison-page .nav-menu a:hover {
        background: linear-gradient(135deg, rgba(226, 232, 255, 0.96), rgba(199, 210, 254, 0.94));
        border-color: rgba(148, 197, 255, 0.8);
        box-shadow: 0 24px 40px rgba(59, 130, 246, 0.22);
        color: var(--accent-color);
    }

    .comparison-page .nav-menu a:hover::after,
    .comparison-page .nav-menu a:focus-visible::after {
        color: var(--accent-color);
        transform: translateX(4px);
    }

    .comparison-page .nav-menu::-webkit-scrollbar {
        width: 6px;
    }

    .comparison-page .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.45);
        border-radius: 999px;
    }

    .comparison-page .beta-banner {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        text-align: center;
        line-height: 1.4;
    }
}

@media (max-width: 640px) {
    .comparison-page .main-nav {
        padding: 0 1rem;
        gap: 0.6rem;
    }

    .comparison-page .nav-logo {
        gap: 0.6rem;
    }

    .comparison-page .logo-symbol {
        width: 36px;
        height: 36px;
    }

    .comparison-page .logo-symbol svg {
        width: 22px;
        height: 22px;
    }

    .comparison-page .brand-full {
        font-size: 0.95rem;
    }

    .comparison-page .beta-badge {
        font-size: 0.56rem;
        letter-spacing: 0.1em;
    }

    .comparison-page .nav-menu {
        right: 1rem;
        left: 1rem;
        width: auto;
        padding: 1.6rem 1.3rem;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .comparison-page .main-nav {
        padding: 0 0.85rem;
        gap: 0.45rem;
        grid-template-columns: auto 1fr auto;
    }

    .comparison-page .brand-full {
        font-size: 0.88rem;
    }

    .comparison-page .beta-badge {
        font-size: 0.5rem;
    }

    .comparison-page .nav-menu {
        right: 0.85rem;
        left: 0.85rem;
        padding: 1.4rem 1.2rem;
    }

    .comparison-page .nav-menu a {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }

    .comparison-page .beta-banner {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.comparison-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1E293B 100%);
    color: white;
    padding: 8.5rem 1.5rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.comparison-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(30, 64, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.comparison-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.comparison-hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-title-main {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
    line-height: 1.05;
    text-wrap: balance;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 50%, #FFFFFF 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleFadeIn 1s ease-out, heroShimmer 3s ease-in-out infinite;
    animation-delay: 0s, 1s;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
}

@keyframes heroTitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    animation: heroSubtitleFadeIn 1s ease-out 0.2s backwards;
}

@keyframes heroSubtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-lead {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    color: #CBD5E1;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 2.5rem;
    background: white;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                background-color 0.3s ease,
                color 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.7s both;
    position: relative;
    z-index: 10;
    opacity: 1;
    will-change: transform;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(30, 64, 255, 0.4);
    opacity: 1;
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 10px 50px rgba(30, 64, 255, 0.4);
    }
}


/* ===================================
   COMPARISON LAYOUT
   =================================== */
.comparison-main {
    padding: 5rem 0 5rem;
    background: var(--bg-gradient);
    position: relative;
}

.comparison-main::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.05), transparent);
    pointer-events: none;
}

.comparison-layout {
    display: block;
}

/* ===================================
   FILTERS TOP
   =================================== */
.filters-top {
    background: var(--bg-white);
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    position: relative;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.filters-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #8B5CF6 100%);
    border-radius: 18px 18px 0 0;
}

.filters-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.filters-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-toggle-filters {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(30, 64, 255, 0.08);
    border: 1px solid rgba(30, 64, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent-color);
}

.btn-toggle-filters:hover {
    background: rgba(30, 64, 255, 0.15);
    border-color: rgba(30, 64, 255, 0.3);
}

.btn-toggle-filters svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-toggle-filters[aria-expanded="false"] svg {
    transform: rotate(-90deg);
}

.filters-top-title {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.filters-top-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.filters-top-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
}

.filters-top-body.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.filters-smart-scroll {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.25rem 0;
    position: relative;
}

.filters-smart-scroll .filters-presets-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 0.25rem 1.25rem;
}

.filters-smart-scroll .filters-presets-header h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dark);
    font-weight: 700;
}

.filters-smart-scroll .filters-presets-header p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-light);
    letter-spacing: 0.01em;
    max-width: 720px;
}

.filters-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
    justify-content: center;
    align-items: stretch;
}

.filters-trigger-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 150px;
    text-align: center;
}

.filter-trigger span:not(.trigger-icon) {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    line-height: 1.2;
    gap: 0.1rem;
}

.filter-trigger .trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(30, 64, 255, 0.1);
    font-size: 1rem;
    flex-shrink: 0;
}

.filter-trigger:hover,
.filter-trigger.is-active {
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, rgba(30, 64, 255, 0.08), rgba(59, 130, 246, 0.12));
    color: var(--accent-color);
}

.filter-trigger-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
}

.filter-trigger-toggle input {
    display: none;
}

.filter-trigger-toggle span {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.filter-trigger-toggle strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-trigger-toggle small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
}

.filter-trigger-toggle input:checked + .trigger-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.16));
    color: var(--accent-color);
}

.filter-trigger-toggle input:checked + .trigger-icon + span strong {
    color: var(--accent-color);
}

.btn-reset {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-color);
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
}

.btn-reset:hover {
    background: rgba(59, 130, 246, 0.14);
    color: var(--accent-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.filter-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.82) 100%);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08), 0 12px 28px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(14px);
}

.filter-card h3 {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.filter-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.filter-card-head p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    border-radius: 12px;
    background: rgba(30, 64, 255, 0.08);
    flex-shrink: 0;
}

.filter-preset {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.86) 100%);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.98rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    height: 100%;
    min-height: 130px;
    width: 100%;
}

.filter-preset span {
    font-size: 1.02rem;
}

.filter-preset small {
    display: block;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--text-light);
    max-width: 100%;
    letter-spacing: -0.01em;
}

.filter-preset:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-preset:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.filter-preset.is-active {
    background: linear-gradient(135deg, rgba(30, 64, 255, 0.12), rgba(16, 185, 129, 0.18));
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.16);
}

.filter-preset.is-active span {
    color: var(--accent-color);
}

.filter-preset.is-active small {
    color: #0F766E;
}

.price-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.55rem;
}

.filter-quick {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.02);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition-fast);
}

.filter-quick small {
    font-weight: 500;
    font-size: 0.76rem;
    color: var(--text-light);
}

.filter-quick:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(30, 64, 255, 0.08);
}

.filter-quick.is-active {
    border-color: rgba(37, 99, 235, 0.48);
    background: linear-gradient(135deg, rgba(30, 64, 255, 0.12), rgba(16, 185, 129, 0.16));
    color: var(--accent-color);
}

.filter-type-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
}

.filter-type-card {
    position: relative;
}

.filter-type-card input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.filter-type-shell {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    transition: var(--transition-fast);
    min-height: 86px;
}

.filter-type-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.filter-type-shell small {
    display: block;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.35;
}

.filter-type-card input[type="checkbox"]:checked + .filter-type-shell {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.14);
    background: linear-gradient(135deg, rgba(30, 64, 255, 0.12), rgba(59, 130, 246, 0.08));
}

.filter-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.7rem;
}

.filter-feature-card {
    position: relative;
}

.filter-feature-card input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.filter-feature-shell {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(253, 253, 255, 0.92);
    transition: var(--transition-fast);
}

.filter-feature-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-feature-shell small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.35;
}

.filter-feature-card input[type="checkbox"]:checked + .filter-feature-shell {
    border-color: rgba(16, 185, 129, 0.55);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(16, 185, 129, 0.12));
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.18);
}

.filter-sheets {
    grid-column: 1 / -1;
}

.filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-sheet[hidden] {
    display: none !important;
}

.filter-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
}

.filter-sheet-dialog {
    position: relative;
    width: min(520px, 92vw);
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.94) 100%);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
    overflow-y: auto;
}

.filter-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.filter-sheet-header h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.filter-sheet-subtitle {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.filter-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.18);
    color: var(--text-dark);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-sheet-close:hover {
    background: rgba(59, 130, 246, 0.18);
    color: var(--accent-color);
}

body.filter-sheet-open {
    overflow: hidden;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.price-separator {
    font-weight: 600;
    color: var(--text-light);
}

.price-input {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.price-input span {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-light);
}

.price-input input {
    width: 80px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
}

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

.price-input input[type="number"] {
    -moz-appearance: textfield;
}

.price-input input:focus {
    outline: none;
}

/* Price Slider */
.price-slider {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.slider-track {
    position: relative;
    height: 3px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.slider-range {
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    opacity: 0.55;
    border-radius: inherit;
}

/* Filter Radio & Checkbox */
.filter-radio,
.filter-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.2s ease;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: transparent;
}

.filter-radio:hover,
.filter-checkbox:hover {
    transform: none;
}

.filter-radio input[type="radio"],
.filter-checkbox input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.filter-radio span,
.filter-checkbox span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: var(--text-dark);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-radio:hover span,
.filter-checkbox:hover span {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(30, 64, 255, 0.12);
}

.filter-radio input[type="radio"]:focus-visible + span,
.filter-checkbox input[type="checkbox"]:focus-visible + span {
    outline: 3px solid rgba(59, 130, 246, 0.24);
    outline-offset: 2px;
}

.filter-radio input[type="radio"]:checked + span,
.filter-checkbox input[type="checkbox"]:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, #1E40FF 0%, #34D399 100%);
    box-shadow: 0 14px 30px -16px rgba(14, 116, 144, 0.7);
    color: #F8FAFC;
}

.filter-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.filter-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
}

/* ===================================
   COMPARISON CONTENT
   =================================== */
.comparison-content {
    min-width: 0;
}

/* Comparison toolbar */
.comparison-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, #FFFFFF 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
    margin-bottom: 1rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.toolbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.18) 100%);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.toolbar-chip svg {
    color: var(--primary-color);
}

.toolbar-count {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.toolbar-count #results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 0.75rem;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.toolbar-actions label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 600;
}

.toolbar-actions label svg {
    color: var(--accent-color);
}

.toolbar-actions select {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: var(--bg-white);
    transition: var(--transition-fast);
    font-weight: 500;
    min-width: 170px;
}

.toolbar-actions select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.toolbar-actions select:hover {
    border-color: var(--accent-color);
}

.comparison-content {
    min-width: 0;
}

/* Product tiles */
.tiles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tiles-caption {
    font-size: 0.95rem;
    color: var(--text-gray);
    max-width: 640px;
    line-height: 1.6;
}

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

.product-tile {
    background: var(--bg-white);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    position: relative;
}

.product-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

.tile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    text-align: center;
    width: 100%;
    border-radius: 24px 24px 0 0;
}

.tile-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1rem;
}

.tile-image {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.tile-brand {
    letter-spacing: 0.08em;
}

.tile-type {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-color);
    letter-spacing: 0;
}

.tile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.35;
    height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 600;
    flex-wrap: nowrap;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06) 0%, rgba(255, 165, 0, 0.06) 100%);
    margin: 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    height: 50px;
    flex-shrink: 0;
}

.tile-rating .stars {
    font-size: 1rem;
    color: #FFA500;
    letter-spacing: 0.1rem;
    line-height: 1;
}

.tile-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1.25rem;
    background: linear-gradient(135deg, rgba(30, 64, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(30, 64, 255, 0.08);
    height: 115px;
    flex-shrink: 0;
}

.tile-price-old {
    font-size: 0.875rem;
    color: rgba(100, 116, 139, 0.65);
    text-decoration: line-through;
    font-weight: 500;
    text-align: center;
}

.tile-price-current-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tile-price-current {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.03em;
    line-height: 1;
}

.tile-price-unit {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    align-self: flex-end;
    padding-bottom: 0.25rem;
}

.tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    justify-content: center;
    min-height: 76px;
    align-items: center;
    flex-shrink: 0;
}

.tile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0;
    transition: var(--transition-fast);
}

.tile-chip:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

.tile-chip-accent {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--accent-color);
}

.tile-chip-accent:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
}

.tile-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    padding: 0.5rem 1.25rem 1.25rem;
    text-align: center;
    min-height: 80px;
    flex-shrink: 0;
}

.tile-footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding: 0.5rem 1.5rem 1.5rem;
}

.tile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 14px;
    border: 2px solid rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
   color: #047857;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tile-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    will-change: transform;
}

.tile-toggle:hover::before {
    transform: translateX(100%);
}

.tile-toggle:hover,
.tile-toggle:focus-visible,
.product-tile.is-open .tile-toggle {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-color: #059669;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    outline: none;
}

.tile-toggle .toggle-icon {
    transition: transform 0.2s ease;
}

.product-tile.is-open .tile-toggle .toggle-icon {
    transform: rotate(180deg);
}

.tiles-empty {
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.5);
    text-align: center;
}

.tiles-empty p {
    margin: 0;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    max-width: 480px;
}

.tiles-reset {
    margin-top: 0.5rem;
}

.product-tile.is-open {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.12);
}

/* Modal */
.tile-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1200;
}

.tile-modal.is-visible {
    display: flex;
}

.tile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.25s ease;
}

.tile-modal-dialog {
    position: relative;
    background: rgba(248, 250, 252, 0.98);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.45);
    max-width: 720px;
    width: min(92vw, 720px);
    max-height: min(88vh, 780px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: scaleIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile-modal-scroll {
    overflow-y: auto;
    padding: 2rem 2.2rem 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tile-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tile-modal-close-icon {
    line-height: 1;
    transform: translateY(-1px);
}

.tile-modal-close:hover {
    background: rgba(59, 130, 246, 0.18);
    color: var(--accent-hover);
    transform: translateY(-1px);
}

.tile-modal-close:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
}

.tile-modal-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.tile-modal-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.tile-modal-image {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(239,246,255,0.9) 100%);
    border: 2px solid rgba(30, 64, 255, 0.08);
}

.tile-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

.tile-modal-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
    color: white;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(30, 64, 255, 0.35);
}

.tile-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.tile-modal-type {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tile-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
}

.tile-modal-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.tile-modal-rating .stars {
    font-size: 1.05rem;
    color: #fbbf24;
}

.tile-modal-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.tile-modal-price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.02em;
}

.tile-modal-price-unit {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.tile-modal-content {
    display: grid;
    gap: 1.25rem 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    padding: 1.5rem 0;
}

.tile-modal-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(239, 246, 255, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(30, 64, 255, 0.08);
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}

.tile-modal-section:hover {
    background: rgba(239, 246, 255, 0.65);
    border-color: rgba(30, 64, 255, 0.15);
    transform: translateY(-2px);
}

.tile-modal-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
}

.tile-modal-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

.tile-modal-price-old {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.tile-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.tile-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tile-modal-cta svg {
    transition: transform 0.3s ease;
}

.tile-modal-cta:hover svg {
    transform: translateX(3px) translateY(-3px);
}

body.modal-open {
    overflow: hidden;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.comparison-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    margin: 1rem 0 1.75rem;
    line-height: 1.5;
}

/* ===================================
   COMPARISON TABLE (DESKTOP)
   =================================== */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    position: relative;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 64, 175, 0.35) transparent;
    cursor: grab;
}

.table-caption {
    position: sticky;
    left: 1.5rem;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    z-index: 30;
}

.table-wrapper::before,
.table-wrapper::after {
    content: '';
    position: sticky;
    top: 0;
    width: 48px;
    pointer-events: none;
    z-index: 12;
    transition: opacity 0.3s ease;
}

.table-wrapper::before {
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0));
    opacity: 0;
}

.table-wrapper::after {
    right: 0;
    height: 100%;
    background: linear-gradient(270deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0));
    opacity: 1;
}

.table-wrapper.scrolled-middle::before,
.table-wrapper.scrolled-end::before {
    opacity: 1;
}

.table-wrapper.scrolled-end::after {
    opacity: 0;
}

.table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(30, 64, 175, 0.35);
    border-radius: 999px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 64, 175, 0.55);
}

.table-wrapper.is-dragging {
    cursor: grabbing;
}


.table-scroll-hint {
    position: sticky;
    right: 1.25rem;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #F8FAFC;
    font-weight: 600;
    font-size: 0.78rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    z-index: 30;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.table-scroll-hint svg {
    color: #C7D2FE;
}

.table-scroll-hint.is-hidden {
    opacity: 0;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--bg-white);
}

.comparison-table thead {
    position: sticky;
    top: 80px;
    z-index: 10;
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.comparison-table thead tr {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.comparison-table th,
.comparison-table td {
    padding: 1.35rem 1.1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    border-right: none;
}

.comparison-table th.sticky-col,
.comparison-table td.sticky-col {
    position: sticky;
    left: 0;
    z-index: 5;
    background: linear-gradient(90deg, var(--bg-subtle) 0%, var(--bg-white) 100%);
    font-weight: 700;
    text-align: left;
    font-size: 0.875rem;
    color: var(--text-dark);
    min-width: 180px;
}

.comparison-table thead th.sticky-col {
    z-index: 15;
    padding: 0;
    vertical-align: top;
    height: 100%;
}

.param-sections {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.param-section {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    background: transparent;
}

.param-product {
    /* Image wrapper (24+120+16=160px) + h3 (16+20+16=52px) = 212px */
    height: 212px;
    align-items: flex-end;
    padding-bottom: 1rem;
}

.param-rating {
    /* Rating padding + content: 16+16+16 = 48px */
    height: 48px;
}

.param-price {
    /* Price wrapper: 16 + ~40 + 32 = 88px */
    height: 88px;
    border-bottom: none;
}

/* Product Header in Table */
 .product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
    gap: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(255, 255, 255, 0.95) 45%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.1rem;
}

.product-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(51, 65, 85, 0.7);
}

.product-col {
    overflow: visible;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(255, 255, 255, 1) 45%);
    border-right: 1px solid var(--border-light);
}

.comparison-table th.product-col:last-child {
    border-right: none;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.35rem 1rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.product-header img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.product-header img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
    background: transparent;
    padding: 0 1.4rem 1.9rem;
}

.product-name-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.product-brand-line {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(51, 65, 85, 0.7);
}

.product-name-block h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    line-height: 1.28;
    margin: 0;
}

.product-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-stat {
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: rgba(71, 85, 105, 0.8);
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-value .price-current {
    font-size: 1.08rem;
    color: var(--accent-color);
    letter-spacing: -0.01em;
}

.stat-value .price-old {
    font-size: 0.7rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 600;
}

.stars {
    color: #F59E0B;
    font-size: 0.84rem;
    letter-spacing: 0.6px;
}

.rating-value {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 600;
}

.rating-count {
    font-size: 0.75rem;
    color: rgba(100, 116, 139, 0.85);
    font-weight: 600;
}

.rating-pill {
    background: linear-gradient(135deg, #FDE68A 0%, #FBBF24 100%);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 12px 24px rgba(251, 191, 36, 0.35);
}

.rating-pill .stars {
    color: #B45309;
    letter-spacing: 0.6px;
}

.rating-pill .rating-value {
    font-size: 0.85rem;
    color: #7C2D12;
    font-weight: 700;
}

.rating-pill .rating-count {
    font-size: 0.75rem;
    color: rgba(124, 45, 18, 0.75);
    font-weight: 600;
}



/* Badges */


.cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeInScale 0.4s ease-out;
}

.cost-badge.cost-best {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.card-description {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.card-description p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 500;
}

/* Table Body Rows */
.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.75);
}

.comparison-table tbody tr {
    transition: var(--transition-fast);
}

.comparison-table tbody tr:hover {
    background-color: #EFF6FF;
}

.icon-check {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.icon-cross {
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.availability {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.availability.in-stock {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
}

.availability.out-of-stock {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
}

/* CTA Row */
.comparison-table tbody th.sticky-col {
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    border-right: 1px solid var(--border-light);
}

.comparison-table tbody td {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 500;
}

.comparison-table tbody td .comparison-text {
    font-weight: 700;
}

.comparison-table tbody td .icon-check,
.comparison-table tbody td .icon-cross {
    font-weight: 700;
}

.comparison-table tbody td .serving-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.cta-row th,
.cta-row td {
    padding: 2rem 1rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
    min-width: 150px;
    min-height: 44px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.btn-cta::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.5s ease;
}

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

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-cta:active {
    transform: translateY(-1px);
}

/* ===================================
   FAQ SECTION
   =================================== */
/* ===================================
   QUANTUM FAQ INTERFACE
   =================================== */
.quantum-faq-section {
    position: relative;
    padding: clamp(4rem, 6vw, 6rem) 1.5rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 42%),
        #020617;
    color: #e2e8f0;
    overflow: hidden;
}

.quantum-faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.7;
    pointer-events: none;
}

.quantum-faq-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(59, 130, 246, 0.25), transparent 60%);
    pointer-events: none;
}

.quantum-shell {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(2.75rem, 4vw, 3.5rem);
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58));
    backdrop-filter: blur(18px);
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.55);
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    z-index: 1;
}

.quantum-shell::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    pointer-events: none;
}

.quantum-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.quantum-label {
    align-self: center;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.quantum-title {
    font-size: clamp(2.75rem, 6vw, 4rem);
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 800;
}

.quantum-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(148, 163, 184, 0.85);
    max-width: 50ch;
}

.quantum-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
}

.quantum-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: quantum-online 1.8s ease-in-out infinite;
}

@keyframes quantum-online {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    70% { box-shadow: 0 0 0 0.45rem rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.quantum-console {
    position: relative;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.18), transparent 55%);
    overflow: hidden;
}

.quantum-console::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.25) 50%, rgba(59, 130, 246, 0) 100%);
    mix-blend-mode: screen;
    opacity: 0.35;
    animation: quantum-scan 7s linear infinite;
}

@keyframes quantum-scan {
    0% { transform: translateX(-60%); }
    50% { transform: translateX(40%); }
    100% { transform: translateX(140%); }
}

.quantum-transcript {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2.25rem 2.25rem 1.5rem;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: none;
}

.quantum-transcript::-webkit-scrollbar {
    display: none;
}

.quantum-line {
    display: flex;
    width: 100%;
}

.quantum-line-system {
    justify-content: flex-start;
}

.quantum-line-user {
    justify-content: flex-end;
}

.quantum-line-assistant {
    justify-content: flex-start;
}

.quantum-bubble {
    font-size: 0.98rem;
    line-height: 1.65;
    color: inherit;
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(148, 163, 184, 0.09);
    max-width: min(560px, 100%);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(6px);
}

.quantum-line-user .quantum-bubble {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(129, 140, 248, 0.18));
    border-color: rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
}

.quantum-line-assistant .quantum-bubble {
    background: linear-gradient(145deg, rgba(21, 94, 117, 0.4), rgba(18, 126, 117, 0.28));
    border-color: rgba(34, 211, 238, 0.28);
    color: #ccfbf1;
}

.quantum-line-system .quantum-bubble {
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: #94a3b8;
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.7);
}

.quantum-line-pending .quantum-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(148, 163, 184, 0.75);
}

.quantum-typing-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.quantum-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #38bdf8;
    animation: quantum-blink 1.1s ease-in-out infinite;
}

.quantum-typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.quantum-typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes quantum-blink {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

.quantum-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.72);
}

.quantum-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #f8fafc;
    letter-spacing: 0.01em;
}

.quantum-input::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.quantum-input:focus {
    outline: none;
}

.quantum-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(99, 102, 241, 0.32));
    display: grid;
    place-items: center;
    color: #f8fafc;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quantum-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.4);
}

.quantum-send-icon {
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: currentColor;
    margin-left: 4px;
}

.quantum-suggestions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.quantum-suggestions-row,
.quantum-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.quantum-filter-bar {
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06);
}

.quantum-chip-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.quantum-chip-group--filters {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.quantum-hint {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.55);
}

.quantum-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.6rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    background: rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
    text-align: center;
}

.quantum-chip:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.18);
    color: #f0f9ff;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.18);
}

.quantum-chip.is-active {
    border-color: rgba(56, 189, 248, 0.6);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(129, 140, 248, 0.26));
    color: #f8fafc;
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.25);
}

.quantum-chip--filter {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.quantum-chip-group--filters .quantum-chip {
    justify-content: center;
}

@media (max-width: 900px) {
    .quantum-shell {
        padding: 2.25rem 2rem;
    }

    .quantum-transcript {
        padding: 1.75rem 1.75rem 1.25rem;
    }

    .quantum-chip-group {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .quantum-filter-bar {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .quantum-faq-section {
        padding: 3.5rem 1rem;
    }

    .quantum-shell {
        gap: 1.75rem;
        border-radius: 28px;
    }

    .quantum-filter-bar {
        padding: 0.9rem 1rem;
    }

    .quantum-chip-group {
        grid-template-columns: 1fr;
    }

    .quantum-chip-group--filters {
        grid-template-columns: 1fr;
    }

    .quantum-chip {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ===================================
   FLOATING FEEDBACK BUTTON
   =================================== */
.floating-feedback {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(30, 41, 59, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(203, 213, 225, 0.85);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(10, 10, 11, 0.15);
    z-index: 90;
    opacity: 0.7;
}

.floating-feedback:hover {
    opacity: 1;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.45);
    color: rgba(191, 219, 254, 1);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.floating-feedback svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .floating-feedback {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .floating-feedback svg {
        width: 18px;
        height: 18px;
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: linear-gradient(135deg, #0A0A0B 0%, #1E293B 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.footer-affiliate {
    background: rgba(30, 64, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-affiliate p {
    font-size: 0.875rem;
    color: #94A3B8;
    text-align: center;
    margin: 0;
    font-weight: 500;
    line-height: 1.65;
    max-width: 900px;
    margin: 0 auto;
}

.footer-main {
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-main p {
    margin: 0;
    opacity: 0.85;
    font-weight: 500;
    font-size: 0.95rem;
}

.update-date {
    font-size: 0.85rem;
    opacity: 0.65;
    color: #94A3B8;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-fast);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    opacity: 0.6;
    padding: 0 0.25rem;
}

.footer-feedback {
    color: rgba(148, 163, 184, 0.9) !important;
    font-size: 0.85rem !important;
    opacity: 0.75 !important;
    padding: 0.65rem 1.25rem !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.footer-feedback:hover {
    opacity: 1 !important;
    color: rgba(191, 219, 254, 1) !important;
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

/* ===================================
   MOBILE FILTER BUTTON
   =================================== */
.mobile-filter-btn {
    display: none;
}

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */
@media (max-width: 1024px) {
    .comparison-toolbar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .filters-top {
        padding: 1.35rem 1.4rem;
        margin-bottom: 1.75rem;
    }

    .filters-top-header {
        flex-wrap: wrap;
    }

    .filters-top-body {
        gap: 0.75rem;
    }

    .filters-presets-grid {
        justify-content: center;
        gap: 0.6rem;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .filters-trigger-row {
        gap: 0.5rem;
    }

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

    .product-tile {
        padding: 1.2rem 1.1rem 1.35rem;
    }

    .tile-header {
        gap: 0.85rem;
    }

    .tile-image {
        width: 80px;
        height: 80px;
    }

    .tile-modal-dialog {
        width: min(94vw, 620px);
    }

    .faq-accordion {
        gap: 1.1rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */
@media (max-width: 768px) {
    .comparison-toolbar {
        position: relative;
        top: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem 1.1rem;
    }

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

    .filter-pill-group {
        gap: 0.6rem;
    }

    .toolbar-left {
        justify-content: space-between;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .nav-extras {
        display: none;
    }

    .streak-badge {
        font-size: 0.72rem;
        padding: 0.4rem 0.7rem;
        margin-top: 0.5rem;
    }

    .filters-top {
        padding: 1.2rem 1.3rem;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .filters-top-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .filters-top-title {
        justify-content: flex-start;
    }

    .filters-top-body {
        gap: 0.65rem;
    }

    .filters-smart-scroll {
        padding: 0.6rem 0;
    }

    .filters-presets-grid {
        justify-content: center;
        gap: 0.55rem;
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .filter-trigger {
        flex: 1 1 auto;
        justify-content: center;
    }

    .filter-preset {
        width: 100%;
        max-width: none;
        min-height: auto;
        padding: 0.9rem 1rem;
    }

    .filter-preset span {
        font-size: 1.02rem;
    }

    .filter-preset small {
        font-size: 0.82rem;
    }

    .filter-sheet-dialog {
        width: min(95vw, 520px);
        padding: 1.4rem 1.35rem;
    }

    .tiles-wrapper {
        gap: 1.25rem;
    }

    .product-tiles {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .product-tile {
        padding: 1.2rem;
        gap: 1rem;
    }

    .tile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .tile-summary {
        align-items: center;
        gap: 0.55rem;
    }

    .tile-meta {
        justify-content: center;
    }

    .tile-tags {
        justify-content: center;
    }

    .tile-description {
        -webkit-line-clamp: 3;
        text-align: center;
    }

    .tile-footer {
        justify-content: center;
    }

    .tile-toggle {
        width: 100%;
    }

    .tile-modal-dialog {
        width: min(94vw, 520px);
        max-height: 90vh;
        border-radius: 20px;
    }

    .tile-modal-scroll {
        padding: 1.6rem 1.5rem 2rem;
    }

    .tile-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tile-modal-image {
        width: 120px;
        height: 120px;
    }

    .tile-modal-meta {
        align-items: center;
        gap: 0.5rem;
    }

    .tile-modal-type {
        align-self: center;
    }

    .tile-modal-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tile-modal-cta {
        width: 100%;
        justify-content: center;
    }

    .trust-badges {
        gap: 2rem;
    }

    .badge-number {
        font-size: 1.5rem;
    }

    /* Poprawki nagłówka Hero na mobile */
    .comparison-hero {
        padding: 6.75rem 1.35rem 4.75rem;
        min-height: auto;
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
    }

    .hero-title-main {
        font-size: clamp(1.6rem, 6vw, 2.3rem);
        line-height: 1.2;
        margin-bottom: 0.3rem;
        font-weight: 900;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        word-break: keep-all;
        hyphens: none;
        letter-spacing: -0.025em;
        filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.18));
        text-align: center;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1.15rem, 4.5vw, 1.7rem);
        line-height: 1.3;
        margin-bottom: 0.5rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.95);
        text-align: center;
        padding: 0 1rem;
    }

    .hero-lead {
        font-size: 0.92rem;
        margin-bottom: 2rem;
        line-height: 1.55;
    }

    /* Nawigacja */
    .main-header {
        padding: 0.65rem 0;
    }

    .main-nav {
        padding: 0 1.1rem;
        gap: 0.75rem;
    }

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

    .sort-controls {
        width: 100%;
    }

    #sort-select {
        flex: 1;
    }
}


@media (max-width: 480px) {
    /* Hero na bardzo małych ekranach */
    .hero-title-main {
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
        margin-bottom: 0.9rem;
        line-height: 1.4 !important;
        padding: 0 0.75rem !important;
        letter-spacing: -0.008em !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .hero-lead {
        font-size: 0.84rem;
        line-height: 1.5;
        padding: 0 0.35rem;
    }

    .comparison-hero {
        padding: 6rem 0.9rem 4.25rem;
        min-height: auto;
        align-items: flex-start;
    }

    .hero-content {
        padding: 0 0.25rem;
    }

    .filters-top {
        padding: 1rem 1.1rem;
    }

    .filters-top-header {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .filters-top-title {
        width: auto;
        justify-content: flex-start;
    }

    .filter-count-badge {
        min-width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .btn-toggle-filters {
        display: inline-flex;
    }

    .filters-top-body {
        gap: 0.85rem;
    }

    .filters-presets-grid {
        grid-template-columns: 1fr;
    }

    .filters-trigger-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }
    .filters-smart-scroll .filters-presets-header {
        align-items: center;
        text-align: center;
        padding: 0.35rem 0 0.65rem;
    }

    .filters-smart-scroll .filters-presets-header h3 {
        font-size: 1rem;
    }

    .filters-smart-scroll .filters-presets-header p {
        max-width: 100%;
        font-size: 0.88rem;
    }


    .filter-trigger {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .filter-pill-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }

    .filter-checkbox span {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .product-tile {
        padding: 1rem;
    }

    .tile-image {
        width: 76px;
        height: 76px;
    }

    .tile-chip {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .tile-modal-dialog {
        width: 94vw;
        border-radius: 18px;
    }

    .tile-modal-scroll {
        padding: 1.4rem 1.2rem 1.8rem;
    }

    .tile-modal-content {
        gap: 0.85rem;
    }
}


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


/* ===================================
   COLUMN HOVER HIGHLIGHT
   =================================== */
.comparison-table {
    position: relative;
}

.product-col {
    transition: var(--transition);
    position: relative;
}

.product-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.04);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-col:hover::before {
    opacity: 1;
}

.comparison-table tbody tr td {
    transition: var(--transition-fast);
    position: relative;
}

.comparison-table tbody tr td::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.comparison-table tbody tr:hover td {
    background-color: transparent;
}

/* Column highlight via JavaScript */
.column-highlighted::before {
    opacity: 1 !important;
}

.column-dimmed {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

/* ===================================
   QUIZ SECTION - HERO ELEMENT
   =================================== */
.quiz-section {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F7 100%);
    padding: 4rem 1.5rem 5rem;
    position: relative;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.quiz-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.6;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 700;
}

.quiz-content {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 2.5rem 2.5rem 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    min-height: 360px;
    position: relative;
}

/* Quiz Start Button */
.quiz-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    gap: 2rem;
}

.quiz-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
}

.quiz-preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.18);
}

.quiz-preview-item strong {
    color: #1E3A8A;
}

.preview-icon {
    font-size: 1.25rem;
}

.preview-text {
    line-height: 1.4;
}

.btn-quiz-start {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    letter-spacing: 0.02em;
}

.btn-quiz-start:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(30, 64, 255, 0.35);
}

.btn-quiz-start:active {
    transform: translateY(-1px);
}

/* Quiz Questions */
.quiz-question {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, #8B5CF6 100%);
    border-radius: 8px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 600;
}

.question-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.question-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.option-card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.option-card:active {
    transform: translateY(0);
}

.option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.option-desc {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.option-simple .option-content {
    display: flex;
    align-items: center;
}

.option-simple .option-label {
    margin-bottom: 0;
}

.btn-quiz-back {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.btn-quiz-back:hover {
    background: var(--bg-subtle);
    color: var(--accent-color);
}

/* Quiz Results */
.quiz-results {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

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

.results-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.results-product {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px solid #BFDBFE;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.results-product-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.results-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.results-product-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.results-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.results-feature svg {
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-results-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-hover) 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    letter-spacing: 0.02em;
}

.btn-results-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.4);
}

.btn-results-restart {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-results-restart:hover {
    background: var(--bg-subtle);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-header h2 {
        font-size: 1.75rem;
    }

    .quiz-content {
        padding: 2rem 1.5rem;
    }

    .question-title {
        font-size: 1.35rem;
    }

    .option-card {
        padding: 1.25rem;
    }

    .option-icon {
        font-size: 1.5rem;
    }

    .option-label {
        font-size: 0.95rem;
    }

    .btn-results-cta {
        min-width: 100%;
        font-size: 0.95rem;
        padding: 1.125rem 2rem;
    }
}

/* ===================================
   MYTHS BUSTING SECTION
   =================================== */
.myths-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.myths-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(30, 64, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.myths-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.myths-container h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.myths-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #CBD5E1;
    letter-spacing: 0.02em;
}

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

.myth-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.myth-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.myth-card.myth-featured {
    border: 2px solid rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%);
}

.myth-card.myth-featured::before {
    content: '⭐ Najważniejsze';
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-hover) 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.35);
    white-space: nowrap;
}

.myth-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8B5CF6 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(30, 64, 255, 0.3);
    margin-bottom: 1rem;
}

.myth-false,
.myth-true {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: center;
}

.myth-false {
    margin: 0;
}

.myth-true {
    margin: 0;
}

.myth-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.myth-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
}

.myth-false .myth-label {
    color: #b91c1c;
}

.myth-true .myth-label {
    color: #047857;
}

.myth-content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
}

.myth-explanation {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
    font-weight: 500;
    max-width: 26ch;
}

.myth-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.4) 40%, rgba(148, 163, 184, 0.4) 60%, transparent 100%);
    margin: 0;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .myths-container h2 {
        font-size: 1.75rem;
    }

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

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

    .myth-card {
        padding: 1.5rem;
    }

    .myth-label {
        font-size: 0.95rem;
    }

    .myth-explanation {
        font-size: 0.875rem;
    }
}

/* Removed old carousel styles - now using enhanced FAQ matrix below */


/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-content {
        padding: 2.25rem 1.5rem 2.5rem;
    }

    .quiz-preview {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quiz-start {
        min-height: 0;
    }

    .faq-section {
        padding: 4rem 1rem;
    }

    .faq-heading {
        flex-direction: column;
        gap: 0.5rem;
    }

    .faq-heading h2 {
        font-size: 2rem;
    }

    .faq-icon {
        font-size: 2.25rem;
    }

    .faq-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .faq-columns {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .faq-column {
        padding: 1.35rem 1.2rem;
        border-radius: 22px;
    }

    .faq-column::before {
        top: 62px;
    }

    .faq-column::after {
        bottom: 46px;
    }

    .faq-column-scroll {
        max-height: 320px;
    }

    .faq-card {
        padding: 1.1rem 1.2rem;
    }

    .faq-card h4 {
        font-size: 1rem;
    }

    .faq-card p {
        font-size: 0.9rem;
    }
}

/* FAQ Section Styles */
.faq-main-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.faq-icon {
    font-size: 2rem;
    display: inline-block;
}

/* Extra small phones (390px and below) */
@media (max-width: 390px) {
    .hero-title-main {
        font-size: 1.05rem !important;
        line-height: 1.42 !important;
        padding: 0 0.5rem !important;
        margin-bottom: 0.85rem !important;
    }

    .comparison-hero {
        padding: 5.5rem 0.65rem 4rem !important;
    }

    .hero-lead {
        font-size: 0.82rem !important;
        padding: 0 0.25rem !important;
    }
}

/* ===================================
   GAMIFICATION SUMMARY
   =================================== */
.gamification-summary {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    margin-bottom: 0;
}

.gamification-summary-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.gamification-summary-header p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.gamification-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.summary-card {
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.75);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.summary-card-progress {
    gap: 0.55rem;
}

.summary-card-progress .progress-bar {
    height: 6px;
    margin-bottom: 0;
    background: rgba(148, 163, 184, 0.25);
}

.summary-card-progress .progress-fill {
    background: linear-gradient(90deg, var(--accent-color) 0%, #818cf8 100%);
}

.summary-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-gray);
    margin: 0;
}

.summary-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.summary-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.12);
}

.summary-value {
    font-size: clamp(2rem, 6vw, 2.4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.summary-value-small {
    font-size: 1.45rem;
}

.summary-helper {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.level-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-progress-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-gray);
}

.level-progress .progress-bar {
    height: 6px;
    margin-bottom: 0;
    background: rgba(148, 163, 184, 0.25);
}

.level-progress .progress-fill {
    background: linear-gradient(90deg, var(--accent-color) 0%, #818cf8 100%);
}

.gamification-detail-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-card {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    background: rgba(248, 250, 252, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.detail-helper {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
}

.goal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    background: var(--bg-white);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    flex-wrap: wrap;
}

.goal-item .goal-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
}

.goal-item .goal-text {
    flex: 1 1 auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.goal-item .goal-progress {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
}

.goal-item.goal-item--done {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.goal-item.goal-item--done .goal-check {
    border-color: #22c55e;
    background: #22c55e;
    color: #ffffff;
}

.goal-item.goal-item--done .goal-progress {
    color: #166534;
}

.goal-reward {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
}

.goal-reward.goal-reward--completed {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.unlock-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.unlock-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    background: var(--bg-white);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.unlock-item span {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-gray);
}

.unlock-item.is-unlocked {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
}

.unlock-item.is-unlocked span {
    color: var(--accent-color);
    font-weight: 600;
}

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.achievement-chip {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-gray);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.achievement-chip.is-unlocked {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.achievement-chip.is-unlocked::after {
    content: '✓';
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.35rem;
}

@media (max-width: 960px) {
    .gamification-summary {
        padding: 1.5rem;
    }

    .summary-card {
        padding: 1.15rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .gamification-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .summary-value {
        font-size: 1.9rem;
    }

    .gamification-detail-grid {
        grid-template-columns: 1fr;
    }

    .gamification-toggle {
        width: 100%;
        justify-content: center;
    }
}

.gamification-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    background: linear-gradient(135deg, rgba(10, 15, 35, 0.92) 0%, rgba(23, 37, 84, 0.9) 55%, rgba(59, 130, 246, 0.88) 100%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(148, 197, 253, 0.08) inset;
    white-space: nowrap;
}

.gamification-toggle:hover,
.gamification-toggle:focus-visible {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(37, 63, 115, 0.92) 55%, rgba(59, 130, 246, 0.9) 100%);
    border-color: rgba(148, 197, 253, 0.55);
    color: #f8fafc;
    outline: none;
}

.gamification-modal[hidden] {
    display: none;
}

.gamification-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
}

.gamification-dialog {
    position: relative;
    width: min(880px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    border-radius: 22px;
    background: var(--bg-white);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    padding-top: 1rem;
}

.gamification-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.45);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gamification-close:hover,
.gamification-close:focus-visible {
    color: var(--accent-color);
    outline: none;
}

.gamification-close span {
    display: inline-block;
    line-height: 1;
}

.quiz-reward-banner {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.12), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-tile--discovered {
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.product-tile--discovered::before {
    content: "✓ Odkryty";
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(34, 197, 94, 0.17);
    color: #166534;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-tile--discovered.has-badge::before {
    display: none;
}

.product-tile--discovered .tile-badge::after {
    content: "✓ Odkryty";
    display: inline-block;
    margin-left: 0.35rem;
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-bonus-btn {
    background: linear-gradient(45deg, #f97316, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.75rem 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-bonus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(139, 92, 246, 0.3);
}

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

.share-bonus-btn.claimed {
    background: linear-gradient(45deg, #22c55e, #3b82f6);
    cursor: pointer;
    box-shadow: none;
}

.game-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e3a8a;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 18px 34px rgba(30, 58, 138, 0.28);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    animation: toastSlide 0.4s ease forwards;
}

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

/* ===================================
   UTILITIES
   =================================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
