html {
    scroll-behavior: smooth;
}
:root {
    --oopbuy-red: #ff3b30;
    --oopbuy-red-glow: rgba(255, 59, 48, 0.3);
    --bg-black: #050505;
    --card-bg: #0d0d0d;
    --text-white: #ffffff;
    --text-gray: #888888;
    --border: rgba(255, 255, 255, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.main-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Poświata za myszką */
.mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Hero Section */
.hero-section { padding: 120px 0 60px; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.hero-badge:hover { border-color: var(--oopbuy-red); background: rgba(255, 59, 48, 0.05); }

.badge-dot {
    width: 6px; height: 6px;
    background-color: var(--oopbuy-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--oopbuy-red);
}

.hero-title {
    font-size: clamp(55px, 12vw, 100px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -5px;
    margin-bottom: 25px;
}

.hero-title .highlight {
    background: linear-gradient(180deg, #fff 30%, var(--oopbuy-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-gray);
    font-size: clamp(16px, 2vw, 20px);
    max-width: 650px;
    margin: 0 auto 50px;
}

/* Przyciski */
.hero-cta { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    background: var(--oopbuy-red);
    color: white;
    padding: 20px 40px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 35px var(--oopbuy-red-glow); }

.btn-secondary {
    background: #111;
    color: white;
    border: 1px solid var(--border);
    padding: 20px 40px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.btn-secondary:hover { background: #161616; border-color: #444; }

/* Wyszukiwarka */
.search-section { margin-top: 80px; max-width: 700px; margin-left: auto; margin-right: auto; }

.search-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 8px 8px 8px 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar input {
    background: transparent; border: none; color: white;
    flex: 1; font-size: 16px; outline: none;
}

.search-bar button {
    background: var(--oopbuy-red);
    color: white; border: none;
    padding: 14px 30px; border-radius: 20px;
    font-weight: 700; cursor: pointer;
}

.online-counter { margin-top: 25px; font-size: 13px; color: #555; font-weight: 600; }
.online-counter span { color: var(--oopbuy-red); }

/* Grid narzędzi */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 100px 0;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 45px 35px;
    border-radius: 35px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.tool-card:hover { border-color: var(--oopbuy-red); transform: translateY(-10px); }

.tool-icon {
    width: 60px; height: 60px;
    background: rgba(255, 59, 48, 0.1);
    color: var(--oopbuy-red);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 25px;
}

/* RWD */
@media (max-width: 768px) {
    .hero-cta { flex-direction: column; }
    .tools-grid { grid-template-columns: 1fr; }
    .search-bar button { display: none; }
    .hero-title { letter-spacing: -2px; }
    .hero-section { padding-top: 80px; }
    .hero-badge { margin-top: 20px; }
}

/* Animacje */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
/* GŁÓWNY UKŁAD - POZIOMY */
.header-glass {
    display: flex;
    flex-direction: row; /* Wymusza jedną linię */
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
}

.desktop-tools {
    display: flex; /* Układa ikony narzędzi w poziomie */
    gap: 8px;
}

/* DOMYŚLNIE UKRYWAMY MENU MOBILNE (HAMBURGER) NA KOMPUTERZE */
.mobile-trigger {
    display: none !important;
}

/* RESPONSYWNOŚĆ - TELEFONY */
@media (max-width: 992px) {
    /* Ukrywamy narzędzia desktopowe */
    .desktop-tools {
        display: none !important;
    }

    /* Pokazujemy przycisk menu (hamburger) */
    .mobile-trigger {
        display: flex !important;
    }

    /* Ukrywamy teksty w menu środkowym, zostawiamy ikony */
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 10px 15px;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* Styl dla ikon narzędzi (tool-btn) */
.tool-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
}

.tool-btn:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    transform: translateY(-2px);
}
/* Dropdown profilu jest sterowany wyłącznie klasą .is-open dodawaną po kliknięciu. */

/* Kontener na Bloby */
.blob-c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Musi być pod wszystkim */
    overflow: hidden;
    background: #050505; /* Podstawowy kolor tła */
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--oopbuy-red);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15; /* Subtelny efekt */
    animation: move 25s infinite alternate;
}

/* Różne pozycje i kolory dla każdego bloba */
.blob:nth-child(2) {
    background: #ff3b30; /* Kolor Discorda dla urozmaicenia */
    width: 400px;
    height: 400px;
    left: 50%;
    top: 50%;
    animation-duration: 30s;
    animation-delay: -5s;
    opacity: 0.1;
}

.blob:nth-child(3) {
    background: #ff3b30;
    width: 600px;
    height: 600px;
    right: -10%;
    bottom: -10%;
    animation-duration: 20s;
    animation-delay: -2s;
    opacity: 0.12;
}

/* Animacja pływania */
@keyframes move {
    from {
        transform: translate(-10%, -10%) rotate(0deg);
    }
    to {
        transform: translate(20%, 20%) rotate(360deg);
    }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Szerokość całego scrollbaru */
::-webkit-scrollbar {
    width: 8px;
}

/* Tło scrollbaru (szyna) */
::-webkit-scrollbar-track {
    background: #050505;
}

/* Suwak (ten element, który przesuwasz) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff3b30 0%, #a10000 100%);
    border-radius: 10px;
    border: 2px solid #050505; /* Tworzy efekt odstępu od krawędzi */
}

/* Efekt po najechaniu na suwak */
::-webkit-scrollbar-thumb:hover {
    background: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

/* Wsparcie dla Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff3b30 #050505;
}
/* GŁÓWNY KONTENER DLA TŁA */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10; /* Pod wszystkim */
    overflow: hidden;
    background: #050505;
}

/* WARSTWA 1: GŁĘBIA */
.bg-depth {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

/* WARSTWA 2: ZMODYFIKOWANE BLOBY */
.blob-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px); /* Miększe rozmycie */
    animation: move 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob:nth-child(1) {
    width: 600px;
    height: 600px;
    background: #ff3b30;
    opacity: 0.12;
    top: -10%;
    left: -10%;
}

.blob:nth-child(2) {
    width: 450px;
    height: 450px;
    background: #f25858; /* Discord */
    opacity: 0.1;
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob:nth-child(3) {
    width: 350px;
    height: 350px;
    background: #ff0000; /* Dodatkowy fiolet */
    opacity: 0.08;
    top: 50%;
    left: 50%;
    animation-duration: 40s;
    animation-delay: -10s;
}

/* WARSTWA 3: NEONOWE LINIE */
.lines-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.neon-line {
    fill: none;
    stroke: rgba(255, 59, 48, 0.4);
    stroke-width: 0.2;
    stroke-dasharray: 200;
    animation: lineFlow 15s linear infinite;
}

.neon-line:nth-child(2) {
    stroke: rgba(242, 88, 88, 0.4);
    animation-delay: -5s;
}

/* WARSTWA 4: GWIEZDNY PYŁ */
.stardust {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: twinkle 5s infinite;
}

.star:nth-child(1) { top: 20%; left: 30%; animation-delay: 1s; }
.star:nth-child(2) { top: 60%; left: 70%; animation-delay: 2s; }
.star:nth-child(3) { top: 40%; left: 80%; animation-delay: 3s; }
.star:nth-child(4) { top: 80%; left: 20%; animation-delay: 4s; }
.star:nth-child(5) { top: 10%; left: 90%; animation-delay: 5s; }

/* NOWE ANIMACJE */

/* Ruch blobów (pływanie) */
@keyframes move {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(15%, 15%) rotate(180deg); }
}

/* Przepływ linii */
@keyframes lineFlow {
    0% { stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 0; }
}

/* Miganie gwiazd */
@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.4; transform: scale(1); }
}
/* --- WELCOME MODAL PREMIUM DESIGN --- */

/* Overlay z mocniejszym blurem dla skupienia uwagi */
#oopbuy-welcome-modal.ob-modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Główne okno modala */
#oopbuy-welcome-modal .ob-modal-content {
    background: linear-gradient(145deg, #0f0f0f 0%, #050505 100%);
    border: 1px solid rgba(255, 59, 48, 0.2); /* Delikatna czerwona obwódka */
    box-shadow: 0 25px 80px rgba(255, 59, 48, 0.15);
    overflow: hidden;
}

/* Badge "WELCOME BONUS" */
#oopbuy-welcome-modal .ob-badge {
    background: linear-gradient(90deg, rgba(255, 59, 48, 0.2), rgba(255, 59, 48, 0.05));
    border: 1px solid rgba(255, 59, 48, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tytuł z efektem gradientu */
#oopbuy-welcome-modal .ob-title {
    font-size: 32px;
    letter-spacing: -1px;
}

#oopbuy-welcome-modal .ob-highlight {
    background: linear-gradient(90deg, #ff3b30, #ff8a84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.3));
}

/* Box z nagrodami */
.ob-reward-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 25px !important;
    margin: 30px 0;
    position: relative;
}

.ob-reward-item strong {
    font-size: 28px !important;
    color: #fff !important;
    text-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}

.ob-reward-item span {
    color: #888 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px !important;
    letter-spacing: 1px;
}

/* Separator pionowy */
.ob-v-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Główny przycisk rejestracji */
.ob-main-btn {
    background: #ff3b30 !important;
    color: #fff !important;
    text-decoration: none;
    display: block;
    padding: 20px !important;
    font-size: 16px;
    font-weight: 800;
    border-radius: 18px !important;
    transition: 0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.4);
}

.ob-main-btn:hover {
    transform: scale(1.03);
    background: #ff4d4d !important;
    box-shadow: 0 15px 35px rgba(255, 59, 48, 0.5);
}

/* Przycisk zamknięcia (krzyżyk) */
.ob-close-btn {
    transition: 0.3s;
    opacity: 0.5;
}

.ob-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: #ff3b30;
}

/* Przycisk "Don't show again" */
.ob-dismiss-btn {
    margin-top: 15px;
    opacity: 0.4;
    transition: 0.3s;
}

.ob-dismiss-btn:hover {
    opacity: 1;
    color: #fff;
}

/* Animacja wejścia modala */
@keyframes modalEntry {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ob-modal-content {
    animation: modalEntry 0.5s ease-out forwards;
}
/* GRID SETUP */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* KARTA PRODUKTU */
.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 59, 48, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* KONTENER OBRAZKA */
.img-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #111;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .img-container img {
    transform: scale(1.1);
}

/* OVERLAY NA OBRAZKU */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.badge-category {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
}

.price-float {
    align-self: flex-end;
    background: #ff3b30;
    color: #fff;
    padding: 8px 15px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4);
}

/* PRZYCISKI (WISHLIST / DEADLINK) */
.card-controls {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) translateX(50px); /* Ukryte z boku */
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: 0.3s ease;
}

.product-card:hover .card-controls {
    transform: translateY(-50%) translateX(0);
}

.wishlist-btn, .deadlink-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s;
}

.wishlist-btn.active { color: #ff3b30; }
.wishlist-btn:hover { background: #ff3b30; color: #fff; }
.deadlink-btn:hover { background: #000; color: #fff; }

/* INFO O PRODUKCIE */
.product-info {
    padding: 18px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-hint {
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: 0.3s;
}

.product-card:hover .view-hint {
    color: #ff3b30;
}

/* MOBILNE DOPASOWANIE */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na telefonie */
        gap: 12px;
    }
    
    .product-card {
        border-radius: 18px;
    }

    .card-controls {
        transform: translateY(-50%) translateX(0); /* Zawsze widoczne na mobile */
        right: 8px;
    }

    .price-float {
        font-size: 13px;
        padding: 5px 10px;
    }

    .product-title {
        font-size: 13px;
    }
}
/* --- FUNDAMENTY --- */
:root {
    --primary: #ff3b30; /* Oopbuy Red */
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #888888;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* --- DYNAMIC BACKGROUND & MOUSE GLOW --- */
.dynamic-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -10; overflow: hidden; background: #000;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(120px);
    animation: move 20s infinite alternate; opacity: 0.15;
}
.blob:nth-child(1) { width: 500px; height: 500px; background: var(--primary); top: -10%; left: -10%; }
.blob:nth-child(2) { width: 400px; height: 400px; background: #ff3b30; bottom: -10%; right: -10%; }

.mouse-glow {
    position: fixed; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,59,48,0.08) 0%, transparent 70%);
    pointer-events: none; transform: translate(-50%, -50%); z-index: -5;
}

/* --- SEKCJA PRODUKTÓW --- */
.products {
    max-width: 1300px; margin: 120px auto 50px; padding: 0 20px;
}

h1 {
    font-size: 48px; font-weight: 800; text-align: center;
    letter-spacing: -2px; margin-bottom: 40px;
}

/* FILTRY */
.filters {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px;
}
.filters button {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    color: var(--text-dim); padding: 10px 20px; border-radius: 14px;
    font-weight: 700; cursor: pointer; transition: 0.3s;
}
.filters button.active, .filters button:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

/* SEARCH WRAP */
.search-wrap {
    max-width: 600px; margin: 0 auto 40px; position: relative;
}
#searchInput {
    width: 100%; background: var(--card-bg); border: 1px solid var(--glass-border);
    padding: 18px 25px 18px 50px; border-radius: 20px; color: #fff;
    font-size: 16px; transition: 0.3s;
}
#searchInput:focus {
    border-color: var(--primary); outline: none; background: rgba(255,255,255,0.06);
}
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); opacity: 0.5; }

/* GRID PRODUKTÓW */
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* KARTA PRODUKTU (Poprawiona) */
.product-card {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 24px; overflow: hidden; cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; opacity: 0; transform: translateY(20px);
}
.product-card.show { opacity: 1; transform: translateY(0); }

.product-card:hover {
    transform: translateY(-10px); border-color: var(--primary);
    background: rgba(255,255,255,0.06);
}

.img-container { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #111; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .img-container img { transform: scale(1.1); }

.price-float {
    position: absolute; bottom: 15px; right: 15px;
    background: var(--primary); color: #fff; padding: 8px 15px;
    border-radius: 12px; font-weight: 800; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card-controls {
    position: absolute; top: 15px; right: 15px; display: flex; flex-direction: column; gap: 8px;
    z-index: 5;
}
.wishlist-btn, .deadlink-btn {
    width: 38px; height: 38px; border-radius: 10px; border: none;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    color: #fff; cursor: pointer; transition: 0.2s;
}
.wishlist-btn.active { color: var(--primary); }
.wishlist-btn:hover { background: var(--primary); color: #fff; }
.deadlink-btn:hover { background: #fff; color: #000; }

.product-info { padding: 20px; }
.product-title { font-size: 16px; font-weight: 700; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-category { font-size: 11px; color: var(--text-dim); text-transform: uppercase; font-weight: 800; }

/* --- MODAL PRODUKTU (Poprawka widoczności) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center; z-index: 10000;
}
.modal-content {
    background: #0f0f0f; width: 90%; max-width: 900px; border-radius: 32px;
    border: 1px solid var(--glass-border); position: relative; padding: 30px;
    max-height: 90vh; overflow-y: auto;
}

/* --- TOASTY --- */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 10001; }
.toast {
    background: #111; border: 1px solid var(--primary); color: #fff;
    padding: 15px 25px; border-radius: 15px; margin-top: 10px;
    display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    h1 { font-size: 32px; }
}
/* Kontener filtrów zaawansowanych */
.shop-advanced-filters {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dim);
}

/* Stylizacja neonowego slidera */
.range-slider-container {
    position: relative;
    width: 250px;
    height: 6px;
    background: #222;
    border-radius: 10px;
}

.neon-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
    pointer-events: none;
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 10px var(--primary);
    border: 3px solid #000;
}

/* Price Display (From/To) */
.price-display {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.price-tag {
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid var(--glass-border);
}

.price-tag b { color: var(--primary); }

/* Sort Select */
.modern-select {
    background: #111;
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
}
.card-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    opacity: 0; /* Ukryte domyślnie */
    transition: 0.3s ease;
}

.product-card:hover .card-controls {
    opacity: 1; /* Pojawiają się po najechaniu */
}

.wishlist-btn, .deadlink-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s;
}

.wishlist-btn:hover { background: var(--primary); color: #fff; }
.deadlink-btn:hover { background: #fff; color: #000; }
.wishlist-btn.active { color: var(--primary); background: rgba(0,0,0,0.7); }
.modal-overlay {
    display: none; /* Sterowane przez JS */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #0d0d0d;
    max-width: 1000px;
    margin: 5vh auto;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.modal-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

@media (max-width: 768px) {
    .modal-top { grid-template-columns: 1fr; }
}

.modal-img-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
}

#modalMainImg {
    width: 100%;
    display: block;
}

.modal-price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 900;
    font-size: 20px;
}

.modal-details h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: left;
}

/* QC Section */
.modal-qc-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.modal-qc-mini-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
    border: 1px solid var(--glass-border);
}

.modal-status-center {
    padding: 20px 30px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    gap: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
}
/* --- SEARCH BAR FIX --- */
.search-wrap {
    max-width: 600px;
    margin: 20px auto 40px;
    position: relative;
    z-index: 10;
}

#searchInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px 20px 15px 45px;
    border-radius: 15px;
    color: white !important;
    font-size: 16px;
    display: block !important; /* Wymuszenie widoczności */
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    filter: grayscale(1) brightness(2);
}

/* --- PRICE RANGE & FILTERS FIX --- */
.shop-advanced-filters {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    margin: 20px auto;
    max-width: 1200px;
}

.range-slider-container {
    height: 6px;
    background: #222;
    border-radius: 10px;
    margin: 20px 0;
    position: relative;
}

.neon-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
    top: -6px;
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ff3b30;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
    border: 2px solid white;
    position: relative;
    z-index: 20;
}

/* --- PRODUCT CARD BUTTONS FIX --- */
.product-card {
    position: relative;
    overflow: visible !important; /* Pozwala przyciskom wystawać lub być widocznym na krawędzi */
}

.img-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden; /* Obrazek zostaje w środku */
}

.card-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100; /* Musi być nad obrazkiem */
}

.wishlist-btn, .deadlink-btn {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover, .wishlist-btn.active { color: #ff3b30; border-color: #ff3b30; }

/* --- PRODUCT MODAL FULL DESIGN --- */
.modal-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #111 !important;
    border: 1px solid rgba(255, 59, 48, 0.3) !important;
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    max-width: 900px;
    box-shadow: 0 0 50px rgba(0,0,0,1);
}

.modal-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-img-container {
    background: #000;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img-container img {
    max-width: 100%;
    border-radius: 15px;
}

.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-price {
    background: #ff3b30;
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
    width: fit-content;
}

.modal-qc-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.modal-qc-mini-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #333;
}
/* GŁÓWNY KONTENER AKCJI */
.modal-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* PRZYCISK BUY NOW (GŁÓWNY) */
.buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff3b30; /* Czerwony Oopbuy */
    color: white !important;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.buy-now-btn:hover {
    background: #e03229;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4);
}

/* PRZYCISK BUDGET (SZARY) */
.budget-btn {
    background: #222 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.budget-btn:hover {
    background: #333 !important;
    border-color: #ff3b30;
}

/* SEKCYJNE PRZYCISKI (SAVE / REPORT) */
.secondary-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.modal-action-button, .modal-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.modal-action-button:hover, .modal-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* AKTYWNE SAVE (SERCE) */
.modal-action-button.wishlist-btn.active {
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.4);
}

/* SEKTA QC PHOTOS */
.qc-section-mini {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-qc-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

/* TYTUŁ QC */
.qc-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 5px;
    color: white;
    letter-spacing: -0.5px;
}
/* STYLE DLA TELEFONÓW (MOBILE) */
@media (max-width: 480px) {
    
    /* 1. GRID KART - 2 obok siebie, tak jak na komputerze tylko mniejsze */
    .grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px !important;
    }

    /* 2. KARTA PRODUKTU - Zachowanie stylu z PC */
    .product-card {
        background: #111 !important; /* Ciemne tło karty */
        border-radius: 15px !important;
        border: 1px solid rgba(255, 59, 48, 0.2) !important; /* Czerwona obwódka jak na screenie */
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        transition: 0.3s;
    }

    /* Kontener zdjęcia w karcie */
    .img-container {
        position: relative !important;
        height: 140px !important; /* Mniejsza wysokość na mobile */
        background: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .img-container img {
        max-width: 90% !important;
        max-height: 90% !important;
        object-fit: contain !important;
    }

    /* Badge ceny na zdjęciu */
    .price-badge {
        position: absolute !important;
        bottom: 8px !important;
        right: 8px !important;
        background: #ff3b30 !important;
        color: white !important;
        padding: 4px 8px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
        font-weight: bold !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    }

    /* Sekcja tekstowa pod zdjęciem */
    .product-info {
        padding: 10px !important;
        text-align: left !important;
    }

    .product-title {
        font-size: 12px !important;
        color: white !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .click-details {
        font-size: 9px !important;
        color: #ff3b30 !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
    }

    /* 3. MODAL PRODUKTU - Miniatura wersji PC */
    .modal-content {
        width: 92% !important;
        margin: 5% auto !important;
        padding: 0 !important;
        border-radius: 20px !important;
        background: #111 !important;
        border: 1px solid #ff3b30 !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .modal-top {
        flex-direction: column !important; /* Układ pionowy na mobile */
    }

    .modal-img-container {
        width: 100% !important;
        height: 250px !important;
        background: #fff !important;
    }

    .modal-details {
        padding: 20px !important;
    }

    .qc-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    /* Przyciski w modalu */
    .main-buy-wrapper {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .buy-now-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .secondary-actions {
        margin-top: 10px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Przycisk zamknięcia X */
    .close-modal {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 18px !important;
        background: rgba(0,0,0,0.5) !important;
        border: 1px solid white !important;
    }
}
@media (max-width: 480px) {
    
    /* GŁÓWNY KONTENER MODALU - Pionowy */
    .modal-content {
        display: flex !important;
        flex-direction: column !important; /* Układ pionowy */
        width: 92% !important;
        margin: 10% auto !important; /* Mniej marginesu, żeby był wyżej */
        border-radius: 20px !important;
        max-height: 85vh !important; /* Mniejsza wysokość, żeby zmieścił się na mniejszym ekranie */
        overflow-y: auto !important; /* Przewijanie w razie potrzeby */
        background: #111 !important;
        border: 1px solid #ff3b30 !important;
        padding: 0 !important;
    }

    /* TYTUŁ I KATEGORIA - Pionowy układ */
    .modal-top {
        display: flex !important;
        flex-direction: column !important; /* Kategoria nad tytułem */
        align-items: center !important;
        text-align: center !important;
        padding: 15px !important;
    }

    /* Kategoria na samej górze */
    .badge-category {
        position: static !important; /* Reset absolutnego pozycjonowania z PC */
        display: inline-block !important;
        margin-bottom: 8px !important;
        font-size: 10px !important;
    }

    /* Tytuł pod kategorią */
    .qc-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    /* --- TO NAPRAWIA ZDJĘCIE - Kwadratowe i wyśrodkowane --- */
    .modal-img-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        background: #000 !important; /* Czarne tło za zdjęciem */
        padding: 10px !important;
    }

    #modalMainImg {
        width: auto !important;
        height: auto !important;
        max-width: 90% !important;
        aspect-ratio: 1 / 1 !important; /* Wymusza kwadrat dla zdjęcia */
        object-fit: contain !important; /* Buty nie są ucięte */
        border-radius: 12px !important;
    }

    /* CENA PONIŻEJ ZDJĘCIA */
    .modal-price {
        display: flex !important;
        justify-content: center !important;
        margin-top: 15px !important;
    }

    #modalPriceTag {
        font-size: 20px !important;
        padding: 8px 16px !important;
    }

    /* AKCJE - Kompaktowy układ */
    .modal-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 15px !important;
    }

    .buy-now-btn, .modal-action-btn, .modal-action-button {
        width: 100% !important;
        padding: 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    /* Przycisk X zamknij */
    .close-modal {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
        top: 10px !important;
        right: 10px !important;
        background: rgba(0,0,0,0.5) !important;
        border: 1px solid white !important;
    }

    /* QC Photos na mobile */
    .qc-section-mini {
        padding: 15px !important;
    }
}
@media (max-width: 480px) {
    /* 1. ZMNIEJSZENIE MODALU */
    .modal-content {
        width: 85% !important; /* Węższy modal */
        max-height: 80vh !important;
        margin: 10% auto !important;
        padding: 15px !important; /* Oddech wewnątrz */
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* 2. WYŚRODKOWANIE TYTUŁU */
    #modalTitle, .qc-title {
        font-size: 16px !important;
        text-align: center !important;
        width: 100% !important;
        margin: 5px 0 10px 0 !important;
        display: block !important;
    }

    /* 3. KWADRATOWE ZDJĘCIE */
    .modal-img-container {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important; /* Idealny kwadrat */
        height: auto !important;
        max-height: 200px !important; /* Ograniczenie wielkości */
        margin: 0 auto !important;
        background: #fff !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #modalMainImg {
        max-width: 90% !important;
        max-height: 90% !important;
        object-fit: contain !important;
    }

    /* 4. UKŁAD PRZYCISKÓW (BUY NOW NA GÓRZE, RESZTA POD NIM) */
    .modal-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Główny przycisk Buy Now */
    .main-buy-wrapper {
        width: 100% !important;
    }

    .buy-now-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Save i Report obok siebie pod Buy Now */
    .secondary-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Dwie równe kolumny */
        gap: 8px !important;
        width: 100% !important;
    }

    .modal-action-button, .modal-action-btn {
        padding: 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
    }

    /* 5. STYLE DLA VIEW MORE QC PHOTOS */
    .view-more-tile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 59, 48, 0.1) !important;
        border: 1px dashed #ff3b30 !important;
        border-radius: 8px !important;
        color: #ff3b30 !important;
        font-size: 10px !important;
        font-weight: bold !important;
        text-align: center !important;
        aspect-ratio: 1 / 1 !important;
        text-decoration: none !important;
        transition: 0.2s !important;
    }

    .view-more-tile:hover {
        background: rgba(255, 59, 48, 0.2) !important;
    }

    /* 6. CENA POD ZDJĘCIEM */
    #modalPriceTag {
        text-align: center !important;
        font-size: 18px !important;
        margin: 5px 0 !important;
        font-weight: 900 !important;
        color: #ff3b30 !important;
    }

    /* Przycisk X zamknij */
    .close-modal {
        top: 5px !important;
        right: 5px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 14px !important;
    }
}
@media (max-width: 480px) {
    /* --- FUNDAMENTALNY FIX --- */
    /* Zastępuje grid produktowy (główny grid) z powrotem na 2 kolumny, 
       bo tak było na screenie, który ci się podobał */
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px !important;
    }

    /* Karta na mobile - zgrabna */
    .product-card {
        aspect-ratio: 1 / 1.3 !important; /* Przywracamy proporcje pionowej karty */
    }

    .img-container {
        height: 120px !important; /* Większe zdjęcie na karcie */
    }

    .product-title {
        font-size: 13px !important; /* Normalna czcionka */
    }

    /* --- FIX DLA ZDJĘĆ QC W MODALU --- */
    /* Mini grid dla miniatur QC - TERAZ PO 3 W RZĘDZIE */
    .modal-qc-mini-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* To jest kluczowe */
        gap: 8px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .modal-qc-mini-grid img, .view-more-tile {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important; /* Zostają kwadratowe */
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    /* View More QC Tile (tekstowy kafelek) w gęstym gridzie 3x3 */
    .view-more-tile {
        font-size: 8px !important;
        padding: 2px !important;
        border-radius: 6px !important;
    }
}
@media (max-width: 480px) {
    /* SUBTELNIEJSZA CENA W MODALU */
    #modalPriceTag {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: #ff3b30 !important;
        color: #ffffff !important;
        font-size: 16px !important;    /* Zmniejszono z 20px */
        font-weight: 800 !important;
        padding: 6px 14px !important;  /* Zmniejszono paddingi */
        border-radius: 8px !important;
        margin: 10px auto !important;  /* Mniejszy margines góra/dół */
        width: fit-content !important;
        min-width: 90px !important;    /* Zmniejszono z 120px */
        min-height: 32px !important;   /* Zmniejszono z 40px */
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 999 !important;
        box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3) !important;
    }

    /* Wyśrodkowanie kontenera */
    .modal-price {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}
/* STYL KAFELKA VIEW MORE W GRIDZIE QC */
.view-more-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 59, 48, 0.08) !important; /* Bardzo delikatny czerwony */
    border: 2px dashed rgba(255, 59, 48, 0.4) !important; /* Przerywana ramka */
    border-radius: 12px !important;
    color: #ff3b30 !important;
    text-decoration: none !important;
    aspect-ratio: 1 / 1 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    padding: 10px !important;
    text-align: center !important;
}

.view-more-tile i {
    font-size: 24px !important;
    margin-bottom: 8px !important;
}

.view-more-tile span {
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

/* EFEKT PO NAJECHANIU MYSZKĄ */
.view-more-tile:hover {
    background: rgba(255, 59, 48, 0.15) !important;
    border-color: #ff3b30 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.2) !important;
}

/* DOPASOWANIE GRIDU QC NA DESKTOP */
.modal-qc-mini-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.modal-qc-mini-grid img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: 0.2s !important;
}

.modal-qc-mini-grid img:hover {
    opacity: 0.8 !important;
    transform: translateY(-2px) !important;
}
/* --- FIX ANIMACJI (Bez tego Search Bar jest niewidoczny) --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.6s ease forwards;
}

.delay3 {
    animation-delay: 0.3s;
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- STYLIZACJA SEARCH WRAP (Pulpit) --- */
.search-wrap {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    background: #111; /* Ciemne tło pasujące do kart */
    border: 1px solid rgba(255, 59, 48, 0.3); /* Czerwona poświata */
    border-radius: 15px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    z-index: 100;
}

.search-wrap:focus-within {
    border-color: #ff3b30;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
}

.search-icon {
    font-size: 18px;
    margin-right: 15px;
    color: #ff3b30;
    filter: drop-shadow(0 0 5px rgba(255, 59, 48, 0.5));
}

#searchInput {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 16px;
    outline: none !important;
    padding: 10px 0;
}

/* Placeholder w kolorze pasującym do reszty */
#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
@media (max-width: 480px) {
    /* SEARCH WRAP NA TELEFONIE */
    .search-wrap {
        width: 92% !important;
        margin: 15px auto !important;
        padding: 5px 15px !important;
        border-radius: 12px !important;
    }

    .search-icon {
        font-size: 14px !important;
        margin-right: 10px !important;
    }

    #searchInput {
        font-size: 14px !important;
        padding: 8px 0 !important;
    }

}
/* --- SEARCH WRAP DESKTOP --- */
.search-wrap {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 15px;
    padding: 5px 20px; /* Zwiększony boczny padding kontenera */
    transition: 0.3s;
    z-index: 100;
}

/* Ikona lupy */
.search-icon {
    font-size: 18px;
    margin-right: 12px; /* Daje odstęp między lupą a tekstem */
    color: #ff3b30;
    flex-shrink: 0; /* Zapobiega ściskaniu ikony */
    display: flex;
    align-items: center;
}

/* Pole tekstowe */
#searchInput {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 12px 0;
    font-size: 16px;
    outline: none !important;
    /* Usuwamy ewentualne absolutne pozycjonowanie, jeśli zostało z poprzednich prób */
    position: relative; 
}

/* Usuwa domyślną ikonkę lupy w niektórych przeglądarkach (Safari/Chrome) */
#searchInput::-webkit-search-decoration,
#searchInput::-webkit-search-cancel-button,
#searchInput::-webkit-search-results-button,
#searchInput::-webkit-search-results-decoration { display: none; }
@media (max-width: 480px) {
    /* SEARCH WRAP MOBILE */
    .search-wrap {
        width: 90% !important;
        padding: 2px 15px !important;
    }

    .search-icon {
        font-size: 16px !important;
        margin-right: 10px !important; /* Odstęp na małym ekranie */
    }

    #searchInput {
        font-size: 14px !important;
        padding: 10px 0 !important;
    }
}
/* --- ANIMACJA FADE-UP (Widoczność) --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.6s ease forwards;
}
.delay3 { animation-delay: 0.3s; }

@keyframes fadeUpIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- SEARCH WRAP DESKTOP --- */
.search-wrap {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    background: #111;
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 15px;
    padding: 0 20px; /* Padding dla kontenera */
    display: flex;
    align-items: center;
    height: 55px;
    transition: 0.3s;
}

.search-icon {
    font-size: 20px;
    color: #ff3b30;
    margin-right: 15px; /* ODSTĘP OD TEKSTU */
    flex-shrink: 0;
    pointer-events: none;
}

#searchInput {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 16px;
    outline: none !important;
    height: 100%;
    padding: 0 !important; /* Reset paddingu, by nie kolidował z marginem ikony */
}

.search-wrap:focus-within {
    border-color: #ff3b30;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
}
@media (max-width: 480px) {
    .search-wrap {
        width: 92% !important;
        margin: 20px auto !important;
        height: 48px !important;
        padding: 0 15px !important;
    }

    .search-icon {
        font-size: 16px !important;
        margin-right: 10px !important;
    }

    #searchInput {
        font-size: 14px !important;
    }

    /* Wyśrodkowanie komunikatu o braku zdjęć QC */
    #modalQCGrid {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        color: rgba(255, 255, 255, 0.4) !important;
        padding: 20px 0 !important;
    }
}
@media (max-width: 480px) {
    /* Kontener filtrów musi być przewijalny na boki, jeśli jest ich dużo */
    .categories {
        display: flex !important;
        overflow-x: auto !important; /* Pozwala przesuwać kategorie palcem */
        overflow-y: hidden !important;
        white-space: nowrap !important;
        padding: 15px 10px !important;
        gap: 10px !important;
        -webkit-overflow-scrolling: touch !important; /* Płynność na iPhone */
        z-index: 200 !important; /* Wyciągamy na sam wierzch */
        position: relative !important;
        background: transparent !important;
    }

    /* Ukrywamy pasek przewijania, żeby było estetycznie */
    .categories::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        display: inline-block !important;
        flex-shrink: 0 !important; /* Przycisk nie może się zwęzić */
        padding: 12px 20px !important; /* Duży obszar dla palca */
        background: #1a1a1a !important;
        border: 1px solid rgba(255, 59, 48, 0.3) !important;
        border-radius: 8px !important;
        color: white !important;
        font-size: 13px !important;
        text-transform: uppercase !important;
        touch-action: manipulation !important; /* Wyłącza opóźnienie kliknięcia 300ms */
        pointer-events: auto !important;
    }

    /* Aktywny filtr */
    .category-btn.active {
        background: #ff3b30 !important;
        border-color: #ff3b30 !important;
        box-shadow: 0 0 10px rgba(255, 59, 48, 0.4) !important;
    }
}
/* --- FILTRY DESKTOP --- */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px auto 30px auto;
    position: relative;
    z-index: 100;
}

.filters button {
    background: #111;
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #888;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filters button:hover {
    border-color: #ff3b30;
    color: #fff;
}

.filters button.active {
    background: #ff3b30;
    color: #fff;
    border-color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.3);
}
@media (max-width: 480px) {
    /* Kontener filtrów na mobile */
    .filters {
        display: flex !important;
        overflow-x: auto !important; /* Włącza przewijanie palcem na boki */
        overflow-y: hidden !important;
        white-space: nowrap !important;
        padding: 10px 15px !important;
        gap: 8px !important;
        justify-content: flex-start !important; /* Wyrównanie do lewej przy scrollu */
        -webkit-overflow-scrolling: touch !important;
        z-index: 999 !important; /* Wyciąga nad search bar */
    }

    /* Ukrywamy pasek przewijania dla estetyki */
    .filters::-webkit-scrollbar {
        display: none;
    }

    /* Przyciski filtrów na mobile */
    .filters button {
        flex: 0 0 auto !important; /* Zapobiega ściskaniu przycisków */
        padding: 12px 20px !important; /* Duży obszar dotyku */
        font-size: 12px !important;
        border-radius: 10px !important;
        background: #111 !important;
        touch-action: manipulation !important; /* Naprawia lagowanie kliknięcia */
        pointer-events: auto !important; /* Wymusza reakcję na dotyk */
    }

    /* Aktywny filtr na mobile */
    .filters button.active {
        background: #ff3b30 !important;
        border-color: #ff3b30 !important;
    }
}
/* --- LIGHTBOX (Twoje ID z funkcji) --- */
#qc-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 100000 !important; /* Bardzo wysoki z-index */
    display: none; /* Funkcja JS zmieni to na 'flex' */
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

#lightbox-img {
    max-width: 90% !important;
    max-height: 90% !important;
    border-radius: 12px !important;
    border: 2px solid #ff3b30 !important;
    box-shadow: 0 0 50px rgba(255, 59, 48, 0.3) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    object-fit: contain !important;
}

/* Przycisk zamknięcia (jeśli go masz w HTML) */
.close-btn-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
@media (max-width: 480px) {
    #lightbox-img {
        max-width: 95% !important;
        max-height: 80% !important; /* Zostawiamy miejsce na górę/dół dla łatwiejszego kliknięcia obok zdjęcia, by zamknąć */
        border-width: 1px !important;
    }

}
/* --- STYLE DLA KOMPUTERA --- */
@media (min-width: 481px) {
    /* Ta klasa zostanie dodana do <body> przez JS, gdy kursor ruszy */
    body.custom-cursor-active, 
    body.custom-cursor-active a, 
    body.custom-cursor-active button {
        cursor: none !important;
    }

    #cursor-outline, #cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 9999999;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 0.3s ease;
    }

    #cursor-outline {
        width: 30px;
        height: 30px;
        border: 2px solid #ff3b30;
    }

    #cursor-dot {
        width: 6px;
        height: 6px;
        background-color: #ff3b30;
        box-shadow: 0 0 10px #ff3b30;
    }

    /* Efekt powiększenia */
    .cursor-hover-scale {
        width: 50px !important;
        height: 50px !important;
        background-color: rgba(255, 59, 48, 0.15) !important;
    }
}

/* --- STYLE DLA TELEFONU --- */
@media (max-width: 480px) {
    #cursor-outline, #cursor-dot { display: none !important; }
}
/* --- BACKGROUND STYLE DESKTOP --- */
body {
    background-color: #050505; /* Bardzo głęboka czerń */
    margin: 0;
    overflow-x: hidden;
}

/* Czerwone mgławice w tle */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 20%, rgba(255, 59, 48, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 59, 48, 0.1) 0%, transparent 40%);
    filter: blur(80px);
    animation: moveGlow 15s infinite alternate ease-in-out;
}

/* Efekt ziarnistości (stary film / tekstura) */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.04; /* Bardzo subtelne */
    pointer-events: none;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Noise_Texture.png');
}

/* Animacja poruszania się światła */
@keyframes moveGlow {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.2) translate(5%, 5%); }
    100% { transform: scale(1) translate(-5%, 2%); }
}

/* Dodatkowy smaczek: czerwona linia na samej górze strony */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff3b30, transparent);
    z-index: 9999;
    box-shadow: 0 0 10px #ff3b30;
}
@media (max-width: 480px) {
    .bg-glow {
        /* Mniejszy blask, bardziej wyśrodkowany */
        background: 
            radial-gradient(circle at 50% 30%, rgba(255, 59, 48, 0.12) 0%, transparent 50%);
        filter: blur(50px);
        animation: moveGlowMobile 10s infinite alternate ease-in-out;
    }

    /* Wyłączamy szum na mobile, jeśli telefon jest słabszy (opcjonalnie) */
    .bg-noise {
        opacity: 0.02;
    }

    @keyframes moveGlowMobile {
        0% { opacity: 0.5; }
        100% { opacity: 1; }
    }
}
/* --- CONVERTER WRAPPER --- */
.converter-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: 50vh;
}

/* Karta konwertera w stylu Glassmorphism */
.converter-card {
    background: rgba(15, 15, 15, 0.8) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 59, 48, 0.2) !important;
    border-radius: 25px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(255, 59, 48, 0.05);
}

.qc-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.qc-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 35px;
    font-size: 16px;
}

/* Kontener wejścia */
.input-field {
    position: relative;
    display: flex;
    background: #111;
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 15px;
    padding: 8px;
    transition: 0.3s;
}

.input-field:focus-within {
    border-color: #ff3b30;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
}

.input-field .input-icon {
    display: flex;
    align-items: center;
    align-self: stretch;
    justify-content: center;
    min-width: 48px;
    padding: 0;
    color: #ff3b30;
    font-size: 18px;
    line-height: 1;
}

#convertInput {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 12px 10px;
    font-size: 16px;
    outline: none !important;
}

/* Główny przycisk Convert (OOPBuy Red) */
.action-btn-main {
    background: #ff3b30 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px;
    padding: 0 25px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn-main:hover {
    background: #d32f2f !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4);
}

.action-btn-main i {
    font-size: 14px;
}

/* Wygląd wyników po konwersji */
#convertResult {
    margin-top: 30px;
    text-align: left;
}

/* Styl dla wygenerowanych linków (jeśli dodajesz je dynamicznie) */
.converted-link-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 59, 48, 0.1);
}
@media (max-width: 480px) {
    .converter-wrap {
        padding: 30px 15px !important;
    }

    .converter-card {
        padding: 25px 15px !important;
        border-radius: 20px !important;
    }

    .qc-title {
        font-size: 26px !important;
    }

    .qc-subtitle {
        font-size: 13px !important;
        margin-bottom: 25px !important;
    }

    /* Przebudowa inputa na pionowy na bardzo małych ekranach */
    .input-field {
        flex-direction: column !important;
        gap: 10px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    #convertInput {
        background: #111 !important;
        border: 1px solid rgba(255, 59, 48, 0.3) !important;
        border-radius: 12px !important;
        padding: 15px !important;
        width: 100% !important;
    }

    .input-icon {
        display: none !important; /* Ukrywamy ikonę wewnątrz na mobile dla miejsca */
    }

    .action-btn-main {
        width: 100% !important;
        justify-content: center !important;
        padding: 15px !important;
        border-radius: 12px !important;
    }
}
/* Obniżenie boxa konwertera */
.converter-wrap {
    margin-top: 50px !important; /* Większy odstęp od headera */
}

/* Przycisk Open Original (środkowy) */
.converter-card button[onclick*="original"], 
.converter-card .open-original-btn {
    background: rgba(255, 59, 48, 0.1) !important;
    border: 1px solid #ff3b30 !important;
    color: #fff !important;
    transition: 0.3s;
}

.converter-card button:hover {
    background: rgba(255, 59, 48, 0.2) !important;
}

/* Lista wygenerowanych agentów (paski pod spodem) */
.converter-card .agent-row, 
#convertResult div {
    background: rgba(20, 20, 20, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Przyciski OPEN i COPY w wynikach (zamiast fioletu) */
.converter-card .open-btn, 
.converter-card .copy-btn,
.converter-card button.purple-style { /* jeśli miały taką klasę */
    background: #ff3b30 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.2) !important;
}

.converter-card .copy-btn {
    background: #333 !important; /* Przycisk kopiuj robimy ciemniejszy dla kontrastu */
}

.converter-card .open-btn:hover {
    background: #e02d24 !important;
    transform: scale(1.05);
}
/* Obniżenie całego boxa konwertera */
.converter-wrap {
    padding-top: 100px !important; /* Większy margines od headera */
}

/* Przycisk Open Original Link (ten szeroki) */
.converter-card button[onclick*="window.open"], 
.view-raw-btn {
    background: rgba(255, 59, 48, 0.1) !important;
    border: 1px solid #ff3b30 !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    margin: 20px 0 !important;
    padding: 15px !important;
    border-radius: 12px !important;
}

.converter-card button[onclick*="window.open"]:hover {
    background: rgba(255, 59, 48, 0.2) !important;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.2);
}

/* Przyciski w wierszach agentów (Open / Copy) */
#convertResult button {
    background: #ff3b30 !important; /* Zamiana fioletu na czerwień */
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    transition: 0.3s all ease;
}

/* Specyficzny kolor dla przycisku kopiowania (ciemniejszy szary, żeby nie było za dużo czerwonego) */
#convertResult button[onclick*="copy"], 
#convertResult .copy-btn {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#convertResult button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* Naprawa tła wierszy agentów */
.agent-row, .platform-row {
    background: rgba(20, 20, 20, 0.4) !important;
    border: 1px solid rgba(255, 59, 48, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    margin-bottom: 8px !important;
}
.action-btn {
    background: #ff3b30 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px;
    padding: 0 25px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    background: #d32f2f !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4);
}

.action-btn i {
    font-size: 14px;
}
/* --- HEADER NAVIGATION ACTIVE STATE --- */
.tool-btn {
    position: relative;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6); /* Standardowy kolor ikon */
}

/* Kiedy przycisk ma klasę active (nadawaną przez PHP) */
.tool-btn.active {
    color: #ff3b30 !important; /* Czerwień OOPBuy */
    background: rgba(255, 59, 48, 0.1);
    border-radius: 12px;
}

.tool-btn.active i {
    filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.6));
    transform: scale(1.1);
}

.tool-btn:hover i {
    color: #ff3b30;
}

/* Mała kropka pod aktywną ikoną (opcjonalnie dla lepszego efektu) */
.tool-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff3b30;
}
/* --- STYLIZACJA PRZYCISKU OPEN RAW (CZERWONY) --- */
.open-raw-btn, 
.converter-card button[onclick*="original"],
.converter-card button[onclick*="window.open"] {
    background: #ff3b30 !important; /* Czerwień OOPBuy */
    color: white !important;
    border: none !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 12px !important;
    width: 100% !important;
    margin: 25px 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3) !important;
}

/* Efekt po najechaniu myszką */
.open-raw-btn:hover, 
.converter-card button[onclick*="original"]:hover {
    background: #e02d24 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.5) !important;
}

/* Ikona wewnątrz przycisku (jeśli jest) */
.open-raw-btn i {
    font-size: 18px !important;
}
.trusted-sellers .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Środkowanie badge i tekstu */
}

.uufinds-header-section {
    text-align: center;
    margin-bottom: 50px;
}

.uufinds-title {
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    margin: 15px 0;
    text-transform: uppercase;
}

.uufinds-subtitle {
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

.header-decor-line {
    width: 80px;
    height: 4px;
    background: #ff3b30;
    margin: 25px auto 0; /* Środkowanie linii */
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny */
    gap: 30px;
    width: 100%;
}

.seller-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column; /* Umożliwia wypchnięcie przycisku na dół */
    transition: 0.3s;
    text-align: center; /* Tekst wewnątrz karty na środek */
}

.seller-card:hover {
    border-color: #ff3b30;
    transform: translateY(-5px);
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Stały stosunek wymiarów zdjęcia */
}

.image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 59, 48, 0.2);
}

.verified-check {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: #ff3b30;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #0a0a0a;
}

/* Treść karty - wyrównanie */
.seller-content {
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Wypełnia przestrzeń */
}

.category-tag {
    color: #ff3b30;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.seller-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 22px;
}

.seller-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1; /* Popycha przycisk w dół, nawet jeśli tekst jest krótki */
}

/* Przycisk na samym dole */
.seller-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: 0.3s;
}

.seller-link:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}
@media (max-width: 992px) {
    .sellers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .sellers-grid { grid-template-columns: 1fr; }
    .uufinds-title { font-size: 32px; }
}
/* --- TRUSTED SELLERS: DOKŁADNE ODWZOROWANIE UKŁADU --- */
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Dokładnie 3 kolumny */
    gap: 20px;
    margin-top: 40px;
}

.seller-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px; /* Duży padding dla luźnego układu */
    display: flex;
    flex-direction: column;
    align-items: center; /* Wszystko na środku karty */
    text-align: center;
    transition: 0.3s;
}

.seller-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 59, 48, 0.3);
}

/* Kwadratowe ikony zamiast szerokich banerów */
.image-wrapper {
    position: relative;
    width: 100px;  /* Mała, kwadratowa ikona */
    height: 100px;
    margin-bottom: 20px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 15px; /* Zaokrąglone rogi ikony */
    object-fit: cover;
    background: #fff; /* Tło dla logo z przeźroczystością */
}

/* Mały checkmark na rogu ikony */
.verified-check {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #28a745; /* Zielony jak na wzorze */
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #141414;
}

/* Teksty wewnątrz karty */
.category-tag {
    color: #28a745; /* Zielony tag kategorii jak na wzorze */
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.seller-card h3 {
    color: #fff;
    font-size: 18px;
    margin: 5px 0;
}

.seller-card p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-bottom: 20px;
}

/* Przycisk Visit Store (wąski, na środku) */
.seller-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-link:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
}
/* Badge nad tytułem */
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid #ff3b30; /* Czerwona obramówka */
    color: #ff3b30;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.1);
}

/* Główny napis Trusted Sellers */
.uufinds-title {
    color: #fff;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 58, 48, 0.904);
}

.uufinds-subtitle {
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto;
    font-size: 15px;
}
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.seller-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Środkowanie wszystkiego w poziomie */
    text-align: center;   /* Środkowanie tekstu */
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seller-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 59, 48, 0.3);
    background: rgba(25, 25, 25, 0.8);
}

/* Pionowe zdjęcia (normalne) */
.image-wrapper {
    position: relative;
    width: 120px;
    height: 200px; /* Wysokie, pionowe zdjęcie */
    margin-bottom: 25px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Mały zielony checkmark */
.verified-check {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 3px solid #121212;
}

/* Teksty */
.category-tag {
    color: #28a745;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.seller-card h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
}

.seller-card p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin-bottom: 25px;
    min-height: 40px;
}

/* Wyśrodkowany przycisk */
.seller-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: auto; /* Popycha przycisk na dół karty */
}

.seller-link:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.4);
}.seller-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Środkowanie elementów w poziomie */
    text-align: center;
    transition: 0.3s ease;
}

/* Kwadratowe kontener na zdjęcie */
.image-wrapper {
    position: relative;
    width: 150px; /* Rozmiar kwadratu */
    height: 150px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zdjęcie w całości (nieprzycięte) */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Gwarantuje, że całe zdjęcie jest widoczne */
    border-radius: 12px;
}

/* Zielony checkmark */
.verified-check {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #121212;
}
.seller-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Środkowanie tekstów i przycisku */
    width: 100%;
}

.seller-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex; /* Inline-flex + align-items center w karcie = środek */
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    width: fit-content; /* Przycisk dopasuje się do tekstu, nie na całą szerokość */
    margin: 0 auto; /* Dodatkowe upewnienie się co do środka */
}

.seller-link:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}
/* --- RESPONSIVE DESIGN (MOBILE & TABLET) --- */

/* Tablety i małe laptopy */
@media (max-width: 1024px) {
    .sellers-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
        gap: 20px;
    }
    
    .uufinds-title {
        font-size: 38px;
    }
}

/* Telefony (Smartfony) */
@media (max-width: 768px) {
    .trusted-sellers {
        padding-top: 60px; /* Mniejszy margines od headera na telefonie */
    }

    .uufinds-title {
        font-size: 28px; /* Mniejszy napis tytułowy */
        padding: 0 15px;
    }

    .uufinds-subtitle {
        font-size: 14px;
        padding: 0 20px;
    }

    .sellers-grid {
        grid-template-columns: 1fr; /* 1 kolumna na telefonie */
        gap: 15px;
        padding: 0 15px; /* Marginesy boczne, żeby karty nie dotykały krawędzi ekranu */
    }

    .seller-card {
        padding: 25px 15px; /* Nieco mniejszy padding wewnątrz karty */
    }

    .image-wrapper {
        width: 130px; /* Nieco mniejszy kwadrat na logo */
        height: 130px;
    }

    .header-badge {
        font-size: 10px;
        padding: 5px 12px;
    }
}

/* Bardzo małe ekrany */
@media (max-width: 400px) {
    .uufinds-title {
        font-size: 24px;
    }
    
    .image-wrapper {
        width: 110px;
        height: 110px;
    }
}
/* --- QC FINDER SECTION --- */
.qc-section {
    padding: 120px 20px 60px;
    display: flex;
    justify-content: center;
    min-height: 80vh;
}

.qc-glass-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    width: 100%;
    max-width: 900px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.qc-title {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -1px;
    /* Efekt blasku jak na wzorze, ale czerwony */
    text-shadow: 0 0 30px rgba(255, 59, 48, 0.4);
}

.qc-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin-bottom: 40px;
}

/* --- SEARCH BAR --- */
.qc-search-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 8px 8px 25px;
    transition: 0.3s;
}

.qc-search-wrap:focus-within {
    border-color: #ff3b30;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
}

.qc-search-icon {
    color: #ff3b30;
    font-size: 18px;
    margin-right: 15px;
}

#qcInput {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    width: 100%;
    outline: none;
}

.qc-submit-btn {
    background: #ff3b30;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
}

.qc-submit-btn:hover {
    transform: scale(1.1);
    background: #e22b2b;
}

/* --- BUTTONS & TIPS --- */
.share-container button {
    background: #ff3b30 !important; /* Czerwony zamiast niebieskiego */
    border-radius: 100px !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
}

.qc-tip-box {
    background: rgba(255, 59, 48, 0.05) !important;
    border: 1px solid rgba(255, 59, 48, 0.3) !important;
    color: #ccc !important;
    border-radius: 16px !important;
}

.qc-tip-box strong {
    color: #ff3b30;
}

/* --- PLACEHOLDER AREA --- */
.qc-placeholder {
    margin-top: 50px;
    opacity: 0.6;
}

.qc-icon-box {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.qc-placeholder h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .qc-section {
        padding: 100px 15px 40px;
    }

    .qc-glass-card {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .qc-title {
        font-size: 32px;
    }

    .qc-subtitle {
        font-size: 14px;
    }

    .qc-search-wrap {
        padding: 6px 6px 6px 18px;
    }

    #qcInput {
        font-size: 13px;
    }

    .qc-submit-btn {
        width: 38px;
        height: 38px;
    }

    .qc-tip-box {
        flex-direction: column;
        text-align: center;
        gap: 10px !important;
    }
}
/* Kontener wagi i ceny */
.qc-info-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
}

/* Styl dla wagi (ikona i tekst) */
.qc-weight {
    color: #ff3b30 !important;
}

/* Styl dla ceny */
.qc-price {
    color: #ff3b30 !important;
}
/* Przycisk Open Item w wynikach QC */
.qc-open-btn {
    text-decoration: none;
    /* Zamiana fioletowego gradientu na czerwony */
    background: linear-gradient(135deg, #ff3b30 0%, #e22b2b 100%) !important;
    color: white !important;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    width: 100%;
    cursor: pointer;
}

.qc-open-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}

.qc-open-btn:active {
    transform: scale(0.98);
}
@media (max-width: 768px) {
    /* Grid wyników QC na mobile - 1 lub 2 kolumny zależnie od szerokości */
    .qc-results-grid {
        grid-template-columns: 1fr !important; 
        gap: 15px;
        padding: 10px;
    }

    .qc-card {
        padding: 10px;
        border-radius: 15px;
    }

    .qc-open-btn {
        padding: 15px; /* Większy obszar kliknięcia na telefonie */
        font-size: 14px;
    }
}
@media (max-width: 768px) {
    .jafoorrr-header #mobileTools { position: absolute !important; }
}
header, .navbar {
    position: relative;
    z-index: 9999 !important; /* Wyższy niż jakiekolwiek karty na stronie */
}

.profile-dropdown {
    z-index: 10000 !important;
    position: absolute;
}
/* --- WEIGHT ESTIMATOR - RED THEME --- */

/* Główne kontenery kart */
.selection-card, .your-items-container, .packaging-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Nagłówki i teksty */
.uufinds-title {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 59, 48, 0.4);
}

.header-decor-line {
    background: linear-gradient(90deg, transparent, #ff3b30, transparent);
}

/* Przyciski i interakcje */
.qty-btn, .clear-all-btn, .back-link-style {
    color: #ff3b30 !important;
}

.qty-btn {
    border: 1px solid rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.05);
}

.qty-btn:hover {
    background: #ff3b30;
    color: white !important;
}

/* Kafelek kategorii */
.cat-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s;
}

.cat-tile:hover {
    border-color: #ff3b30;
    transform: translateY(-5px);
    background: rgba(255, 59, 48, 0.05);
}

.cat-tile i {
    color: #ff3b30;
}

/* Rząd przedmiotu (Lista wyboru) */
.item-row-1to1 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.item-row-1to1:hover {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
}

.add-icon-box {
    background: #ff3b30;
    color: white;
}

/* Podsumowanie (Summary) */
.total-weight-box {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
}

.total-val {
    color: #ff3b30 !important;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
}

/* Sekcja Agentów */
.agent-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    border-radius: 10px;
    transition: 0.3s;
}

.agent-btn:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

/* Input wyszukiwania */
.search-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.search-bar:focus-within {
    border-color: #ff3b30;
}

.search-bar i {
    color: #ff3b30;
}

/* Tip Box */
.tip-box {
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .main-estimator-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .uufinds-title {
        font-size: 28px;
    }
}
/* --- GŁÓWNA STRUKTURA ESTIMATORA --- */
.main-estimator-grid {
    display: flex;
    gap: 20px;
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    align-items: flex-start;
}

/* --- KARTY (Główny Styl) --- */
.selection-card, .packaging-card, .your-items-container {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.selection-card { flex: 2; }
.packaging-card { flex: 1; min-width: 320px; }

/* --- NAGŁÓWKI --- */
.card-header h3, .your-items-header h4, .packaging-card h4 {
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* --- WYSZUKIWARKA --- */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 8px 8px 18px;
    gap: 12px;
    margin: 20px 0;
    transition: 0.3s;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
    padding: 8px 0;
}

.search-bar input:focus {
    outline: none;
}

.search-bar:focus-within {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.1);
}

.search-bar i {
    color: #ff3b30;
    font-size: 16px;
    flex-shrink: 0;
}

/* --- KAFELKI KATEGORII --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 10px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}

.cat-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-tile:hover {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
    transform: translateY(-5px);
}

.cat-tile i {
    display: block;
    font-size: 24px;
    color: #ff3b30;
    margin-bottom: 10px;
}

.cat-tile span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* --- LISTA PRZEDMIOTÓW (1:1) --- */
.item-row-1to1 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 8px;
}

.item-row-1to1:hover {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.08);
}

.add-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3b30;
    font-weight: bold;
    transition: 0.3s;
}

.item-row-1to1:hover .add-icon-box {
    background: #ff3b30;
    color: #fff;
}

/* --- TWOJE PRZEDMIOTY (Haul) --- */
.added-item-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.item-icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 12px;
    gap: 15px;
}

.qty-btn {
    background: none;
    border: none;
    color: #ff3b30;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover { transform: scale(1.3); }

/* --- SUMMARY & TOTAL --- */
.pkg-option-box {
    border: 1px solid #ff3b30;
    background: rgba(255, 59, 48, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-weight-box {
    margin: 25px 0;
    text-align: center;
}

.total-val.neon-red {
    color: #ff3b30;
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
}

.unit-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
}

.unit-box strong { color: #ff3b30; font-size: 18px; }

/* --- AGENTS --- */
.agent-btn {
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.agent-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .main-estimator-grid {
        flex-direction: column;
        padding: 10px;
    }

    .selection-card, .packaging-card, .your-items-container {
        width: 100%;
        flex: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-bar input {
        font-size: 16px; /* Zapobiega zoomowaniu na iOS */
    }
}

/* Scrollbar Style */
.categories-grid::-webkit-scrollbar { width: 4px; }
.categories-grid::-webkit-scrollbar-thumb { background: #ff3b30; border-radius: 10px; }
/* --- CLEAR ALL BUTTON FIX --- */
.clear-all-btn {
    background: #000000 !important; /* Czarne tło */
    border: 1px solid rgba(255, 59, 48, 0.3) !important; /* Delikatna czerwona obramówka */
    color: #ff3b30 !important; /* Czerwony tekst */
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #ff3b30 !important; /* Zmiana na czerwony przy najechaniu */
    color: #ffffff !important; /* Biały tekst przy najechaniu */
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.3);
    transform: translateY(-2px);
}

.clear-all-btn i {
    font-size: 14px;
}
/* Styl przycisku Find */
.search-bar button {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.search-bar button:hover {
    background: #d32f2f;
    transform: scale(1.02);
}

/* Hero search bar overrides */
.search-section .search-bar {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 14px;
    max-width: 700px;
    margin: 0 auto;
}

.search-section .search-bar input {
    font-size: 16px;
    padding: 10px 0;
}

/* ============================================
   ANIMATIONS — PAGE ENTRANCE & INTERACTIONS
   ============================================ */

/* --- KEYFRAMES --- */

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.35); }
    50%       { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #ff3b30; }
    50%       { opacity: 0.5; transform: scale(1.4); box-shadow: 0 0 16px #ff3b30; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
    50%       { box-shadow: 0 0 20px 4px rgba(255, 59, 48, 0.25); }
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(50px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- HERO SECTION ENTRANCE --- */

.hero-section {
    animation: fadeIn 0.6s ease both;
}

.hero-badge {
    animation: fadeSlideDown 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both, badgePulse 3s ease-in-out 1s infinite;
}

.badge-dot {
    animation: dotBlink 2s ease-in-out infinite;
}

.hero-title {
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.hero-cta {
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both;
}

.search-section {
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both;
}

/* --- HERO TITLE HIGHLIGHT SHIMMER --- */

.hero-title .highlight {
    background: linear-gradient(
        90deg,
        #fff 20%,
        #ff3b30 40%,
        #ff8a84 50%,
        #ff3b30 60%,
        #fff 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear 1.2s infinite;
}

/* --- BUTTONS --- */

.btn-primary {
    position: relative;
    overflow: hidden;
    animation: glowPulse 3s ease-in-out 1.5s infinite;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: btnShine 4s ease-in-out 2s infinite;
}

@keyframes btnShine {
    0%   { left: -75%; }
    30%, 100% { left: 125%; }
}

/* --- TOOL CARDS STAGGERED ENTRANCE --- */

.tools-grid .tool-card:nth-child(1) { animation: cardEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both; }
.tools-grid .tool-card:nth-child(2) { animation: cardEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.0s both; }
.tools-grid .tool-card:nth-child(3) { animation: cardEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s both; }
.tools-grid .tool-card:nth-child(4) { animation: cardEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.4s both; }

/* --- TOOL CARD HOVER GLOW --- */

.tool-card {
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    box-shadow: 0 8px 40px rgba(255, 59, 48, 0.18), 0 2px 12px rgba(0,0,0,0.4);
}

.tool-icon {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(-5deg);
    background: rgba(255, 59, 48, 0.2);
}

/* --- SEARCH BAR FOCUS ANIMATION --- */

.search-section .search-bar {
    transition: border-color 0.3s, box-shadow 0.4s, transform 0.3s;
}

.search-section .search-bar:focus-within {
    transform: translateY(-2px);
}

/* --- ONLINE COUNTER SLIDE IN --- */

.online-counter {
    animation: slideInLeft 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both;
}

/* --- SCROLL-TRIGGERED .fade-up (override to use animation) --- */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- REDUCE MOTION (accessibility) --- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRODUCTS PAGE ANIMATIONS
   ============================================ */

/* --- PAGE ENTRANCE --- */

.products-page .products h1 {
    animation: fadeSlideDown 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.products-page .filters {
    animation: fadeSlideUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}

.products-page .search-wrap {
    animation: fadeSlideUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.products-page .shop-advanced-filters {
    animation: fadeSlideUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

/* --- FILTER BUTTONS --- */

.filters button {
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.filters button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.25);
}

.filters button.active {
    animation: glowPulse 3s ease-in-out infinite;
}

/* --- SCROLL PROGRESS BAR --- */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #ff3b30, #ff8a84);
    z-index: 99999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
}

/* --- PRODUCT CARDS ENTRANCE (JS stagger via class) --- */

.product-card {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s,
                border-color 0.3s;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delay for first visible batch */
.product-card:nth-child(1)  { transition-delay: 0.05s; }
.product-card:nth-child(2)  { transition-delay: 0.10s; }
.product-card:nth-child(3)  { transition-delay: 0.15s; }
.product-card:nth-child(4)  { transition-delay: 0.20s; }
.product-card:nth-child(5)  { transition-delay: 0.25s; }
.product-card:nth-child(6)  { transition-delay: 0.30s; }
.product-card:nth-child(7)  { transition-delay: 0.35s; }
.product-card:nth-child(8)  { transition-delay: 0.40s; }
.product-card:nth-child(9)  { transition-delay: 0.45s; }
.product-card:nth-child(10) { transition-delay: 0.50s; }
.product-card:nth-child(11) { transition-delay: 0.55s; }
.product-card:nth-child(12) { transition-delay: 0.60s; }

/* --- PRODUCT CARD HOVER --- */

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(255, 59, 48, 0.2), 0 4px 16px rgba(0,0,0,0.5);
    border-color: rgba(255, 59, 48, 0.5);
}

/* --- MODAL ENTRANCE --- */

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.93) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-overlay.active .modal-content,
.modal-overlay[style*="flex"] .modal-content,
.modal-overlay[style*="block"] .modal-content {
    animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* --- TOAST NOTIFICATION --- */

@keyframes slideInToast {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast {
    animation: slideInToast 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* --- SEARCH INPUT FOCUS --- */

.search-wrap {
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-wrap:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 59, 48, 0.15);
}


/* ============================================
   FILTERS — PYRAMID MOBILE LAYOUT
   ============================================ */

@media (max-width: 768px) {
    .filters {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 4px;
    }

    .filters button {
        display: inline-block;
        width: auto !important;
        padding: 11px 18px;
        font-size: 11px;
        letter-spacing: 0.5px;
        border-radius: 12px;
        flex: 0 0 auto;
    }
}

/* ============================================
   FILTERS — PYRAMID FIX (nadpisuje stary mobile scroll)
   ============================================ */

@media (max-width: 768px) {
    .filters {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        white-space: normal !important;
        justify-content: center !important;
        padding: 0 8px !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: auto !important;
    }

    .filters button {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 11px 16px !important;
        font-size: 11px !important;
        border-radius: 12px !important;
        touch-action: manipulation !important;
    }
}
#requestProductBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ff3b30;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(255,59,48,0.45);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}
#requestProductBtn:hover {
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 8px 32px rgba(255,59,48,0.6);
}

.rp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.rp-overlay.open { display: flex; }

.rp-modal {
    background: #0f0f0f;
    border: 1px solid rgba(255,59,48,0.25);
    border-radius: 24px;
    padding: 40px 32px 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 80px rgba(255,59,48,0.15);
    animation: rpModalIn 0.35s cubic-bezier(0.2,0.8,0.2,1) both;
    text-align: center;
}
@keyframes rpModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.rp-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    color: #555; font-size: 22px;
    cursor: pointer; transition: color 0.2s; line-height: 1;
}
.rp-close:hover { color: #fff; }

.rp-icon {
    width: 56px; height: 56px;
    background: rgba(255,59,48,0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #ff3b30;
    margin: 0 auto 18px;
}

.rp-title { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.rp-subtitle { color: #666; font-size: 13px; margin-bottom: 24px; line-height: 1.5; }

.rp-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff; font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.rp-input:focus { border-color: #ff3b30; box-shadow: 0 0 16px rgba(255,59,48,0.15); }

.rp-submit {
    width: 100%;
    background: #ff3b30; color: #fff;
    border: none; border-radius: 12px;
    padding: 14px; font-size: 15px; font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    touch-action: manipulation;
}
.rp-submit:hover { background: #d42e25; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,59,48,0.35); }
.rp-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.rp-status { margin-top: 14px; font-size: 13px; min-height: 18px; }
.rp-status.success { color: #4caf50; }
.rp-status.error   { color: #ff3b30; }

@media (max-width: 768px) {
    #requestProductBtn { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 20px; }
    .rp-modal { padding: 32px 20px 24px; border-radius: 20px; }
    .rp-title { font-size: 19px; }
}
/* ============================================
   SETTINGS MODAL — TABS & THEME PICKER
   ============================================ */

.stg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #111;
    padding: 5px;
    border-radius: 14px;
}

.stg-tab {
    flex: 1;
    background: none;
    border: none;
    color: #666;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.2s, color 0.2s;
}

.stg-tab.active {
    background: #ff3b30;
    color: #fff;
}

.stg-panel { animation: fadeIn 0.2s ease both; }

.stg-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stg-theme-item {
    background: #111;
    border: 2px solid #222;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s;
    position: relative;
    color: #888;
    font-size: 13px;
    font-weight: 700;
}

.stg-theme-item.active {
    border-color: #ff3b30;
    color: #fff;
}

.stg-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ff3b30;
    font-size: 14px;
    opacity: 0;
}

.stg-theme-item.active .stg-check { opacity: 1; }

.stg-theme-preview {
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dark-preview { background: #0a0a0a; }
.light-preview { background: #f0f0f0; }

.stg-preview-header {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,59,48,0.5);
}

.dark-preview .stg-preview-card { background: #1a1a1a; height: 12px; border-radius: 4px; }
.light-preview .stg-preview-card { background: #fff; height: 12px; border-radius: 4px; }

/* ============================================
   LIGHT MODE — CSS Variables
   ============================================ */

:root {
    --bg: #0a0a0a;
    --bg2: #111;
    --bg3: #1a1a1a;
    --text: #ffffff;
    --text2: #aaaaaa;
    --border: rgba(255,255,255,0.08);
    --card-bg: rgba(255,255,255,0.03);
    --header-bg: rgba(10,10,10,0.75);
    --blob-opacity: 1;
}

[data-theme="light"] {
    --bg: #f5f5f5;
    --bg2: #ffffff;
    --bg3: #ebebeb;
    --text: #111111;
    --text2: #555555;
    --border: rgba(0,0,0,0.08);
    --card-bg: rgba(0,0,0,0.03);
    --header-bg: rgba(245,245,245,0.85);
    --blob-opacity: 0.15;
}

/* Apply variables */
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .header-glass { background: var(--header-bg); border-color: var(--border); }
[data-theme="light"] .nav-link { color: #555; }
[data-theme="light"] .nav-link:hover:not(.active) { background: rgba(0,0,0,0.05); color: #111; }
[data-theme="light"] .tool-btn, [data-theme="light"] .mobile-trigger { background: rgba(0,0,0,0.05); border-color: var(--border); color: #111; }
[data-theme="light"] .tool-card { background: var(--card-bg); border-color: var(--border); }
[data-theme="light"] .tool-card h3, [data-theme="light"] .tool-card p { color: var(--text); }
[data-theme="light"] .hero-title { color: var(--text); }
[data-theme="light"] .hero-subtitle { color: var(--text2); }
[data-theme="light"] .search-bar { background: rgba(0,0,0,0.05); border-color: var(--border); }
[data-theme="light"] .search-bar input { color: var(--text); }
[data-theme="light"] .search-bar input::placeholder { color: var(--text2); }
[data-theme="light"] .online-counter { color: var(--text2); }
[data-theme="light"] .dynamic-background { opacity: var(--blob-opacity); }
[data-theme="light"] .product-card { background: var(--bg2); border-color: var(--border); color: var(--text); }
[data-theme="light"] .filters button { background: var(--bg2); border-color: var(--border); color: var(--text); }
[data-theme="light"] .shop-advanced-filters { background: var(--bg2); }
[data-theme="light"] .filter-label { color: var(--text2); }
[data-theme="light"] .search-wrap { background: var(--bg2); border-color: var(--border); }
[data-theme="light"] #searchInput { color: var(--text); }
[data-theme="light"] .mobile-nav { background: var(--bg2); border-color: var(--border); }
[data-theme="light"] .mobile-nav a { background: var(--bg3); color: var(--text); }
[data-theme="light"] .user-dropdown { background: var(--bg2); border-color: var(--border); }
[data-theme="light"] .user-dropdown a { color: var(--text2); }
[data-theme="light"] .modal-content { background: var(--bg2); color: var(--text); }
[data-theme="light"] .ob-modal-content { background: var(--bg2); }
[data-theme="light"] .ob-title { color: var(--text); }
[data-theme="light"] .stg-tab { color: var(--text2); }
[data-theme="light"] .stg-tabs { background: var(--bg3); }
[data-theme="light"] .stg-theme-item { background: var(--bg3); border-color: var(--border); color: var(--text2); }
/* ============================================
   LIGHT MODE — COMPLETE OVERRIDE
   ============================================ */

[data-theme="light"] {
    --bg-black: #f0f0f0;
    --card-bg: #ffffff;
    --text-white: #111111;
    --text-gray: #555555;
    --border: rgba(0, 0, 0, 0.08);
}

/* Base */
[data-theme="light"] body {
    background-color: #f0f0f0;
    color: #111;
}

/* Background blobs — barely visible */
[data-theme="light"] .dynamic-background,
[data-theme="light"] .blob-c,
[data-theme="light"] .bg-blobs { opacity: 0.08; }

[data-theme="light"] .bg-depth { background: #f0f0f0; }
[data-theme="light"] .dynamic-background::before { background: #f0f0f0; }

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: #e0e0e0; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff3b30, #c0392b); }

/* Header */
[data-theme="light"] .jafoorrr-header .header-glass {
    background: rgba(240, 240, 240, 0.9);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

[data-theme="light"] .nav-link { color: #555; }
[data-theme="light"] .nav-link:hover:not(.active) { background: rgba(0,0,0,0.06); color: #111; }
[data-theme="light"] .tool-btn,
[data-theme="light"] .mobile-trigger {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
    color: #111;
}
[data-theme="light"] .tool-btn:hover { background: #ff3b30; color: #fff; border-color: #ff3b30; }
[data-theme="light"] .login-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: #111; }
[data-theme="light"] .desktop-tools { gap: 6px; }

/* Mobile nav */
[data-theme="light"] .mobile-nav {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .mobile-nav a,
[data-theme="light"] .m-currency-btn {
    background: #f5f5f5;
    color: #111;
}
[data-theme="light"] .m-divider { background: rgba(0,0,0,0.08); }

/* User dropdown */
[data-theme="light"] .user-dropdown {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .user-dropdown a { color: #555; }
[data-theme="light"] .user-dropdown a:hover { background: #f5f5f5; color: #111; }
[data-theme="light"] .dropdown-user-info { border-color: rgba(0,0,0,0.08); color: #111; }

/* Hero */
[data-theme="light"] .hero-title { color: #111; }
[data-theme="light"] .hero-title .highlight {
    background: linear-gradient(90deg, #111 20%, #ff3b30 40%, #ff8a84 50%, #ff3b30 60%, #111 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-subtitle { color: #555; }
[data-theme="light"] .hero-badge {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: #333;
}
[data-theme="light"] .online-counter { color: #777; }

/* Buttons */
[data-theme="light"] .btn-secondary {
    background: #e8e8e8;
    color: #111;
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .btn-secondary:hover { background: #ddd; border-color: #aaa; }

/* Search bar */
[data-theme="light"] .search-bar,
[data-theme="light"] .search-section .search-bar {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .search-bar input { color: #111; }
[data-theme="light"] .search-bar input::placeholder { color: #999; }
[data-theme="light"] .search-bar:focus-within { border-color: #ff3b30; background: #fff; }

/* Tool cards (index) */
[data-theme="light"] .tool-card {
    background: #fff;
    border-color: rgba(0,0,0,0.07);
    color: #111;
}
[data-theme="light"] .tool-card h3 { color: #111; }
[data-theme="light"] .tool-card p { color: #666; }
[data-theme="light"] .tool-card:hover { box-shadow: 0 8px 40px rgba(255,59,48,0.12); border-color: rgba(255,59,48,0.3); }

/* Products page */
[data-theme="light"] .products { background: transparent; }
[data-theme="light"] .products h1 { color: #111; }

[data-theme="light"] .filters button {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    color: #333;
}
[data-theme="light"] .filters button:hover { background: #f5f5f5; color: #111; }
[data-theme="light"] .filters button.active { background: #ff3b30; color: #fff; border-color: #ff3b30; }

/* Search wrap */
[data-theme="light"] .search-wrap {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] #searchInput { color: #111; background: transparent; }
[data-theme="light"] #searchInput::placeholder { color: #999; }
[data-theme="light"] .search-icon { filter: grayscale(1) brightness(0.4); }

/* Advanced filters */
[data-theme="light"] .shop-advanced-filters {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .filter-label { color: #555; }
[data-theme="light"] .price-tag { color: #333; }
[data-theme="light"] .modern-select {
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.1);
    color: #111;
}

/* Product cards */
[data-theme="light"] .product-card {
    background: #fff;
    border-color: rgba(0,0,0,0.07);
    color: #111;
}
[data-theme="light"] .product-card:hover {
    box-shadow: 0 16px 48px rgba(255,59,48,0.12);
    border-color: rgba(255,59,48,0.3);
}
[data-theme="light"] .product-card h3,
[data-theme="light"] .product-card .product-name { color: #111; }
[data-theme="light"] .product-card .product-price { color: #ff3b30; }
[data-theme="light"] .product-card .product-category { color: #777; }

/* Modal */
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.5); }
[data-theme="light"] .modal-content {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    color: #111;
}
[data-theme="light"] .close-modal { color: #555; }
[data-theme="light"] .close-modal:hover { color: #111; }
[data-theme="light"] .modal-details h1 { color: #111; }

/* QC lightbox */
[data-theme="light"] #qc-lightbox { background: rgba(0,0,0,0.85); }

/* Scroll progress */
[data-theme="light"] #scroll-progress {
    background: linear-gradient(90deg, #ff3b30, #ff8a84);
}

/* Toast */
[data-theme="light"] .toast {
    background: #fff;
    color: #111;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Request product modal */
[data-theme="light"] .rp-modal {
    background: #fff;
    border-color: rgba(255,59,48,0.2);
}
[data-theme="light"] .rp-title { color: #111; }
[data-theme="light"] .rp-subtitle { color: #777; }
[data-theme="light"] .rp-input {
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.1);
    color: #111;
}
[data-theme="light"] .rp-input::placeholder { color: #999; }
[data-theme="light"] .rp-close { color: #aaa; }
[data-theme="light"] .rp-close:hover { color: #111; }

/* Settings modal */
[data-theme="light"] .ob-modal-content {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .ob-title { color: #111; }
[data-theme="light"] .ob-currency-item { background: #f5f5f5; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .ob-currency-name { color: #111; }
[data-theme="light"] .stg-tabs { background: #f0f0f0; }
[data-theme="light"] .stg-tab { color: #666; }
[data-theme="light"] .stg-theme-item { background: #f5f5f5; border-color: rgba(0,0,0,0.1); color: #666; }
[data-theme="light"] .stg-theme-item.active { border-color: #ff3b30; color: #111; }

/* Converter, other cards */
[data-theme="light"] .converter-card,
[data-theme="light"] .card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    color: #111;
}
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #f5f5f5;
    color: #111;
    border-color: rgba(0,0,0,0.1);
}

/* Mouse glow — subtler on light */
[data-theme="light"] .mouse-glow {
    background: radial-gradient(circle, rgba(255,59,48,0.08) 0%, transparent 70%);
}

/* ============================================
   LIGHT MODE — PRODUCT MODAL FIX
   ============================================ */

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #111;
}

[data-theme="light"] .modal-img-container {
    background: #f5f5f5;
}

[data-theme="light"] .modal-details h1 { color: #111; }
[data-theme="light"] .modal-details p,
[data-theme="light"] .modal-details span { color: #555; }

[data-theme="light"] .close-modal {
    background: rgba(0,0,0,0.06);
    color: #555;
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .close-modal:hover { color: #111; background: rgba(0,0,0,0.1); }

[data-theme="light"] .modal-action-button,
[data-theme="light"] .modal-action-btn {
    background: #f0f0f0;
    border-color: rgba(0,0,0,0.1);
    color: #333;
}
[data-theme="light"] .modal-action-button:hover,
[data-theme="light"] .modal-action-btn:hover {
    background: #e5e5e5;
    color: #111;
}

[data-theme="light"] .modal-qc-mini-grid img {
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .modal-status-center { color: #555; }

[data-theme="light"] .qc-section-mini h3 { color: #111; }

/* ============================================
   LIGHT MODE — MODAL FINAL FIX (override !important)
   ============================================ */

html[data-theme="light"] #productModal.modal-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="light"] #productModal .modal-content {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    color: #111 !important;
}

html[data-theme="light"] .modal-img-container {
    background: #f5f5f5 !important;
}

html[data-theme="light"] .modal-details h1,
html[data-theme="light"] .modal-details h2,
html[data-theme="light"] .modal-details h3 { color: #111 !important; }

html[data-theme="light"] .modal-details p,
html[data-theme="light"] .modal-details span { color: #555 !important; }

html[data-theme="light"] .close-modal {
    background: rgba(0,0,0,0.06) !important;
    color: #555 !important;
    border-color: rgba(0,0,0,0.1) !important;
}

html[data-theme="light"] .modal-action-button,
html[data-theme="light"] .modal-action-btn {
    background: #f0f0f0 !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #333 !important;
}
.featured-section {
    padding: 80px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.featured-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-header h2 i {
    color: #ff3b30;
    font-size: 20px;
}

.featured-see-all {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #444;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.featured-see-all:hover { color: #ff3b30; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.featured-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
    text-decoration: none;
    display: block;
}

.featured-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    border-color: rgba(255,59,48,0.3);
    box-shadow: 0 12px 40px rgba(255,59,48,0.1);
    transform: translateY(-6px) !important;
}

.featured-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #111;
}

.featured-card-body {
    padding: 16px;
}

.featured-card-category {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-card-price {
    font-size: 16px;
    font-weight: 800;
    color: #ff3b30;
}

.featured-card-btn {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.featured-card-btn:hover { background: #d42e25; transform: scale(1.05); }

.features-section {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.features-header {
    margin-bottom: 28px;
}

.features-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.features-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    min-height: 340px;
}

.feature-card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    padding: 22px 20px;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.2,0.8,0.2,1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,59,48,0.18) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.feature-card.active {
    grid-column: span 2;
    border-color: rgba(255,59,48,0.2);
    background: rgba(255,59,48,0.05);
}

.feature-card.active::before { opacity: 1; }

.feature-card-num {
    font-size: 80px;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    position: absolute;
    bottom: 10px;
    right: 20px;
    line-height: 1;
    transition: color 0.45s;
    user-select: none;
}

.feature-card.active .feature-card-num { color: rgba(255,59,48,0.08); }

.feature-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ff3b30;
    margin-bottom: 16px;
    transition: background 0.3s, transform 0.3s;
}

.feature-card.active .feature-card-icon {
    background: rgba(255,59,48,0.2);
    transform: scale(1.05);
}

.feature-card-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #333;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: auto 0;
    transition: color 0.3s;
}

.feature-card.active .feature-card-label { display: none; }

.feature-card-content { display: none; }

.feature-card.active .feature-card-content {
    display: block;
    position: relative;
    z-index: 1;
}

.feature-card-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card-content .feature-sub {
    font-size: 13px;
    font-weight: 700;
    color: #ff3b30;
    margin-bottom: 14px;
}

.feature-card-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    max-width: 380px;
}

.feature-card-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.feature-card-content a:hover { color: #ff3b30; border-color: #ff3b30; }

.faq-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.faq-eyebrow {
    display: inline-block;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
    color: #ff3b30;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.faq-section h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.faq-section .faq-sub {
    color: #555;
    font-size: 16px;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 22px 24px;
    transition: border-color 0.25s, background 0.25s;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s, background 0.25s;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    border-color: rgba(255,59,48,0.2);
    background: rgba(255,59,48,0.03);
}

.faq-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .features-cards { grid-template-columns: 1fr; min-height: auto; }
    .feature-card.active { grid-column: span 1; }
    .feature-card-label { writing-mode: horizontal-tb; transform: none; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .featured-section, .features-section, .faq-section { padding: 50px 16px; }
}
.featured-section {
    padding: 80px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.featured-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-header h2 i { color: #ff3b30; font-size: 20px; }

.featured-see-all {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #444;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.featured-see-all:hover { color: #ff3b30; }

.featured-loading {
    grid-column: span 4;
    text-align: center;
    padding: 40px;
    color: #333;
    font-size: 14px;
}

.featured-loading i { color: #ff3b30; margin-right: 8px; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.featured-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.featured-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.featured-card:hover {
    border-color: rgba(255,59,48,0.35);
    box-shadow: 0 12px 40px rgba(255,59,48,0.12);
    transform: translateY(-6px) !important;
}

.featured-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #111;
}

.featured-card-body { padding: 16px; }

.featured-card-category {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-card-price {
    font-size: 16px;
    font-weight: 800;
    color: #ff3b30;
}

.featured-card-btn {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.featured-card-btn:hover { background: #d42e25; transform: scale(1.05); }

.features-section {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.features-header { margin-bottom: 28px; }
.features-header h2 { font-size: 28px; font-weight: 800; color: #fff; }

.features-cards {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 14px;
    min-height: 360px;
    align-items: stretch;
    transition: grid-template-columns 0.5s cubic-bezier(0.2,0.8,0.2,1);
}

.features-cards[data-active="1"] { grid-template-columns: 3fr 1fr 1fr 1fr; }
.features-cards[data-active="2"] { grid-template-columns: 1fr 3fr 1fr 1fr; }
.features-cards[data-active="3"] { grid-template-columns: 1fr 1fr 3fr 1fr; }
.features-cards[data-active="4"] { grid-template-columns: 1fr 1fr 1fr 3fr; }

.feature-card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    padding: 22px 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    grid-row: 1;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,59,48,0.15) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card.active {
    border-color: rgba(255,59,48,0.2);
    background: rgba(255,59,48,0.04);
}

.feature-card.active::before { opacity: 1; }

.feature-card-num {
    font-size: 80px;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    position: absolute;
    bottom: 10px;
    right: 20px;
    line-height: 1;
    user-select: none;
    transition: color 0.4s;
}

.feature-card.active .feature-card-num { color: rgba(255,59,48,0.07); }

.feature-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ff3b30;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.3s;
}

.feature-card.active .feature-card-icon {
    background: rgba(255,59,48,0.18);
    transform: scale(1.05);
}

.feature-card-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #2a2a2a;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: auto 0;
    transition: color 0.3s;
}

.feature-card.active .feature-card-label { display: none; }

.feature-card-content { display: none; position: relative; z-index: 1; }
.feature-card.active .feature-card-content { display: block; }

.feature-card-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card-content .feature-sub {
    font-size: 13px;
    font-weight: 700;
    color: #ff3b30;
    margin-bottom: 14px;
}

.feature-card-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    max-width: 380px;
}

.feature-card-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.feature-card-content a:hover { color: #ff3b30; border-color: #ff3b30; }

.faq-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.faq-eyebrow {
    display: inline-block;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
    color: #ff3b30;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.faq-section h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.faq-sub { color: #555; font-size: 16px; margin-bottom: 40px; }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 22px 24px;
    transition: border-color 0.25s, background 0.25s;
}

.faq-item:hover {
    border-color: rgba(255,59,48,0.2);
    background: rgba(255,59,48,0.03);
}

.faq-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.faq-item p { font-size: 14px; color: #666; line-height: 1.6; }

@media (max-width: 900px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .features-cards { grid-template-columns: 1fr !important; min-height: auto; }
    .feature-card { min-height: auto; }
    .feature-card-label { writing-mode: horizontal-tb; transform: none; margin: 8px 0; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .featured-section, .features-section, .faq-section { padding: 50px 16px; }
}
.featured-section {
    padding: 80px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.featured-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-header h2 i { color: #ff3b30; font-size: 20px; }

.featured-see-all {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #444;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.featured-see-all:hover { color: #ff3b30; }

.featured-loading {
    grid-column: span 4;
    text-align: center;
    padding: 40px;
    color: #333;
    font-size: 14px;
}

.featured-loading i { color: #ff3b30; margin-right: 8px; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.featured-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.featured-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.featured-card:hover {
    border-color: rgba(255,59,48,0.35);
    box-shadow: 0 12px 40px rgba(255,59,48,0.12);
    transform: translateY(-6px) !important;
}

.featured-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #111;
}

.featured-card-body { padding: 16px; }

.featured-card-category {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-card-price {
    font-size: 16px;
    font-weight: 800;
    color: #ff3b30;
}

.featured-card-btn {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.featured-card-btn:hover { background: #d42e25; transform: scale(1.05); }

.features-section {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.features-header { margin-bottom: 28px; }
.features-header h2 { font-size: 28px; font-weight: 800; color: #fff; }

.features-cards {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 14px;
    min-height: 360px;
    align-items: stretch;
    transition: grid-template-columns 0.5s cubic-bezier(0.2,0.8,0.2,1);
}

.features-cards[data-active="1"] { grid-template-columns: 3fr 1fr 1fr 1fr; }
.features-cards[data-active="2"] { grid-template-columns: 1fr 3fr 1fr 1fr; }
.features-cards[data-active="3"] { grid-template-columns: 1fr 1fr 3fr 1fr; }
.features-cards[data-active="4"] { grid-template-columns: 1fr 1fr 1fr 3fr; }

.feature-card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    padding: 22px 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    grid-row: 1;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,59,48,0.15) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card.active {
    border-color: rgba(255,59,48,0.2);
    background: rgba(255,59,48,0.04);
}

.feature-card.active::before { opacity: 1; }

.feature-card-num {
    font-size: 80px;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    position: absolute;
    bottom: 10px;
    right: 20px;
    line-height: 1;
    user-select: none;
    transition: color 0.4s;
}

.feature-card.active .feature-card-num { color: rgba(255,59,48,0.07); }

.feature-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ff3b30;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.3s;
}

.feature-card.active .feature-card-icon {
    background: rgba(255,59,48,0.18);
    transform: scale(1.05);
}

.feature-card-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #2a2a2a;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: auto 0;
    transition: color 0.3s;
}

.feature-card.active .feature-card-label { display: none; }

.feature-card-content { display: none; position: relative; z-index: 1; }
.feature-card.active .feature-card-content { display: block; }

.feature-card-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card-content .feature-sub {
    font-size: 13px;
    font-weight: 700;
    color: #ff3b30;
    margin-bottom: 14px;
}

.feature-card-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    max-width: 380px;
}

.feature-card-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.feature-card-content a:hover { color: #ff3b30; border-color: #ff3b30; }

.faq-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.faq-eyebrow {
    display: inline-block;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
    color: #ff3b30;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.faq-section h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.faq-sub { color: #555; font-size: 16px; margin-bottom: 40px; }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 22px 24px;
    transition: border-color 0.25s, background 0.25s;
}

.faq-item:hover {
    border-color: rgba(255,59,48,0.2);
    background: rgba(255,59,48,0.03);
}

.faq-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.faq-item p { font-size: 14px; color: #666; line-height: 1.6; }

@media (max-width: 900px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; }

    .features-cards {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        min-height: auto;
        gap: 10px;
    }

    .feature-card {
        grid-row: auto !important;
        min-height: auto;
        padding: 18px 16px;
    }

    .feature-card-label {
        writing-mode: horizontal-tb;
        transform: none;
        margin: 10px 0 0;
        font-size: 9px;
        color: #444;
    }

    .feature-card-num {
        font-size: 50px;
        bottom: 8px;
        right: 14px;
    }

    .feature-card-content h3 { font-size: 20px; }
    .feature-card-content p { font-size: 13px; }
}

@media (max-width: 600px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .featured-section, .features-section, .faq-section { padding: 50px 16px; }
}
.uufinds-header-section {
    padding: 140px 5% 40px;
    text-align: center;
}

.uufinds-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.uufinds-subtitle {
    color: #555;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.header-decor-line {
    width: 48px;
    height: 3px;
    background: #ff3b30;
    border-radius: 2px;
    margin: 0 auto;
    box-shadow: 0 0 12px rgba(255,59,48,0.5);
}

.main-estimator-grid {
    display: grid;
    grid-template-columns: 1fr 320px 260px;
    gap: 16px;
    padding: 0 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.selection-card,
.your-items-container,
.packaging-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px;
}

.card-header {
    margin-bottom: 18px;
}

.card-header h3,
.card-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i,
.card-header h4 i { color: #ff3b30; }

.subtitle {
    font-size: 12px;
    color: #444;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    transition: border-color 0.3s;
}

.search-bar:focus-within {
    border-color: rgba(255,59,48,0.4);
}

.search-bar i { color: #444; font-size: 14px; }

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}

.search-bar input::placeholder { color: #444; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff3b30 transparent;
}

.categories-grid::-webkit-scrollbar { width: 4px; }
.categories-grid::-webkit-scrollbar-thumb { background: #ff3b30; border-radius: 4px; }

.cat-tile {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
    text-align: center;
}

.cat-tile:hover {
    border-color: rgba(255,59,48,0.35);
    background: rgba(255,59,48,0.05);
    transform: translateY(-2px);
}

.cat-tile i {
    font-size: 20px;
    color: #ff3b30;
}

.cat-tile span {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.3px;
}

.item-row-1to1 {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.item-row-1to1:hover {
    border-color: rgba(255,59,48,0.3);
    background: rgba(255,59,48,0.04);
    transform: translateX(3px);
}

.add-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.25);
    color: #ff3b30;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.item-row-1to1:hover .add-icon-box { background: rgba(255,59,48,0.2); }

.item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-details strong {
    font-size: 13px;
    color: #ddd;
    font-weight: 600;
}

.item-details span {
    font-size: 11px;
    color: #555;
}

.tip-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(255,59,48,0.05);
    border: 1px solid rgba(255,59,48,0.15);
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.tip-box i { color: #ff3b30; flex-shrink: 0; }

.your-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.your-items-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.your-items-header h4 i { color: #ff3b30; }

.clear-all-btn {
    background: rgba(255,59,48,0.08);
    border: 1px solid rgba(255,59,48,0.2);
    color: #ff3b30;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-all-btn:hover { background: rgba(255,59,48,0.18); }

.haul-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff3b30 transparent;
}

.haul-list-wrapper::-webkit-scrollbar { width: 4px; }
.haul-list-wrapper::-webkit-scrollbar-thumb { background: #ff3b30; border-radius: 4px; }

.empty-haul {
    text-align: center;
    padding: 40px 20px;
    color: #333;
}

.empty-haul i { font-size: 32px; margin-bottom: 10px; display: block; }
.empty-haul p { font-size: 13px; }

.added-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.added-item-row:hover { border-color: rgba(255,59,48,0.2); }

.item-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    color: #ff3b30;
}

.item-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-main-info strong { font-size: 13px; color: #ddd; font-weight: 600; }
.item-main-info span { font-size: 11px; color: #555; }

.qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
}

.qty-btn:hover { background: rgba(255,59,48,0.15); border-color: rgba(255,59,48,0.3); }
.qty-val { font-size: 13px; font-weight: 700; color: #fff; min-width: 16px; text-align: center; }

.pkg-option-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: rgba(255,59,48,0.05);
    border: 1px solid rgba(255,59,48,0.2);
    border-radius: 12px;
    margin-bottom: 16px;
}

.option-text strong { display: block; font-size: 13px; color: #fff; margin-bottom: 2px; }
.option-text span { font-size: 11px; color: #555; }
.pkg-w { font-size: 14px; font-weight: 800; color: #ff3b30; }

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sum-row:last-child { border-bottom: none; }
.sum-row span:last-child { color: #888; font-weight: 600; }

.total-weight-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

.total-val {
    font-size: 22px;
    font-weight: 800;
    color: #ff3b30;
    text-shadow: 0 0 20px rgba(255,59,48,0.3);
}

.unit-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.unit-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.unit-box strong { font-size: 20px; font-weight: 800; color: #fff; }
.unit-box span { font-size: 11px; color: #555; font-weight: 600; letter-spacing: 0.5px; }

.agents-section { margin-top: 4px; }

.check-price-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.agents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.agent-btn {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #888;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.agent-btn:hover { background: rgba(255,59,48,0.1); border-color: rgba(255,59,48,0.3); color: #fff; }

.agent-btn.oopbuy:hover { background: rgba(255,59,48,0.15); border-color: #ff3b30; color: #ff3b30; }

.back-link-style {
    font-size: 12px;
    font-weight: 700;
    color: #ff3b30 !important;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.back-link-style:hover { opacity: 0.7; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .main-estimator-grid { grid-template-columns: 1fr 1fr; }
    .packaging-card { grid-column: span 2; }
}

@media (max-width: 700px) {
    .main-estimator-grid { grid-template-columns: 1fr; padding: 0 16px 60px; }
    .packaging-card { grid-column: span 1; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .uufinds-header-section { padding: 110px 16px 30px; }
}
/* ============================================
   GLOBAL ANIMATIONS & INTERACTIONS
   ============================================ */

* { -webkit-tap-highlight-color: transparent; }

/* Page load fade-in */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}



/* Ripple effect on buttons */
@keyframes ripple {
    from { transform: scale(0); opacity: 0.4; }
    to   { transform: scale(3); opacity: 0; }
}

.ripple-host { position: relative; overflow: hidden; }

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    animation: ripple 0.55s ease-out forwards;
    pointer-events: none;
}

/* Universal button interactions */
button,
.btn-primary,
.btn-secondary,
.tool-btn,
.login-btn,
.filters button,
.lang-option,
.featured-card-btn,
.clear-all-btn,
.agent-btn,
.ob-save-btn,
.ob-main-btn,
.rp-submit,
.stg-tab,
.qc-submit-btn,
.faq-item,
.cat-tile,
.item-row-1to1,
.toc-item,
.tool-card,
.nav-link {
    transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1),
                box-shadow 0.2s ease,
                background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                opacity 0.2s ease !important;
}

/* Active press feedback */
button:active,
.btn-primary:active,
.btn-secondary:active,
.tool-btn:active,
.filters button:active,
.featured-card-btn:active,
.agent-btn:active,
.cat-tile:active,
.item-row-1to1:active,
.rp-submit:active,
.ob-save-btn:active {
    transform: scale(0.96) !important;
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #ff3b30;
    border-radius: 2px;
    transition: transform 0.25s ease;
}

.nav-link:not(.active):hover::after { transform: translateX(-50%) scaleX(1); }

/* Tool cards */
.tool-card:hover {
    transform: translateY(-6px) !important;
}

.tool-card:active { transform: translateY(-2px) scale(0.98) !important; }

/* Product cards */
.product-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
}

/* Filter buttons */
.filters button:hover:not(.active) {
    transform: translateY(-2px) !important;
}

/* Featured cards */
.featured-card:hover {
    transform: translateY(-6px) !important;
}

/* Icon bounce on tool-card hover */
.tool-card:hover .tool-icon {
    animation: iconBounce 0.4s cubic-bezier(0.2,0.8,0.2,1);
}

@keyframes iconBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.2) rotate(-5deg); }
    70%  { transform: scale(0.95) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Feature card icon bounce */
.feature-card:hover .feature-card-icon {
    animation: iconBounce 0.4s cubic-bezier(0.2,0.8,0.2,1);
}

/* Cat tile icon bounce */
.cat-tile:hover i {
    animation: iconBounce 0.35s cubic-bezier(0.2,0.8,0.2,1);
}

/* Search bar focus lift */
.search-bar,
.search-wrap,
.rp-input,
.qc-search-wrap {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.search-bar:focus-within,
.search-wrap:focus-within,
.rp-input:focus,
.qc-search-wrap:focus-within {
    transform: translateY(-2px);
}

/* Modal open animation */
@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.rp-modal,
.ob-modal-content {
    animation: modalSlideIn 0.3s cubic-bezier(0.2,0.8,0.2,1) both;
}

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.10s; }
.stagger > *:nth-child(3) { transition-delay: 0.15s; }
.stagger > *:nth-child(4) { transition-delay: 0.20s; }
.stagger > *:nth-child(5) { transition-delay: 0.25s; }
.stagger > *:nth-child(6) { transition-delay: 0.30s; }

/* Page transitions — tab switching */
@keyframes tabIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.stg-panel { animation: tabIn 0.25s ease both; }

/* Toast */
@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}



/* QC lightbox image */
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}



/* Scroll progress bar glow pulse */
@keyframes progressGlow {
    0%,100% { box-shadow: 0 0 6px rgba(255,59,48,0.4); }
    50%      { box-shadow: 0 0 14px rgba(255,59,48,0.8); }
}

#scroll-progress { animation: progressGlow 2s ease-in-out infinite; }

/* Badge dot pulse */
@keyframes dotPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: 0.5; }
}

.badge-dot { animation: dotPulse 2s ease-in-out infinite; }

/* Hero CTA button shimmer */
@keyframes btnShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(255,59,48,0.45) !important;
    transform: translateY(-3px) !important;
}

/* Added item row in estimator */
@keyframes addedItemIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.added-item-row { animation: addedItemIn 0.25s ease both; }

/* Cat tile stagger on load */
.cat-tile {
    opacity: 0;
    animation: fadeInUp 0.35s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.categories-grid .cat-tile:nth-child(1) { animation-delay: 0.02s; }
.categories-grid .cat-tile:nth-child(2) { animation-delay: 0.04s; }
.categories-grid .cat-tile:nth-child(3) { animation-delay: 0.06s; }
.categories-grid .cat-tile:nth-child(4) { animation-delay: 0.08s; }
.categories-grid .cat-tile:nth-child(5) { animation-delay: 0.10s; }
.categories-grid .cat-tile:nth-child(6) { animation-delay: 0.12s; }
.categories-grid .cat-tile:nth-child(7) { animation-delay: 0.14s; }
.categories-grid .cat-tile:nth-child(8) { animation-delay: 0.16s; }

/* QC submit button pulse when input has value */
.qc-submit-btn {
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s !important;
}

.qc-submit-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(255,59,48,0.4) !important;
}

/* Lang switch */
.lang-option {
    position: relative;
    overflow: hidden;
}

/* Mobile tap feedback */
@media (max-width: 768px) {
    button:active,
    .tool-card:active,
    .product-card:active,
    .featured-card:active,
    .faq-item:active {
        transform: scale(0.97) !important;
        opacity: 0.85;
    }
}

/* ============================================
   WEIGHT ESTIMATOR — LIGHT MODE
   ============================================ */

[data-theme="light"] .selection-card,
[data-theme="light"] .your-items-container,
[data-theme="light"] .packaging-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .uufinds-title { color: #111; }
[data-theme="light"] .uufinds-subtitle { color: #666; }

[data-theme="light"] .card-header h3,
[data-theme="light"] .card-header h4 { color: #111; }

[data-theme="light"] .search-bar {
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .search-bar input { color: #111; }
[data-theme="light"] .search-bar input::placeholder { color: #aaa; }
[data-theme="light"] .search-bar i { color: #bbb; }

[data-theme="light"] .cat-tile {
    background: #f7f7f7;
    border-color: rgba(0,0,0,0.08);
    color: #111;
}

[data-theme="light"] .cat-tile span { color: #555; }
[data-theme="light"] .cat-tile:hover { background: rgba(255,59,48,0.05); border-color: rgba(255,59,48,0.3); }

[data-theme="light"] .item-row-1to1 {
    background: #f7f7f7;
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .item-row-1to1:hover { background: rgba(255,59,48,0.04); border-color: rgba(255,59,48,0.25); }
[data-theme="light"] .item-details strong { color: #222; }
[data-theme="light"] .item-details span { color: #888; }

[data-theme="light"] .tip-box {
    background: rgba(255,59,48,0.04);
    border-color: rgba(255,59,48,0.12);
    color: #777;
}

[data-theme="light"] .your-items-header h4 { color: #111; }

[data-theme="light"] .added-item-row {
    background: #f7f7f7;
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .item-main-info strong { color: #222; }
[data-theme="light"] .item-main-info span { color: #888; }

[data-theme="light"] .qty-btn {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
    color: #111;
}

[data-theme="light"] .qty-val { color: #111; }

[data-theme="light"] .empty-haul { color: #bbb; }

[data-theme="light"] .pkg-option-box {
    background: rgba(255,59,48,0.04);
    border-color: rgba(255,59,48,0.15);
}

[data-theme="light"] .option-text strong { color: #111; }
[data-theme="light"] .option-text span { color: #888; }

[data-theme="light"] .sum-row { color: #777; border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .sum-row span:last-child { color: #444; }

[data-theme="light"] .total-weight-box {
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.08);
    color: #555;
}

[data-theme="light"] .unit-box {
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .unit-box strong { color: #111; }
[data-theme="light"] .unit-box span { color: #888; }

[data-theme="light"] .check-price-label { color: #aaa; }

[data-theme="light"] .agent-btn {
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.1);
    color: #555;
}

[data-theme="light"] .agent-btn:hover { background: rgba(255,59,48,0.08); border-color: rgba(255,59,48,0.3); color: #111; }

[data-theme="light"] .subtitle { color: #aaa; }

[data-theme="light"] .back-link-style { color: #ff3b30 !important; }

/* ============================================
   GUIDE — LIGHT MODE
   ============================================ */

[data-theme="light"] .guide-hero h1 { color: #111; }
[data-theme="light"] .guide-hero h1 span { color: #ff3b30; }
[data-theme="light"] .guide-hero-eyebrow { color: #ff3b30; }
[data-theme="light"] .guide-hero-sub { color: #777; }

[data-theme="light"] .guide-toc-label { color: #bbb; }
[data-theme="light"] .toc-text { color: #888; }
[data-theme="light"] .toc-num { color: #ccc; }
[data-theme="light"] .toc-item { border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .toc-item:hover .toc-text,
[data-theme="light"] .toc-item.active .toc-text { color: #111; }

[data-theme="light"] .section-number { color: #ff3b30; }
[data-theme="light"] .section-title { color: #111; }
[data-theme="light"] .section-body { color: #666; }
[data-theme="light"] .section-body strong { color: #333; }

[data-theme="light"] .guide-section { border-color: rgba(0,0,0,0.06); }

[data-theme="light"] .info-box.warn { background: rgba(255,170,0,0.06); border-color: rgba(255,170,0,0.2); color: #886; }
[data-theme="light"] .info-box.danger { background: rgba(255,59,48,0.06); border-color: rgba(255,59,48,0.2); color: #a66; }
[data-theme="light"] .info-box.tip { background: rgba(76,175,80,0.06); border-color: rgba(76,175,80,0.2); color: #686; }
[data-theme="light"] .info-box.info { background: rgba(33,150,243,0.06); border-color: rgba(33,150,243,0.2); color: #668; }

[data-theme="light"] .step-bullet {
    background: rgba(255,59,48,0.08);
    border-color: rgba(255,59,48,0.25);
    color: #ff3b30;
}

[data-theme="light"] .steps-list li { color: #666; }

[data-theme="light"] .tag {
    background: rgba(255,59,48,0.08);
    border-color: rgba(255,59,48,0.2);
    color: #ff6b60;
}

[data-theme="light"] .guide-cta h2 { color: #111; }
[data-theme="light"] .guide-cta p { color: #888; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
.search-layout {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    align-items: start;
}

.search-users {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.search-users h1.glow {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255,59,48,0.3);
}

.search-users .subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.search-users input {
    width: 100%;
    max-width: 480px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    margin-top: 24px;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-users input::placeholder { color: #444; }

.search-users input:focus {
    border-color: rgba(255,59,48,0.4);
    box-shadow: 0 0 16px rgba(255,59,48,0.1);
}

#searchResults {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-result-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
    cursor: pointer;
}

.user-result-card:hover {
    border-color: rgba(255,59,48,0.3);
    background: rgba(255,59,48,0.04);
    transform: translateY(-2px);
}

.user-result-card img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid rgba(255,59,48,0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.user-result-info { flex: 1; text-align: left; }
.user-result-info strong { display: block; font-size: 14px; color: #fff; font-weight: 700; }
.user-result-info span { font-size: 12px; color: #555; }

.user-result-arrow {
    color: #333;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}

.user-result-card:hover .user-result-arrow { color: #ff3b30; transform: translateX(3px); }

.leaderboard-side {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.leaderboard-side h3 {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    transition: opacity 0.2s;
}

.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { opacity: 0.75; }

.lb-rank {
    font-size: 11px;
    font-weight: 800;
    color: #333;
    min-width: 18px;
}

.lb-rank.gold { color: #f5a623; }
.lb-rank.silver { color: #aaa; }
.lb-rank.bronze { color: #cd7f32; }

.leaderboard-item img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.lb-info { flex: 1; }
.lb-info strong { display: block; font-size: 12px; color: #ccc; font-weight: 600; }
.lb-info span { font-size: 11px; color: #444; }

.lb-count {
    font-size: 12px;
    font-weight: 800;
    color: #ff3b30;
}

.wishlist-page .products {
    padding: 120px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.wishlist-page .products h1 {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.wishlist-empty {
    text-align: center;
    padding: 80px 20px;
    color: #333;
}

.wishlist-empty i { font-size: 48px; margin-bottom: 16px; display: block; color: #222; }
.wishlist-empty p { font-size: 16px; margin-bottom: 20px; }
.wishlist-empty a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff3b30;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}
.wishlist-empty a:hover { background: #d42e25; transform: translateY(-2px); }

.site-footer {
    text-align: center;
    padding: 30px;
    color: #333;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

[data-theme="light"] .search-users h1.glow { color: #111; text-shadow: none; }
[data-theme="light"] .search-users .subtitle { color: #888; }
[data-theme="light"] .search-users input { background: #fff; border-color: rgba(0,0,0,0.1); color: #111; }
[data-theme="light"] .search-users input::placeholder { color: #bbb; }
[data-theme="light"] .user-result-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .user-result-card:hover { background: rgba(255,59,48,0.03); border-color: rgba(255,59,48,0.25); }
[data-theme="light"] .user-result-info strong { color: #111; }
[data-theme="light"] .user-result-info span { color: #888; }
[data-theme="light"] .leaderboard-side { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .leaderboard-side h3 { color: #111; }
[data-theme="light"] .leaderboard-item { border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .lb-rank { color: #ccc; }
[data-theme="light"] .lb-info strong { color: #444; }
[data-theme="light"] .lb-info span { color: #aaa; }
[data-theme="light"] .wishlist-page .products h1 { color: #111; }
[data-theme="light"] .site-footer { color: #bbb; border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .wishlist-empty i { color: #ddd; }
[data-theme="light"] .wishlist-empty p { color: #888; }

@media (max-width: 900px) {
    .search-layout {
        grid-template-columns: 1fr;
        padding: 100px 16px 60px;
    }

    .leaderboard-side {
        position: static;
        order: 1;
    }

    .search-users { order: 0; }
    .leaderboard-side:last-child { order: 2; }
}
.tracking-page { padding: 120px 5% 80px; max-width: 900px; margin: 0 auto; }

.tracking-hero { text-align: center; margin-bottom: 40px; }
.tracking-hero h1 { font-size: clamp(28px,4vw,48px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.tracking-hero h1 span { color: #ff3b30; }
.tracking-hero p { color: #555; font-size: 15px; }

.tracking-input-wrap {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 10px 10px 10px 20px;
    margin-bottom: 32px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.tracking-input-wrap:focus-within {
    border-color: rgba(255,59,48,0.4);
    box-shadow: 0 0 20px rgba(255,59,48,0.08);
}
.tracking-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    letter-spacing: 0.5px;
}
.tracking-input-wrap input::placeholder { color: #444; }
.tracking-input-wrap button {
    background: #ff3b30;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.tracking-input-wrap button:hover { background: #d42e25; transform: scale(1.03); }

.recent-numbers { margin-bottom: 32px; }
.recent-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #333; text-transform: uppercase; margin-bottom: 10px; }
.recent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-chip {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.recent-chip:hover { border-color: rgba(255,59,48,0.3); color: #fff; background: rgba(255,59,48,0.05); }
.recent-chip i { color: #ff3b30; font-size: 10px; }
.recent-chip .chip-del { color: #333; font-size: 10px; margin-left: 4px; transition: color 0.2s; }
.recent-chip:hover .chip-del { color: #ff3b30; }

.tracking-result { display: none; }
.tracking-result.visible { display: block; animation: fadeSlideUp 0.4s ease both; }

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
}
.result-number { font-size: 13px; color: #444; font-weight: 600; }
.result-number strong { color: #fff; font-size: 15px; display: block; }
.result-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.25);
    color: #ff8a84;
}
.result-status.delivered { background: rgba(76,175,80,0.1); border-color: rgba(76,175,80,0.25); color: #81c784; }
.result-status i { font-size: 12px; }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #ff3b30, rgba(255,59,48,0.1));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-10px);
    animation: timelineIn 0.4s ease forwards;
}

@keyframes timelineIn {
    to { opacity: 1; transform: translateX(0); }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 8px rgba(255,59,48,0.5);
    border: 2px solid #0a0a0a;
}
.timeline-item:first-child::before {
    width: 14px;
    height: 14px;
    left: -28px;
    top: 4px;
    box-shadow: 0 0 14px rgba(255,59,48,0.7);
}
.timeline-item.old::before {
    background: #2a2a2a;
    box-shadow: none;
}

.timeline-time { font-size: 11px; color: #444; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.timeline-time i { color: #ff3b30; font-size: 10px; }
.timeline-desc { font-size: 14px; color: #ccc; font-weight: 600; line-height: 1.5; }
.timeline-loc { font-size: 12px; color: #555; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.timeline-loc i { color: #ff3b30; font-size: 10px; }

.tracking-loader { display: none; text-align: center; padding: 60px 20px; color: #444; font-size: 14px; }
.tracking-loader i { font-size: 28px; color: #ff3b30; display: block; margin-bottom: 12px; }
.tracking-loader.visible { display: block; }

.tracking-error { display: none; text-align: center; padding: 50px 20px; color: #555; }
.tracking-error i { font-size: 36px; color: #333; display: block; margin-bottom: 12px; }
.tracking-error p { margin-bottom: 8px; }
.tracking-error.visible { display: block; }

.no-events { text-align: center; padding: 40px 20px; color: #444; font-size: 14px; }
.no-events i { font-size: 32px; margin-bottom: 12px; display: block; color: #333; }

[data-theme="light"] .tracking-hero h1 { color: #111; }
[data-theme="light"] .tracking-hero p { color: #888; }
[data-theme="light"] .tracking-input-wrap { background: #fff; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .tracking-input-wrap input { color: #111; }
[data-theme="light"] .tracking-input-wrap input::placeholder { color: #bbb; }
[data-theme="light"] .recent-chip { background: #f5f5f5; border-color: rgba(0,0,0,0.08); color: #888; }
[data-theme="light"] .recent-chip:hover { background: rgba(255,59,48,0.05); border-color: rgba(255,59,48,0.25); color: #111; }
[data-theme="light"] .result-header { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .result-number { color: #888; }
[data-theme="light"] .result-number strong { color: #111; }
[data-theme="light"] .timeline-desc { color: #333; }
[data-theme="light"] .timeline-time { color: #aaa; }
[data-theme="light"] .timeline-loc { color: #aaa; }
[data-theme="light"] .timeline-item::before { border-color: #f5f5f5; }
[data-theme="light"] .timeline-item.old::before { background: #ddd; box-shadow: none; }
[data-theme="light"] .no-events i { color: #ddd; }
[data-theme="light"] .no-events { color: #aaa; }
[data-theme="light"] .recent-label { color: #ccc; }

@media (max-width: 600px) {
    .tracking-page { padding: 100px 16px 60px; }
    .tracking-input-wrap { flex-wrap: wrap; }
    .tracking-input-wrap input { min-width: 0; }
    .tracking-input-wrap button { width: 100%; justify-content: center; }
}

/* ============================================
   MOBILE PAGE FIXES — PRODUCTS / WISHLIST / USERS
   ============================================ */

html { max-width: 100%; overflow-x: hidden; }
.bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -9;
}

/* Wishlist cards use a separate, lightweight card markup. */
.wishlist-page #wishlistGrid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    padding: 0;
}

.wishlist-page .fade-up {
    opacity: 1;
    transform: none;
}

.wishlist-page .card {
    min-width: 0;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    opacity: 1;
    transform: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.wishlist-page .card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 59, 48, 0.35);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.wishlist-page .img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}

.wishlist-page .img-wrap::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    pointer-events: none;
}

.wishlist-page .img-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.wishlist-page .card:hover .img-wrap > img { transform: scale(1.04); }

.wishlist-page .wishlist-heart {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.wishlist-page .wishlist-heart svg {
    width: 20px;
    height: 20px;
    fill: #ff3b30;
    filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.45));
}

.wishlist-page .view-btn {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.92);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.28);
}

.wishlist-page .info { padding: 16px; }
.wishlist-page .info h3 {
    margin: 0 0 10px;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wishlist-page .info .tag {
    display: inline-flex;
    padding: 6px 9px;
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 999px;
    background: rgba(255, 59, 48, 0.08);
    color: #ff8a84;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.wishlist-page .no-results,
.search-users-page .no-results {
    width: 100%;
    padding: 48px 18px;
    color: #777;
    text-align: center;
}
.wishlist-page #wishlistGrid > .no-results { grid-column: 1 / -1; }

/* Search Users markup generated by search_users.js. */
.search-users-page .search-layout > *,
.search-users-page .search-users,
.search-users-page #searchResults { min-width: 0; }

.search-users-page .user-result {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-users-page .user-result:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 59, 48, 0.35);
    background: rgba(255, 59, 48, 0.05);
}

.search-users-page .user-result img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid rgba(255, 59, 48, 0.35);
    border-radius: 13px;
}

.search-users-page .user-result > div { min-width: 0; flex: 1; text-align: left; }
.search-users-page .user-result strong,
.search-users-page .user-result span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-users-page .user-result strong { color: #fff; font-size: 14px; }
.search-users-page .user-result div span { margin-top: 3px; color: #666; font-size: 12px; }
.search-users-page .user-result .arrow { flex: 0 0 auto; color: #ff3b30; font-size: 24px; }

.search-users-page .leaderboard-mini {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px 36px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
}
.search-users-page .leaderboard-mini:last-child { border-bottom: 0; }
.search-users-page .leaderboard-mini .rank { color: #ff3b30; font-size: 11px; font-weight: 800; }
.search-users-page .leaderboard-mini img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.search-users-page .leaderboard-mini > div { min-width: 0; }
.search-users-page .leaderboard-mini strong,
.search-users-page .leaderboard-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-users-page .leaderboard-mini strong { color: #ddd; font-size: 12px; }
.search-users-page .leaderboard-mini small { margin-top: 3px; color: #666; font-size: 10px; }

[data-theme="light"] .wishlist-page .card,
[data-theme="light"] .search-users-page .user-result { background: #fff; border-color: rgba(0, 0, 0, 0.09); }
[data-theme="light"] .wishlist-page .info h3,
[data-theme="light"] .search-users-page .user-result strong,
[data-theme="light"] .search-users-page .leaderboard-mini strong { color: #111; }
[data-theme="light"] .search-users-page .leaderboard-mini { border-color: rgba(0, 0, 0, 0.07); }

@media (max-width: 768px) {
    .products-page .products {
        width: 100%;
        box-sizing: border-box;
        margin: 100px auto 40px;
        padding: 0 14px;
    }

    .products-page .products h1 {
        margin-bottom: 20px;
        font-size: 30px;
        letter-spacing: -1px;
    }

    .products-page .filters {
        margin: 0 -14px 24px;
        padding: 2px 14px 8px;
        display: flex;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .products-page .filters::-webkit-scrollbar { display: none; }
    .products-page .filters button {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 10px 16px;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .products-page .search-wrap {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin: 0 0 18px;
    }
    .products-page #searchInput {
        box-sizing: border-box;
        padding: 15px 16px 15px 44px;
        border-radius: 15px;
        font-size: 16px;
    }

    .products-page .shop-advanced-filters {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin: 0 0 22px;
        padding: 18px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        overflow: hidden;
    }
    .products-page .price-filter-box,
    .products-page .sort-filter-box,
    .products-page .range-slider-container { width: 100%; min-width: 0; }
    .products-page .price-display { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .products-page .price-tag { min-width: 0; padding: 9px 10px; white-space: nowrap; text-align: center; }
    .products-page .modern-select { width: 100%; box-sizing: border-box; min-height: 46px; font-size: 16px; }

    .products-page #productGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0;
    }
    .products-page .product-card { min-width: 0; overflow: hidden !important; border-radius: 16px; }
    .products-page .product-info { min-width: 0; padding: 12px; }
    .products-page .product-title { font-size: 13px; }
    .products-page .card-controls { top: 8px; right: 8px; opacity: 1; transform: none; }
    .products-page .wishlist-btn,
    .products-page .deadlink-btn { width: 34px; height: 34px; }

    .products-page .modal-content { width: calc(100% - 24px); max-height: calc(100dvh - 32px); box-sizing: border-box; }
    .products-page .modal-top { grid-template-columns: 1fr; }
    .products-page .modal-details { padding: 22px 18px; }

    .products-page #requestProductBtn {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 50px;
        height: 50px;
        font-size: 19px;
    }

    .wishlist-page .products { padding: 100px 14px 50px; }
    .wishlist-page .products h1 { margin-bottom: 22px; text-align: left; font-size: 28px; }
    .wishlist-page #wishlistGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wishlist-page .card { border-radius: 16px; }
    .wishlist-page .wishlist-heart { top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 11px; }
    .wishlist-page .view-btn { left: 8px; right: 8px; bottom: 8px; min-height: 38px; padding: 0 8px; font-size: 10px; }
    .wishlist-page .info { padding: 12px; }
    .wishlist-page .info h3 { font-size: 13px; }

    .search-users-page .search-layout { gap: 14px; padding: 100px 14px 50px; }
    .search-users-page .search-users {
        width: 100%;
        box-sizing: border-box;
        padding: 22px 14px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.025);
    }
    .search-users-page .search-users h1.glow { margin: 0 0 8px; font-size: 30px; }
    .search-users-page .search-users input { max-width: none; box-sizing: border-box; margin: 20px 0 14px; font-size: 16px; }
    .search-users-page #searchResults { max-width: none; }
    .search-users-page .leaderboard-side { width: 100%; box-sizing: border-box; padding: 17px; border-radius: 18px; }
    [data-theme="light"] .search-users-page .search-users { background: rgba(255,255,255,0.78); border-color: rgba(0,0,0,0.08); }
}

@media (max-width: 360px) {
    .products-page #productGrid,
    .wishlist-page #wishlistGrid { grid-template-columns: 1fr; }
    .jafoorrr-header .mobile-nav a,
    .jafoorrr-header .m-currency-btn { font-size: 12px; padding-inline: 9px; }
}

/* ============================================
   POLISHED MOTION LAYER
   ============================================ */

@keyframes sitePageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes siteHeaderIn {
    from { opacity: 0; transform: translate(-50%, -14px) scale(0.98); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

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

@keyframes siteHeroIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

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

@keyframes siteCardIn {
    from { opacity: 0; transform: translateY(15px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes siteDropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes siteButtonPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(255, 59, 48, 0.35); }
    50% { box-shadow: 0 7px 30px rgba(255, 59, 48, 0.58); }
}

body { animation: sitePageIn 0.55s ease-out both; }

.jafoorrr-header {
    animation: siteHeaderIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.jafoorrr-header .nav-link,
.jafoorrr-header .tool-btn,
.jafoorrr-header .login-btn,
.jafoorrr-header .mobile-trigger {
    animation: siteControlIn 0.45s ease-out both;
}
.jafoorrr-header .nav-link:nth-child(2) { animation-delay: 0.06s; }
.jafoorrr-header .tool-btn:nth-child(2) { animation-delay: 0.04s; }
.jafoorrr-header .tool-btn:nth-child(3) { animation-delay: 0.08s; }
.jafoorrr-header .tool-btn:nth-child(4) { animation-delay: 0.12s; }
.jafoorrr-header .tool-btn:nth-child(5) { animation-delay: 0.16s; }
.jafoorrr-header .tool-btn:nth-child(6) { animation-delay: 0.20s; }
.jafoorrr-header .tool-btn:nth-child(7) { animation-delay: 0.24s; }

.jafoorrr-header .mobile-nav.active { animation: siteDropdownIn 0.22s ease-out both; }
.jafoorrr-header .mobile-nav a:nth-child(2) { animation-delay: 0.02s; }
.jafoorrr-header .mobile-nav a:nth-child(3) { animation-delay: 0.04s; }
.jafoorrr-header .mobile-nav a:nth-child(4) { animation-delay: 0.06s; }
.jafoorrr-header .mobile-nav a:nth-child(5) { animation-delay: 0.08s; }
.jafoorrr-header .mobile-nav a:nth-child(6) { animation-delay: 0.10s; }

/* Profil i jego akcje otwierają się wyłącznie po kliknięciu avatara. */
.jafoorrr-header .user-dropdown {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px) scale(0.97);
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.jafoorrr-header .user-profile.is-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    animation: siteDropdownIn 0.22s ease-out both;
}

/* Wspólne wejścia dla pozostałych podstron serwisu. */
.main-container .hero-section,
.main-container .search-section,
.main-container .tools-grid,
.main-container .featured-section,
.main-container .features-section,
.converter-wrap,
.qc-section,
.tracking-page .tracking-hero,
.trusted-sellers,
.guide-hero,
.uufinds-header-section,
.main-estimator-grid {
    animation: siteRiseIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.main-container .search-section { animation-delay: 0.08s; }
.main-container .tools-grid { animation-delay: 0.14s; }
.main-container .featured-section { animation-delay: 0.2s; }
.main-container .features-section { animation-delay: 0.26s; }
.converter-wrap,
.qc-section,
.tracking-page .tracking-hero,
.guide-hero { animation-delay: 0.08s; }
.trusted-sellers,
.uufinds-header-section,
.main-estimator-grid { animation-delay: 0.14s; }

.main-container .tools-grid > *,
.main-container .featured-grid > *,
.main-container .features-cards > *,
.trusted-sellers .seller-card,
.guide-sections .guide-section,
.qc-content-area > *,
.tracking-result,
.selection-card,
.packaging-card,
.your-items-container {
    animation: siteCardIn 0.5s ease-out both;
}
.main-container .tools-grid > *:nth-child(2),
.main-container .featured-grid > *:nth-child(2),
.main-container .features-cards > *:nth-child(2),
.trusted-sellers .seller-card:nth-child(2),
.guide-sections .guide-section:nth-child(2),
.selection-card { animation-delay: 0.06s; }
.main-container .tools-grid > *:nth-child(3),
.main-container .featured-grid > *:nth-child(3),
.main-container .features-cards > *:nth-child(3),
.trusted-sellers .seller-card:nth-child(3),
.guide-sections .guide-section:nth-child(3),
.packaging-card { animation-delay: 0.12s; }
.main-container .tools-grid > *:nth-child(4),
.main-container .featured-grid > *:nth-child(4),
.main-container .features-cards > *:nth-child(4),
.trusted-sellers .seller-card:nth-child(4),
.guide-sections .guide-section:nth-child(4),
.your-items-container { animation-delay: 0.18s; }

.products-page .products h1,
.wishlist-page .products h1,
.search-users-page .search-users h1 {
    animation: siteHeroIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}

.products-page .filters,
.products-page .search-wrap,
.products-page .shop-advanced-filters {
    animation: siteRiseIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.products-page .filters { animation-delay: 0.18s; }
.products-page .search-wrap { animation-delay: 0.26s; }
.products-page .shop-advanced-filters { animation-delay: 0.34s; }

.wishlist-page .card {
    animation: siteCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.wishlist-page .card:nth-child(2) { animation-delay: 0.05s; }
.wishlist-page .card:nth-child(3) { animation-delay: 0.10s; }
.wishlist-page .card:nth-child(4) { animation-delay: 0.15s; }
.wishlist-page .card:nth-child(5) { animation-delay: 0.20s; }

.search-users-page .search-users,
.search-users-page .leaderboard-side {
    animation: siteRiseIn 0.6s ease-out both;
}
.search-users-page .leaderboard-side:first-child { animation-delay: 0.18s; }
.search-users-page .search-users { animation-delay: 0.08s; }
.search-users-page .leaderboard-side:last-child { animation-delay: 0.26s; }
.search-users-page .user-result,
.search-users-page .leaderboard-mini {
    animation: siteCardIn 0.4s ease-out both;
}
.search-users-page .user-result:nth-child(2),
.search-users-page .leaderboard-mini:nth-child(2) { animation-delay: 0.04s; }
.search-users-page .user-result:nth-child(3),
.search-users-page .leaderboard-mini:nth-child(3) { animation-delay: 0.08s; }

.products-page #requestProductBtn { animation: siteButtonPulse 3.6s ease-in-out infinite; }
.products-page #requestProductBtn:hover { animation-play-state: paused; }

/* Akcje Wishlist/Dead Link są dostępne w szczegółach po kliknięciu produktu. */
.products-page .product-card .card-controls { display: none !important; }

.filters button:hover,
.wishlist-page .wishlist-heart:hover,
.search-users-page .user-result:hover,
.search-users-page .leaderboard-mini:hover {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    body,
    .jafoorrr-header,
    .jafoorrr-header .nav-link,
    .jafoorrr-header .tool-btn,
    .jafoorrr-header .login-btn,
    .jafoorrr-header .mobile-trigger,
    .jafoorrr-header .mobile-nav.active,
    .products-page .products h1,
    .products-page .filters,
    .products-page .search-wrap,
    .products-page .shop-advanced-filters,
    .wishlist-page .card,
    .search-users-page .search-users,
    .search-users-page .leaderboard-side,
    .search-users-page .user-result,
    .search-users-page .leaderboard-mini,
    .products-page #requestProductBtn,
    .main-container .hero-section,
    .main-container .search-section,
    .main-container .tools-grid,
    .main-container .featured-section,
    .main-container .features-section,
    .main-container .tools-grid > *,
    .main-container .featured-grid > *,
    .main-container .features-cards > *,
    .converter-wrap,
    .qc-section,
    .qc-content-area > *,
    .tracking-page .tracking-hero,
    .tracking-result,
    .trusted-sellers,
    .trusted-sellers .seller-card,
    .guide-hero,
    .guide-sections .guide-section,
    .uufinds-header-section,
    .main-estimator-grid,
    .selection-card,
    .packaging-card,
    .your-items-container {
        animation: none !important;
    }
    .jafoorrr-header .user-dropdown,
    .jafoorrr-header .user-profile.is-open .user-dropdown {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* QC modal thumbnails are buttons; remove the browser's white button frame. */
#productModal .modal-qc-mini-grid .qc-mini-item {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    outline: 0 !important;
    box-shadow: none !important;
    cursor: zoom-in;
}

#productModal .modal-qc-mini-grid .qc-mini-item img {
    display: block !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* ============================================
   MOTION SYSTEM V5 — shared across every page
   ============================================ */

@keyframes motionPageReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes motionHeaderDrop {
    0% { opacity: 0; transform: translate(-50%, -22px) scale(0.965); }
    70% { opacity: 1; transform: translate(-50%, 3px) scale(1.005); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes motionOverlayReveal {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}

@keyframes motionModalReveal {
    0% { opacity: 0; transform: translateY(28px) scale(0.93); filter: blur(6px); }
    65% { opacity: 1; transform: translateY(-3px) scale(1.008); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes motionModalRevealLite {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes motionCardSheen {
    0% { transform: translateX(-150%) skewX(-18deg); opacity: 0; }
    35% { opacity: 0.16; }
    100% { transform: translateX(250%) skewX(-18deg); opacity: 0; }
}

body {
    animation: motionPageReveal 0.42s ease-out both;
}

.jafoorrr-header {
    animation: motionHeaderDrop 0.82s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.site-motion .site-motion-item {
    animation: none !important;
    opacity: 0;
    filter: blur(7px);
    transform: translate3d(0, 30px, 0) scale(0.982);
    transition:
        opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.68s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.62s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform, filter;
}

html.site-motion .site-motion-item.motion-from-left {
    transform: translate3d(-34px, 12px, 0) scale(0.985);
}

html.site-motion .site-motion-item.motion-from-right {
    transform: translate3d(34px, 12px, 0) scale(0.985);
}

html.site-motion .site-motion-item.is-motion-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

html.site-motion .site-motion-item.motion-settled {
    transition-delay: 0ms;
    will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
    html.site-motion .site-motion-item.motion-interactive.is-motion-visible:hover {
        transform: translate3d(0, -6px, 0) scale(1.012);
    }

    .tool-btn:hover i,
    .nav-link:hover i,
    .modal-action-button:hover i,
    .modal-action-btn:hover i {
        transform: translateY(-1px) scale(1.12);
    }

    .product-card::after,
    .tool-card::after,
    .seller-card::after,
    .wishlist-page .card::after {
        content: "";
        position: absolute;
        inset: -35% auto -35% -28%;
        width: 22%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
        pointer-events: none;
        opacity: 0;
    }

    .product-card:hover::after,
    .tool-card:hover::after,
    .seller-card:hover::after,
    .wishlist-page .card:hover::after {
        animation: motionCardSheen 0.85s ease-out;
    }
}

.tool-btn i,
.nav-link i,
.modal-action-button i,
.modal-action-btn i {
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#productModal[style*="display: flex"],
.rp-overlay.open,
.ob-modal-overlay[style*="display: flex"] {
    animation: motionOverlayReveal 0.25s ease-out both;
}

#productModal[style*="display: flex"] .modal-content,
.rp-overlay.open .rp-modal,
.ob-modal-overlay[style*="display: flex"] .ob-modal-content {
    animation: motionModalReveal 0.46s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.products-page .product-card {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.products-page .product-card.visible,
.products-page .product-card.show {
    filter: blur(0);
}

@media (hover: none), (pointer: coarse) {
    .products-page .product-card:hover {
        transform: translateY(0) scale(1) !important;
    }

    .products-page .product-card:active,
    .wishlist-page .card:active,
    .search-users-page .user-result:active,
    .tool-card:active {
        transform: scale(0.975) !important;
        filter: brightness(1.08);
    }
}

/* Products can contain hundreds of cards. Keep touch devices on the cheap
   compositor path while retaining the visible motion and feedback. */
@media (max-width: 768px), (pointer: coarse) {
    html.site-motion .products-page .site-motion-item {
        filter: none;
        transition-duration: 0.4s;
    }

    .products-page > .blob-c,
    .products-page > .bg-blobs {
        display: none !important;
    }

    .products-page .dynamic-background .blob,
    .products-page .neon-line,
    .products-page .star {
        animation: none !important;
    }

    .products-page .dynamic-background .blob {
        filter: blur(80px);
    }

    .products-page #productModal {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.94) !important;
    }

    .products-page #productModal[style*="display: flex"] .modal-content {
        animation: motionModalRevealLite 0.24s ease-out both !important;
        filter: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .jafoorrr-header,
    #productModal,
    #productModal .modal-content,
    .rp-overlay,
    .rp-modal,
    .ob-modal-overlay,
    .ob-modal-content {
        animation: none !important;
    }

    html.site-motion .site-motion-item,
    html.site-motion .site-motion-item.is-motion-visible {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Products contains 3000+ records: this page intentionally has zero motion.
   Rendering and opening details always take priority over decoration. */
body.products-page,
body.products-page *,
body.products-page *::before,
body.products-page *::after {
    animation: none !important;
    transition: none !important;
}

body.products-page .product-card,
body.products-page .product-card.show,
body.products-page .product-card.visible,
body.products-page .product-card:hover,
body.products-page .product-card:active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
}

body.products-page .product-card:hover .img-container img,
body.products-page .product-card:active .img-container img {
    transform: none !important;
}

html {
    overflow-y: auto;
}

body.products-page {
    height: auto !important;
    min-height: 100%;
    overflow-y: visible !important;
}

html.product-modal-open,
html.product-modal-open body.products-page,
body.products-page.product-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.products-page {
    width: 100%;
    overflow-x: clip !important;
}

.products-page #productModal {
    overflow: hidden !important;
    box-sizing: border-box;
    overscroll-behavior: none;
}

.products-page #productModal .modal-content {
    margin: 0 auto !important;
    max-height: min(90dvh, 860px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

@media (max-width: 768px) {
    .products-page #productModal {
        padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
    }

    .products-page #productModal .modal-content {
        width: 100% !important;
        max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom))) !important;
        border-radius: 20px !important;
    }
}

.products-page .product-load-more {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #8f8f8f;
    font-size: 13px;
    font-weight: 700;
}

.products-page .product-load-more[hidden] {
    display: none !important;
}

/* Full-screen QC gallery. This overlay is isolated from the legacy lightbox. */
#jp-qc-gallery {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    padding: 28px;
    background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(10px);
}

.jp-qc-gallery-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    max-height: calc(100dvh - 56px);
    border-radius: 16px;
    overflow: hidden;
    background: #090909;
    box-shadow: 0 24px 72px rgba(0,0,0,.55);
}

#jpQcGalleryImage {
    display: block;
    max-width: min(calc(100vw - 56px), 1380px);
    max-height: calc(100dvh - 56px);
    border: 0 !important;
    border-radius: 16px;
    object-fit: contain;
    transition: opacity .22s ease, transform .22s ease;
}

.qc-lightbox-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 56px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(8, 8, 10, .78);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 10px 28px rgba(0,0,0,.32);
    backdrop-filter: blur(10px);
    cursor: pointer !important;
    touch-action: manipulation;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease, transform .16s ease;
}

.qc-lightbox-arrow[hidden],
.qc-lightbox-counter[hidden] {
    display: none !important;
}

.qc-lightbox-prev { left: 16px; }
.qc-lightbox-next { right: 16px; }

.qc-lightbox-arrow:hover:not(:disabled) {
    border-color: rgba(255, 59, 48, .72);
    background: rgba(255, 59, 48, .88);
    transform: translateY(-50%) scale(1.04);
}

.qc-lightbox-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.qc-lightbox-arrow:disabled {
    opacity: .42;
    color: rgba(255,255,255,.62);
    cursor: not-allowed !important;
}

.qc-lightbox-counter {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 14px;
    min-width: 62px;
    padding: 8px 12px;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(8,8,10,.78);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    backdrop-filter: blur(10px);
}

#jp-qc-gallery .close-btn-lightbox {
    position: fixed;
    z-index: 100003;
    top: max(20px, env(safe-area-inset-top));
    right: max(22px, env(safe-area-inset-right));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    background: rgba(14,14,16,.76);
    color: #fff;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

#jp-qc-gallery .close-btn-lightbox:hover,
#jp-qc-gallery .close-btn-lightbox:focus-visible {
    border-color: rgba(255,59,48,.78);
    background: rgba(255,59,48,.88);
}

#jp-qc-gallery .close-btn-lightbox:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    #jp-qc-gallery { padding: 12px; }

    .jp-qc-gallery-stage {
        max-height: calc(100dvh - 24px);
        border-radius: 14px;
    }

    .qc-lightbox-arrow {
        top: auto;
        bottom: 12px;
        width: 44px;
        height: 44px;
        transform: none;
        border-radius: 12px;
    }

    .qc-lightbox-arrow:hover:not(:disabled) { transform: scale(1.03); }
    .qc-lightbox-prev { left: 12px; }
    .qc-lightbox-next { right: 12px; }
    .qc-lightbox-counter { bottom: 17px; }
    #jpQcGalleryImage { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
}

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

body.products-page .product-load-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 59, 48, 0.2);
    border-top-color: #ff3b30;
    border-radius: 50%;
    animation: productLoaderSpin 0.8s linear infinite !important;
}

/* ============================================
   PUBLIC PROFILE — CURRENT RED / BLACK DESIGN
   ============================================ */
@keyframes jpProfileDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(55px, -35px, 0) scale(1.12); }
}

.public-profile-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 34%, rgba(255, 59, 48, 0.11), transparent 34%),
        radial-gradient(circle at 86% 74%, rgba(130, 10, 5, 0.10), transparent 30%),
        #050505;
}

.public-profile-page::before,
.public-profile-page::after {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
}

.public-profile-page .jafoorrr-header .nav-link::before {
    content: none !important;
    display: none !important;
}

.public-profile-page .bg-blobs .blob {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.22), transparent 70%);
    filter: blur(105px);
    mix-blend-mode: screen;
    opacity: 0.32;
    animation: jpProfileDrift 18s ease-in-out infinite alternate;
}

.public-profile-page .bg-blobs .blob.one {
    top: 8%;
    left: -160px;
}

.public-profile-page .bg-blobs .blob.two {
    right: -180px;
    bottom: 4%;
    background: radial-gradient(circle, rgba(150, 20, 12, 0.20), transparent 70%);
    animation-direction: alternate-reverse;
}

.public-profile-page .bg-blobs::after {
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 59, 48, 0.12), transparent 38%),
        radial-gradient(circle at 74% 72%, rgba(120, 10, 5, 0.11), transparent 38%);
    filter: blur(110px);
    opacity: 0.7;
}

.public-profile-page .user-page {
    width: min(1320px, 100%);
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 145px 32px 80px;
}

.public-profile-page .user-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.public-profile-page .user-card {
    position: sticky;
    top: 112px;
    overflow: hidden;
    padding: 34px 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    background: linear-gradient(150deg, rgba(20, 20, 20, 0.96), rgba(8, 8, 8, 0.94));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 34px rgba(255, 59, 48, 0.07);
    text-align: center;
    animation: siteCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.public-profile-page .user-card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    top: -105px;
    left: 50%;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.23);
    filter: blur(70px);
    transform: translateX(-50%);
    pointer-events: none;
}

.public-profile-page .user-page .user-avatar {
    position: relative;
    width: 118px;
    height: 118px;
    margin: 0 auto 20px;
    padding: 4px;
    border: 2px solid rgba(255, 79, 68, 0.88);
    border-radius: 32px;
    background: #0b0b0b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.46), 0 0 24px rgba(255, 59, 48, 0.24);
    object-fit: cover;
}

/* style.css also uses .user-profile for an old full-page component. Keep that
   legacy selector from expanding the signed-in avatar area inside the header. */
.public-profile-page .jafoorrr-header .user-profile {
    padding: 0;
    text-align: initial;
}

.public-profile-page .user-card h2 {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.public-profile-page .user-handle {
    margin-top: 4px;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    opacity: 1;
}

.public-profile-page .views {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 18px 0 22px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    opacity: 1;
}

.public-profile-page #copyProfile.badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    margin: 0;
    padding: 0 18px;
    border: 1px solid rgba(255, 105, 95, 0.42);
    border-radius: 16px;
    background: linear-gradient(135deg, #ff493f, #e52e25);
    box-shadow: 0 12px 28px rgba(255, 59, 48, 0.20);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.public-profile-page #copyProfile.badge-btn::before,
.public-profile-page #copyProfile.badge-btn::after {
    display: none;
}

.public-profile-page #copyProfile.badge-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.07);
    box-shadow: 0 17px 34px rgba(255, 59, 48, 0.31);
}

.public-profile-page .wishlist-wrap {
    min-width: 0;
    width: 100%;
}

.public-profile-page .wishlist-title {
    margin: 4px 0 26px;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -1.8px;
    line-height: 1;
}

.public-profile-page .wishlist-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin-top: 14px;
    border-radius: 999px;
    background: #ff3b30;
    box-shadow: 0 0 18px rgba(255, 59, 48, 0.55);
}

.public-profile-page .wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.public-profile-page .wishlist-grid .card {
    min-width: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 22px;
    background: #0d0d0d;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.public-profile-page .wishlist-grid .card:hover {
    border-color: rgba(255, 59, 48, 0.5);
    transform: translateY(-7px);
    box-shadow: 0 23px 55px rgba(0, 0, 0, 0.46), 0 0 28px rgba(255, 59, 48, 0.10);
}

.public-profile-page .wishlist-grid .img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #fff;
}

.public-profile-page .wishlist-grid .img-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.public-profile-page .wishlist-grid .card:hover .img-wrap > img {
    transform: scale(1.045);
}

.public-profile-page .wishlist-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 46px 16px 15px;
    background: linear-gradient(to top, rgba(4, 4, 4, 0.96), rgba(4, 4, 4, 0.72) 58%, transparent);
}

.public-profile-page .wishlist-overlay h3 {
    overflow: hidden;
    margin: 0 0 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-profile-page .wishlist-overlay .tag {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid rgba(255, 79, 68, 0.24);
    border-radius: 999px;
    background: rgba(255, 59, 48, 0.15);
    color: #ff6a61;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    opacity: 1;
}

.public-profile-page .profile-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.public-profile-page .profile-wishlist-action,
.public-profile-page .profile-open-action {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.public-profile-page .profile-wishlist-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    cursor: pointer;
}

.public-profile-page .profile-wishlist-action.is-active {
    border-color: rgba(255, 92, 82, 0.48);
    background: rgba(255, 59, 48, 0.20);
    color: #ff6a61;
}

.public-profile-page .profile-wishlist-action.is-loading i {
    animation: productLoaderSpin 0.7s linear infinite;
}

.public-profile-page .profile-open-action {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border-color: rgba(255, 86, 76, 0.48);
    background: linear-gradient(135deg, #ff493f, #e42d24);
    box-shadow: 0 9px 20px rgba(255, 59, 48, 0.18);
    color: #fff;
    white-space: nowrap;
}

.public-profile-page .profile-wishlist-action:hover,
.public-profile-page .profile-open-action:hover {
    transform: translateY(-2px);
}

.public-profile-page .profile-open-action:hover {
    box-shadow: 0 12px 25px rgba(255, 59, 48, 0.30);
}

.public-profile-page .profile-open-action.is-disabled {
    border-color: rgba(255, 255, 255, 0.08);
    background: #242424;
    box-shadow: none;
    color: #777;
    cursor: not-allowed;
}

.public-profile-page .profile-wishlist-action:focus-visible,
.public-profile-page .profile-open-action:focus-visible,
.public-profile-page #copyProfile:focus-visible {
    outline: 2px solid #ff5d53;
    outline-offset: 3px;
}

.profile-action-notice {
    position: fixed;
    z-index: 10050;
    right: 22px;
    bottom: 22px;
    max-width: min(360px, calc(100vw - 28px));
    padding: 13px 17px;
    border: 1px solid rgba(255, 89, 79, 0.35);
    border-radius: 14px;
    background: rgba(13, 13, 13, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48), 0 0 24px rgba(255, 59, 48, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.profile-action-notice.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.profile-action-notice.is-error {
    border-color: rgba(255, 120, 112, 0.55);
    color: #ff8c84;
}

.public-profile-page #copyProfile.is-copied {
    border-color: rgba(105, 230, 160, 0.48);
    background: linear-gradient(135deg, #1fac63, #138448);
    box-shadow: 0 12px 28px rgba(31, 172, 99, 0.20);
}

.public-profile-page .no-results {
    grid-column: 1 / -1;
    padding: 70px 24px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    color: #777;
    text-align: center;
}

[data-theme="light"] .public-profile-page {
    background: #f5f5f7;
    color: #161616;
}

[data-theme="light"] .public-profile-page .user-card,
[data-theme="light"] .public-profile-page .wishlist-grid .card {
    border-color: rgba(20, 20, 20, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .public-profile-page .user-card h2,
[data-theme="light"] .public-profile-page .wishlist-title {
    color: #151515;
}

[data-theme="light"] .public-profile-page .views {
    border-color: rgba(20, 20, 20, 0.08);
    background: rgba(20, 20, 20, 0.035);
    color: #666;
}

@media (max-width: 900px) {
    .public-profile-page .user-page { padding: 118px 20px 60px; }
    .public-profile-page .user-layout { grid-template-columns: 1fr; gap: 34px; }
    .public-profile-page .user-card { position: relative; top: auto; width: min(440px, 100%); margin: 0 auto; }
}

@media (max-width: 560px) {
    .public-profile-page .user-page { padding: 102px 14px 45px; }
    .public-profile-page .user-card { padding: 26px 20px; border-radius: 22px; }
    .public-profile-page .user-page .user-avatar { width: 96px; height: 96px; border-radius: 26px; }
    .public-profile-page .wishlist-title { font-size: 30px; }
    .public-profile-page .wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .public-profile-page .wishlist-grid .card { border-radius: 16px; }
    .public-profile-page .wishlist-overlay { padding: 34px 11px 11px; }
    .public-profile-page .wishlist-overlay h3 { font-size: 12px; }
    .public-profile-page .profile-product-actions { align-items: stretch; flex-direction: column; gap: 6px; }
    .public-profile-page .profile-wishlist-action,
    .public-profile-page .profile-open-action { width: 100%; min-height: 34px; }
    .profile-action-notice { right: 14px; bottom: 14px; }
}

@media (max-width: 380px) {
    .public-profile-page .wishlist-grid { grid-template-columns: 1fr; }
}

/* Keep transparent product photos readable in every product view. */
.product-card .img-container,
.modal-img-container,
#modalMainImg,
.featured-card-img,
#wishlistGrid .img-wrap,
.public-profile-page .wishlist-grid .img-wrap {
    background-color: #fff !important;
}

/* Product search must remain visible when product-page motion is disabled. */
body.products-page .search-wrap {
    position: relative;
    z-index: 20;
    display: flex !important;
    align-items: center;
    width: min(680px, calc(100% - 32px));
    min-height: 58px;
    margin: 0 auto 28px;
    padding: 0 18px;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(14, 14, 16, 0.96);
    border: 1px solid rgba(255, 59, 48, 0.42);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28), 0 0 24px rgba(255, 59, 48, 0.08);
}

body.products-page .search-wrap .search-icon {
    position: static !important;
    flex: 0 0 auto;
    margin: 0 13px 0 0 !important;
    transform: none !important;
    color: #ff3b30;
    font-size: 19px;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

body.products-page .search-wrap #searchInput {
    position: static !important;
    display: block !important;
    flex: 1 1 auto;
    width: 100% !important;
    height: 56px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

body.products-page .search-wrap #searchInput::placeholder {
    color: rgba(255, 255, 255, 0.52);
    opacity: 1;
}

body.products-page .search-wrap:focus-within {
    border-color: #ff3b30;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3), 0 0 28px rgba(255, 59, 48, 0.18);
}

[data-theme="light"] body.products-page .search-wrap {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(216, 43, 35, 0.35);
    box-shadow: 0 14px 38px rgba(20, 20, 24, 0.1), 0 0 20px rgba(255, 59, 48, 0.06);
}

[data-theme="light"] body.products-page .search-wrap #searchInput {
    color: #141416 !important;
}

[data-theme="light"] body.products-page .search-wrap #searchInput::placeholder {
    color: rgba(20, 20, 22, 0.48);
}

@media (max-width: 600px) {
    body.products-page .search-wrap {
        width: calc(100% - 24px);
        min-height: 54px;
        margin-bottom: 22px;
        padding: 0 15px;
        border-radius: 16px;
    }

    body.products-page .search-wrap #searchInput {
        height: 52px !important;
    }
}
