:root {
    --bg: #020617;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --blue: #3b82f6;
    --blue-hover: #60a5fa;
    --green: #6ee7b7;
    --amber: #fcd34d;
    --dark-card: #0f172a;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    --text-title: 20px;
    --text-base: 14px;
    --text-small: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
}

.page-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
}

.glow-1 {
    width: 390px;
    height: 390px;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.2);
}

.glow-2 {
    width: 320px;
    height: 320px;
    top: 260px;
    left: -110px;
    background: rgba(34, 211, 238, 0.1);
}

.glow-3 {
    width: 390px;
    height: 390px;
    right: -120px;
    bottom: 80px;
    background: rgba(139, 92, 246, 0.1);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--white);
    color: #0f172a;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.1);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.brand-caption {
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    gap: 26px;
    color: #cbd5e1;
    font-size: 14px;
}

.desktop-nav a {
    transition: color 180ms ease;
}

.desktop-nav a:hover {
    color: var(--white);
}

.login-button {
    border: 0;
    border-radius: 14px;
    background: var(--blue);
    color: var(--white);
    font-weight: 800;
    padding: 11px 20px;
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.2);
    transition: background 180ms ease, transform 180ms ease;
}

.login-button:hover {
    background: var(--blue-hover);
}

.login-button:active {
    transform: scale(0.98);
}

.main-content {
    position: relative;
    padding-top: 24px;
    padding-bottom: 112px;
}

.search-panel {
    display: flex;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 12px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-field {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    border-radius: 24px;
    background: var(--white);
    color: #0f172a;
    padding: 0 16px;
}

.search-submit-button {
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #0f172a;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    flex: 0 0 auto;
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
    font-weight: 650;
}

.search-field input::placeholder {
    color: #94a3b8;
}

.typing-cursor {
    width: 1px;
    height: 20px;
    background: #cbd5e1;
    animation: blink 900ms infinite;
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

.categories-section {
    margin-top: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    min-height: 166px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
    color: var(--white);
    padding: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.category-card.active {
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.1);
}

.category-visual {
    position: relative;
    display: flex;
    width: 100%;
    height: 112px;
    align-items: center;
    justify-content: center;
    transition: transform 180ms ease;
}

.category-card:hover .category-visual {
    transform: scale(1.05);
}

.category-visual img {
    width: 100%;
    max-width: 164px;
    height: 100%;
    max-height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

.category-visual svg {
    width: 112px;
    height: 96px;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

.category-title {
    font-size: 15px;
    line-height: 1.15;
    font-weight: 900;
}

.show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.show-more-button {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.show-more-button:hover {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(59, 130, 246, 0.1);
    color: var(--white);
}

.listings-layout {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.filters-panel {
    display: none;
    height: fit-content;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--panel);
    padding: 20px;
}

.filters-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filters-title-row h2 {
    margin: 0;
    font-size: 18px;
}

.filter-block {
    margin-bottom: 24px;
}

.filter-block h3 {
    margin: 0 0 12px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 900;
}

.filter-block label {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
}

.filter-block .filter-checkbox-line {
    justify-content: flex-start;
}

.filter-choice-group {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.filter-choice-title {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 8px 2px;
}

.filter-actions-block {
    display: grid;
    gap: 10px;
}

.filter-block label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-block label > select,
.filter-block label > input[type="number"] {
    flex: 1;
    min-width: 0;
}

.filter-block input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.price-grid input,
.filter-block input[type="text"],
.filter-block input[type="number"],
.filter-block select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #0f172a;
    color: var(--white);
    outline: 0;
    padding: 12px;
    font-size: 14px;
}

.filter-block select {
    min-height: 45px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.price-grid input::placeholder,
.filter-block input::placeholder {
    color: #64748b;
}

.filters-reset-link,
.filters-toggle-close {
    border: 0;
    background: transparent;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.filters-toggle-close {
    display: none;
    cursor: pointer;
}

.filters-panel.is-mobile-open {
    display: block;
}

.filters-panel.is-mobile-open .filters-toggle-close {
    display: inline-flex;
}

.filters-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.filter-empty-note {
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
    color: #94a3b8;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.memory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.memory-list button {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: #cbd5e1;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 180ms ease, color 180ms ease;
}

.memory-list button:hover {
    border-color: rgba(96, 165, 250, 0.5);
    color: var(--white);
}

.apply-filters-button {
    width: 100%;
    border: 0;
    border-radius: 20px;
    background: var(--white);
    color: #0f172a;
    padding: 16px;
    font-weight: 900;
}

.filters-clear-button {
    display: inline-flex;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: #cbd5e1;
    padding: 14px;
    font-weight: 900;
    text-decoration: none;
}

.results-count {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--panel);
    color: #cbd5e1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 850;
}

.listing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--panel);
    color: #cbd5e1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: background 180ms ease, color 180ms ease;
}

.action-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.products-grid {
    display: grid;
    gap: 16px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.product-card.is-hidden,
.products-empty-state.is-hidden {
    display: none;
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0f172a;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.product-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.24), transparent 55%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.product-image-placeholder svg {
    width: 72px;
    height: 72px;
    opacity: 0.92;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.badge,
.top-badge {
    position: absolute;
    left: 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.badge {
    top: 12px;
    background: rgba(2, 6, 23, 0.82);
    padding: 7px 12px;
}

.top-badge {
    bottom: 12px;
    background: var(--blue);
    padding: 7px 12px;
}

.like-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: var(--white);
    font-size: 22px;
    backdrop-filter: blur(10px);
}

.like-button.liked {
    color: #f87171;
}

.product-body {
    padding: 16px;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.chips span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 5px 10px;
    font-size: 12px;
}

.product-title {
    min-height: 48px;
    margin: 0;
    color: var(--white);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
}

.price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.price {
    color: var(--white);
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.old-price {
    margin-top: 2px;
    color: #64748b;
    font-size: 14px;
    text-decoration: line-through;
}

.open-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: var(--blue);
    color: var(--white);
    font-size: 20px;
    transition: background 180ms ease;
}

.open-button:hover {
    background: var(--blue-hover);
}

.seller-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 16px;
}

.seller-name {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 800;
}

.rating {
    color: var(--amber);
    font-size: 12px;
    margin-top: 4px;
}

.verified-mark {
    color: var(--green);
    font-weight: 900;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
}

.products-empty-state {
    display: grid;
    gap: 12px;
    align-content: center;
    min-height: 280px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.48);
    padding: 32px 24px;
    text-align: center;
    color: #cbd5e1;
}

.products-empty-state h3 {
    margin: 0;
    color: var(--white);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 950;
}

.products-empty-state p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}

.products-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    font-size: 30px;
    font-weight: 900;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.92);
    padding: 8px 16px;
    backdrop-filter: blur(20px);
    transition: transform 300ms ease;
}

.bottom-nav.hidden {
    transform: translateY(150%);
}

.bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: min(100%, 448px);
    margin-inline: auto;
    color: #94a3b8;
    font-size: 12px;
}

.bottom-nav-item,
.sell-button {
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: inherit;
}

.bottom-nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-radius: 16px;
    padding: 8px 6px;
}

.bottom-nav-item svg {
    width: 20px;
    height: 20px;
}

.bottom-nav-item.active {
    color: #93c5fd;
}

.sell-button {
    flex-direction: column;
    gap: 4px;
    justify-content: flex-start;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    transform: translateY(-20px);
}

.sell-button-icon {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--blue);
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.3);
}

.sell-button svg {
    width: 28px;
    height: 28px;
}

@media (min-width: 640px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .main-content {
        padding-bottom: 64px;
    }

    .categories-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .listings-layout {
        grid-template-columns: 290px 1fr;
    }

    .filters-panel {
        display: block;
    }

    .filters-panel.is-mobile-open .filters-toggle-close {
        display: none;
    }

    .mobile-filter-button {
        display: none;
    }

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

    .bottom-nav {
        display: none;
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .search-panel {
        flex-direction: column;
    }

    .search-submit-button {
        min-height: 48px;
    }

    .brand-caption,
    .desktop-nav {
        display: none;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .login-button {
        padding: 10px 16px;
    }

    .main-content {
        padding-top: 18px;
    }
}


/* AppleBoard category experience update */
@keyframes abFlashSweep {
    0% {
        transform: translateX(-130%) skewX(-18deg);
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    65% {
        opacity: 0.9;
    }
    100% {
        transform: translateX(145%) skewX(-18deg);
        opacity: 0;
    }
}

@keyframes abFloatIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes abPulseGlow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    }
    50% {
        box-shadow: 0 0 42px rgba(59, 130, 246, 0.28);
    }
}

@keyframes abOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.categories-grid.categories-grid-flow {
    display: block;
}

.category-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.category-reset-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #dbeafe;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 900;
}

.category-reset-link:hover {
    border-color: rgba(147, 197, 253, 0.5);
    background: rgba(59, 130, 246, 0.16);
}

.category-step {
    display: grid;
    gap: 14px;
}

.category-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    padding: 12px;
}

.category-step-title-block {
    display: grid;
    gap: 4px;
    min-width: 180px;
}

.category-step-title {
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 950;
}

.category-step-crumbs {
    color: #93c5fd;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 850;
}

.category-step-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.category-step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.category-multi-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.category-multi-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.category-flow-action-primary {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(59, 130, 246, 0.18);
    color: #dbeafe;
}

.category-model-group {
    display: grid;
    gap: 10px;
}

.products-grid.is-loading {
    opacity: .58;
    pointer-events: none;
}

.category-card {
    position: relative;
    overflow: hidden;
}

.category-card .category-hover-glow {
    position: absolute;
    inset: 20px 20px auto;
    height: 80px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0);
    filter: blur(28px);
    transition: background 220ms ease;
}

.category-card:hover .category-hover-glow {
    background: rgba(96, 165, 250, 0.2);
}

.ab-tile-in {
    animation: abFloatIn 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--tile-index, 0) * 38ms);
}

.ab-glow {
    animation: abPulseGlow 1.4s ease-in-out infinite;
}

.ab-flash::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), rgba(96, 165, 250, 0.45), transparent);
    animation: abFlashSweep 720ms ease both;
    pointer-events: none;
}

.category-experience {
    display: grid;
    gap: 16px;
}

.category-flow-hero,
.category-flow-options {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
}

.category-flow-hero {
    min-height: 370px;
    cursor: pointer;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(147, 197, 253, 0.2);
    padding: 16px;
}

.category-flow-options {
    background: rgba(2, 6, 23, 0.45);
    padding: 12px;
}

.category-flow-flash {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.category-flow-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.category-flow-action,
.category-flow-close {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-weight: 900;
    transition: background 180ms ease, color 180ms ease;
}

.category-flow-action {
    border-radius: 18px;
    padding: 10px 16px;
    font-size: 14px;
}

.category-flow-close {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
}

.category-flow-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-flow-close:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

.category-flow-action.category-flow-action-primary {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(59, 130, 246, 0.18);
    color: #dbeafe;
}

.category-flow-main {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 282px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-flow-image-wrap {
    position: relative;
    display: flex;
    width: 100%;
    height: 144px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-orbit {
    position: absolute;
    width: 128px;
    height: 128px;
    border: 1px dashed rgba(147, 197, 253, 0.22);
    border-radius: 999px;
    animation: abOrbit 8s linear infinite;
}

.category-image-glow {
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.15);
    filter: blur(24px);
}

.category-selection-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
}

.category-selection-pill {
    border: 0;
    border-radius: 999px;
    background: #3b82f6;
    color: #ffffff;
    font: inherit;
    line-height: 1.2;
    appearance: none;
    padding: 6px 12px;
    cursor: pointer;
}

.category-flow-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.category-flow-subhead {
    position: relative;
    z-index: 2;
    margin: 18px 0 10px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 950;
}

.category-flow-tile {
    position: relative;
    display: flex;
    min-height: 176px;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--white);
    padding: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.category-flow-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(147, 197, 253, 0.6);
    background: rgba(59, 130, 246, 0.15);
}

.category-flow-tile.selected {
    border-color: rgba(147, 197, 253, 0.7);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2), 0 16px 34px rgba(59, 130, 246, 0.12);
}

.category-tile-glow {
    position: absolute;
    inset: 24px 32px auto;
    height: 96px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0);
    filter: blur(28px);
    transition: background 220ms ease;
}

.category-flow-tile:hover .category-tile-glow,
.category-flow-tile.selected .category-tile-glow {
    background: rgba(96, 165, 250, 0.2);
}

.category-tile-visual {
    position: relative;
    display: flex;
    width: 100%;
    height: 96px;
    align-items: center;
    justify-content: center;
    transition: transform 220ms ease;
}

.category-flow-tile:hover .category-tile-visual {
    transform: scale(1.08);
}

.category-tile-text,
.category-tile-title {
    position: relative;
}

.category-tile-title {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}

.category-tile-title.with-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.category-tile-caption {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.category-checkmark {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.category-device-image {
    width: 100%;
    max-width: 164px;
    max-height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

.category-device-image-compact {
    max-width: 132px;
    max-height: 86px;
}

.category-device-image-big {
    max-width: 240px;
    max-height: 148px;
}

.category-fallback-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-fallback-visual svg {
    width: 112px;
    height: 96px;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

.category-fallback-visual.category-device-image-compact svg {
    width: 96px;
    height: 80px;
}

.category-fallback-visual.category-device-image-big svg {
    width: 148px;
    height: 126px;
}

@media (min-width: 768px) {
    .category-step-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-flow-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .category-step-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-flow-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .category-step-head,
    .category-step-actions,
    .category-flow-action,
    .category-multi-toggle {
        width: 100%;
    }

    .category-step-actions {
        justify-content: stretch;
    }

    .category-flow-action,
    .category-multi-toggle {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ab-tile-in,
    .ab-glow,
    .category-orbit,
    .ab-flash::after {
        animation: none !important;
    }
}

.product-image-media{width:100%;height:100%;object-fit:cover;display:block;transition:transform 450ms ease;pointer-events:none}.product-card:hover .product-image-media{transform:scale(1.05)}.product-video-badge{position:absolute;right:12px;bottom:12px;border-radius:999px;background:rgba(2,6,23,.82);color:var(--white);padding:7px 12px;font-size:12px;font-weight:800;backdrop-filter:blur(10px)}

/* Product favorite button */
.product-card {
    position: relative;
}

.product-favorite-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    margin: 0;
}

.product-favorite-button {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(2, 6, 23, .72);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
    cursor: pointer;
}

.product-favorite-button svg {
    width: 21px;
    height: 21px;
}

.product-favorite-button.is-active {
    border-color: rgba(248, 113, 113, .55);
    background: rgba(248, 113, 113, .92);
    color: #fff;
}

.product-favorite-link {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    text-decoration: none;
}

@media (hover: hover) {
    .product-favorite-button:hover {
        transform: scale(1.04);
    }
}

/* AppleBoard UX compact controls */
*,
*::before,
*::after {
    letter-spacing: 0 !important;
}

.main-content {
    padding-top: 18px;
}

.categories-section {
    margin-top: 0;
}

.category-step-head-compact {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.category-step-head-compact .category-step-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
}

.category-step-head-compact .category-flow-action {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: var(--text-small);
}

.category-multi-toggle {
    min-height: 36px;
    border-radius: 12px;
    font-size: var(--text-small);
}

.category-title,
.category-tile-title {
    font-size: var(--text-base);
    line-height: 1.25;
}

.category-tile-caption,
.category-flow-subhead {
    font-size: var(--text-small);
}

.filters-title-row h2,
.product-title {
    font-size: var(--text-title);
    line-height: 1.25;
}

.filter-block {
    gap: 12px;
}

.filter-block label,
.filter-field-label {
    font-size: var(--text-small);
    line-height: 1.35;
}

.filter-block input[type="text"],
.filter-block input[type="number"],
.filter-block select,
.ab-dropdown-trigger {
    min-height: 42px;
    border-radius: 14px;
    font-size: var(--text-base);
}

.filter-block select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.filter-dropdown-field {
    display: grid;
    gap: 8px;
}

.ab-dropdown {
    position: relative;
    width: 100%;
}

.ab-dropdown-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .82);
    color: #fff;
    padding: 0 14px;
    text-align: left;
}

.ab-dropdown-trigger span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-dropdown.has-value .ab-dropdown-trigger {
    border-color: rgba(96, 165, 250, .5);
    background: rgba(30, 64, 175, .25);
}

.ab-dropdown-chevron {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 15px;
}

.ab-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    max-height: 260px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 14px;
    background: rgba(15, 23, 42, .98);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
    padding: 6px;
}

.ab-dropdown.is-open .ab-dropdown-menu {
    display: grid;
    gap: 2px;
}

.ab-dropdown-option {
    display: flex !important;
    min-height: 38px;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    border-radius: 10px;
    color: #e2e8f0;
    padding: 8px 10px;
    font-size: var(--text-base) !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.ab-dropdown-option:hover {
    background: rgba(59, 130, 246, .14);
}

.ab-dropdown-option input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    accent-color: #60a5fa;
}

.ab-dropdown-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-title {
    font-weight: 850;
}

.price {
    font-size: 18px;
}

.product-body,
.chips,
.meta-row,
.seller-row,
.open-button,
.apply-filters-button,
.filters-clear-button {
    font-size: var(--text-base);
}

.rating,
.old-price,
.badge,
.top-badge,
.results-count {
    font-size: var(--text-small);
}

@media (max-width: 720px) {
    :root {
        --text-title: 18px;
        --text-base: 14px;
        --text-small: 12px;
    }

    .category-step-head-compact .category-step-actions {
        flex-wrap: wrap;
    }

    .ab-dropdown-menu {
        position: fixed;
        left: 14px;
        right: 14px;
        top: auto;
        bottom: calc(88px + env(safe-area-inset-bottom));
        max-height: min(58vh, 360px);
        border-radius: 18px;
        padding: 8px;
    }
}

/* Light marketplace theme */
:root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --border: #e2e5e9;
    --text: #172033;
    --muted: #687386;
    --muted-2: #8791a3;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --green: #15803d;
    --amber: #8a5a00;
    --dark-card: #f1f4f8;
    --white: #ffffff;
    --shadow: 0 10px 28px rgba(23, 32, 51, .08);
}

body {
    background: var(--bg);
    color: var(--text);
}

.site-header {
    border-color: var(--border);
    background: rgba(255, 255, 255, .94);
}

.brand-logo {
    border: 1px solid var(--border);
    background: #172033;
    color: #fff;
    box-shadow: none;
}

.brand-name,
.category-title,
.category-step-title,
.category-tile-title,
.filters-title-row h2,
.product-title,
.price,
.products-empty-state h3 {
    color: var(--text);
}

.brand-caption,
.desktop-nav,
.results-count,
.action-pill,
.filter-block label,
.filter-choice-title,
.filters-clear-button,
.seller-name,
.meta-row,
.category-selection-pills,
.category-tile-caption {
    color: var(--muted);
}

.desktop-nav a:hover {
    color: var(--blue);
}

.login-button {
    box-shadow: none;
}

.category-card,
.category-flow-tile,
.filters-panel,
.product-card,
.results-count,
.action-pill,
.category-step-head,
.category-flow-options {
    border-color: var(--border);
    background: #fff;
    box-shadow: none;
}

.category-card,
.category-flow-tile {
    border-radius: 20px;
}

.category-card:hover,
.category-flow-tile:hover {
    border-color: #b8c7df;
    background: #fff;
    box-shadow: var(--shadow);
}

.category-card.active,
.category-flow-tile.selected {
    border-color: #8fb1f5;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

.category-card .category-hover-glow,
.category-tile-glow,
.category-orbit,
.category-image-glow {
    display: none;
}

.category-device-image,
.category-visual img,
.category-fallback-visual svg {
    filter: drop-shadow(0 8px 14px rgba(23, 32, 51, .12));
}

.show-more-button,
.category-reset-link,
.category-multi-toggle,
.category-flow-action,
.category-flow-close {
    border-color: var(--border);
    background: #fff;
    color: var(--text);
    box-shadow: none;
}

.show-more-button:hover,
.category-reset-link:hover,
.category-flow-action:hover {
    border-color: #b8c7df;
    background: #f8fafc;
    color: var(--text);
}

.category-flow-action.category-flow-action-primary {
    border-color: #93b4f5;
    background: #eff6ff;
    color: #1d4ed8;
}

.filters-panel {
    border-radius: 22px;
    padding: 18px;
}

.filter-block {
    margin-bottom: 18px;
}

.filter-block label:hover {
    background: #f6f7f9;
}

.price-grid input,
.filter-block input[type="text"],
.filter-block input[type="number"],
.filter-block select,
.ab-dropdown-trigger {
    border-color: #d8dde5;
    background-color: #fff;
    color: var(--text);
}

.filter-block select {
    background-image:
        linear-gradient(45deg, transparent 50%, #687386 50%),
        linear-gradient(135deg, #687386 50%, transparent 50%);
}

.filters-reset-link,
.filters-toggle-close {
    color: var(--blue);
}

.filter-empty-note {
    background: #f1f4f8;
    color: var(--muted);
}

.ab-dropdown.has-value .ab-dropdown-trigger {
    border-color: #93b4f5;
    background: #eff6ff;
}

.ab-dropdown-menu {
    border-color: var(--border);
    background: #fff;
    box-shadow: var(--shadow);
}

.ab-dropdown-option {
    color: var(--text);
}

.ab-dropdown-option:hover {
    background: #eff6ff;
}

.apply-filters-button {
    background: var(--blue);
    color: #fff;
}

.filters-clear-button:hover,
.action-pill:hover {
    border-color: #b8c7df;
    background: #f8fafc;
    color: var(--text);
}

.product-card {
    border-radius: 22px;
    background: #fff;
}

.product-card:hover {
    border-color: #c5cfdd;
    background: #fff;
    box-shadow: var(--shadow);
}

.product-image {
    background: #edf1f5;
}

.product-image-placeholder {
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, .18), transparent 55%),
        linear-gradient(180deg, #f4f7fb, #e8edf4);
}

.chips span {
    background: #f1f4f8;
    color: #5f6b7d;
}

.rating {
    color: var(--muted);
}

.products-empty-state {
    border-color: #cdd4de;
    background: #fff;
    color: var(--muted);
}

.products-empty-state p {
    color: var(--muted);
}

.products-empty-icon {
    background: #eff6ff;
    color: var(--blue);
}

.bottom-nav {
    border-color: var(--border);
    background: rgba(255, 255, 255, .96);
}

.bottom-nav-inner {
    color: #7b8494;
}

.bottom-nav-item.active {
    color: var(--blue);
}

@media (max-width: 1023px) {
    .filters-panel.is-mobile-open {
        position: fixed;
        inset: 0;
        z-index: 80;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        padding: 20px max(16px, calc((100vw - 560px) / 2));
        background: #fff;
    }
}

@media (max-width: 767px) {
    .site-header {
        position: static;
    }

    .category-step-grid,
    .category-flow-grid {
        gap: 10px;
    }

    .category-card,
    .category-flow-tile {
        min-height: 150px;
        border-radius: 16px;
    }

    .product-card {
        border-radius: 18px;
    }
}
