/*
 * TOOLMMO Marketplace — editorial marketplace skin
 * Presentation-only layer for pages/dashboard.php.
 * Dynamic PHP, prices, voucher handling, product state and existing actions
 * intentionally stay in the original template.
 */

html[data-dashboard-theme] body {
    --fm-ink: #111111;
    --fm-muted: #747474;
    --fm-subtle: #a0a0a0;
    --fm-canvas: #f5f5f3;
    --fm-panel: #ffffff;
    --fm-soft: #ececea;
    --fm-line: #dededb;
    --fm-blue: #335cff;
    --fm-green: #16a34a;
    --fm-radius-sm: 12px;
    --fm-radius-md: 18px;
    --fm-radius-lg: 24px;
    --fm-shadow-float: 0 18px 48px rgba(17, 17, 17, 0.08);
    margin: 0;
    background: var(--fm-canvas);
    color: var(--fm-ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
}

html[data-dashboard-theme="dark"] {
    color-scheme: dark;
    background: #121212 !important;
}

html[data-dashboard-theme="dark"] body {
    --fm-ink: #f4f4f2;
    --fm-muted: #9c9c98;
    --fm-subtle: #777773;
    --fm-canvas: #121212;
    --fm-panel: #1b1b1b;
    --fm-soft: #272727;
    --fm-line: #30302f;
    background: #121212 !important;
    color: #f4f4f2 !important;
}

html[data-dashboard-theme] body *,
html[data-dashboard-theme] body *::before,
html[data-dashboard-theme] body *::after {
    box-sizing: border-box;
}

html[data-dashboard-theme] body a {
    text-underline-offset: 3px;
}

html[data-dashboard-theme] body .layout-wrap .section-content-right .main-content {
    padding-top: 86px;
    background: var(--fm-canvas);
}

html[data-dashboard-theme] body .layout-wrap .section-content-right .main-content .main-content-inner {
    padding: 28px 30px 44px;
}

html[data-dashboard-theme] body .main-content-wrap {
    max-width: 1640px;
}

/* -------------------------------------------------------------
   App chrome
------------------------------------------------------------- */

html[data-dashboard-theme] body .header-dashboard {
    height: 72px;
    padding: 10px 24px 10px 304px;
    background: rgba(245, 245, 243, 0.88);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: none;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}

html[data-dashboard-theme] body .nav-hero-bar {
    width: 100%;
    min-height: 51px;
    padding: 0;
    gap: 10px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-dashboard-theme] body .nav-banner-strip {
    display: none;
}

html[data-dashboard-theme] body .nav-hero-actions {
    width: 100%;
    padding: 0;
    gap: 8px;
}

html[data-dashboard-theme] body .nav-search {
    min-width: 260px;
    max-width: 680px;
    height: 44px;
    margin: 0 auto 0 0;
    padding: 0 16px;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--fm-line);
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(17, 17, 17, 0.02);
}

html[data-dashboard-theme] body .nav-search:focus-within {
    border-color: #aaa;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

html[data-dashboard-theme] body .nav-search i {
    color: #878787;
    font-size: 13px;
}

html[data-dashboard-theme] body .nav-search input {
    color: var(--fm-ink);
    font-size: 13px;
    font-weight: 450;
}

html[data-dashboard-theme] body .nav-pill {
    height: 44px;
    min-width: 124px;
    padding: 6px 12px;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--fm-line);
    border-radius: 12px;
    box-shadow: none;
}

html[data-dashboard-theme] body .nav-pill i {
    color: var(--fm-ink);
}

html[data-dashboard-theme] body .nav-pill .pill-label {
    color: #8b8b8b;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

html[data-dashboard-theme] body .nav-pill .pill-amount {
    color: var(--fm-ink);
    font-size: 13px;
}

html[data-dashboard-theme] body .nav-btn {
    height: 44px;
    padding: 0 14px;
    gap: 7px;
    color: var(--fm-ink);
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--fm-line);
    border-radius: 12px;
    box-shadow: none;
}

html[data-dashboard-theme] body .nav-btn:hover {
    transform: none;
    background: #ededeb;
    border-color: #d4d4d0;
    box-shadow: none;
}

html[data-dashboard-theme] body .nav-btn.primary {
    color: #fff;
    background: var(--fm-ink);
    border-color: var(--fm-ink);
    box-shadow: none;
}

html[data-dashboard-theme] body .nav-btn.primary:hover {
    background: #303030;
    border-color: #303030;
    box-shadow: none;
}

html[data-dashboard-theme] body .nav-theme-btn,
html[data-dashboard-theme] body .nav-lang-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    color: var(--fm-ink) !important;
    font-size: 14px !important;
    background: #fff !important;
    border: 1px solid var(--fm-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html[data-dashboard-theme] body .nav-theme-btn:hover,
html[data-dashboard-theme] body .nav-lang-btn:hover {
    transform: none !important;
    background: #ededeb !important;
    border-color: #d4d4d0 !important;
    box-shadow: none !important;
}

html[data-dashboard-theme] body .nav-avatar {
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--fm-ink);
    border: 0;
    box-shadow: none;
}

html[data-dashboard-theme] body .nav-dropdown {
    top: calc(100% + 10px);
    min-width: 210px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--fm-line);
    border-radius: 14px;
    box-shadow: var(--fm-shadow-float);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-dashboard-theme] body .nav-dropdown a {
    padding: 10px 11px;
    color: var(--fm-ink);
    font-size: 12px;
    font-weight: 550;
    border-radius: 9px;
}

html[data-dashboard-theme] body .nav-dropdown a:hover {
    background: var(--fm-soft);
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left {
    background: #f8f8f6;
    border-right: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: none;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .box-logo {
    height: 72px;
    padding: 15px 18px !important;
    background: #f8f8f6;
    border-right: 1px solid rgba(17, 17, 17, 0.08);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .box-logo img {
    max-height: 36px;
    width: auto;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center {
    padding: 16px 14px 28px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item {
    margin-bottom: 24px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .center-heading {
    padding-left: 11px !important;
    color: #a2a2a2 !important;
    font-size: 9px !important;
    font-weight: 650 !important;
    letter-spacing: 0.1em;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item {
    margin-bottom: 2px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a {
    min-height: 42px;
    padding: 6px 10px !important;
    gap: 10px !important;
    border-radius: 9px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a .icon {
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border-radius: 8px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a .icon i {
    color: #747474 !important;
    font-size: 12px !important;
    -webkit-text-fill-color: #747474 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a .text {
    color: #535353 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a:hover,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item:not(.has-children) a.active,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children.active > a {
    background: #e9e9e6 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a:hover .text,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a.active .text,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children.active > a .text {
    color: var(--fm-ink) !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a:hover .icon i,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a.active .icon i {
    color: var(--fm-ink) !important;
    -webkit-text-fill-color: var(--fm-ink) !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item:not(.has-children) a.active::before {
    display: none !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left .bot {
    border-top-color: var(--fm-line) !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left .bot .wrap {
    background: var(--fm-ink) !important;
    border: 0 !important;
    border-radius: 15px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left .bot .wrap h6,
html[data-dashboard-theme] body .layout-wrap .section-menu-left .bot .wrap .text {
    color: #fff !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left .bot .wrap .text {
    opacity: 0.62;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left .bot .wrap .bot-btn {
    color: var(--fm-ink) !important;
    background: #fff;
    border-radius: 9px;
}

/* -------------------------------------------------------------
   Shared editorial components
------------------------------------------------------------- */

html[data-dashboard-theme] body .fm-eyebrow,
html[data-dashboard-theme] body .fm-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7b7b7b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[data-dashboard-theme] body .fm-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: #39d353;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(57, 211, 83, 0.12);
}

html[data-dashboard-theme] body .fm-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 56px 0 18px;
}

html[data-dashboard-theme] body .fm-section-heading h2,
html[data-dashboard-theme] body .category-filters-title h2,
html[data-dashboard-theme] body .fm-collection-intro h2 {
    margin: 5px 0 0;
    color: var(--fm-ink);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 590;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

html[data-dashboard-theme] body .fm-section-heading p,
html[data-dashboard-theme] body .category-filters-title p,
html[data-dashboard-theme] body .fm-collection-intro p {
    max-width: 620px;
    margin: 9px 0 0;
    color: var(--fm-muted);
    font-size: 13px;
    line-height: 1.6;
}

html[data-dashboard-theme] body .fm-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    color: var(--fm-ink);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

html[data-dashboard-theme] body .fm-text-link i {
    font-size: 9px;
    transition: transform 180ms ease;
}

html[data-dashboard-theme] body .fm-text-link:hover i {
    transform: translateX(3px);
}

/* -------------------------------------------------------------
   Hero
------------------------------------------------------------- */

html[data-dashboard-theme] body .fm-marketplace-hero {
    position: relative;
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    overflow: hidden;
    background: #151515;
    border-radius: var(--fm-radius-lg);
    isolation: isolate;
}

html[data-dashboard-theme] body .fm-marketplace-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 83% 46%, rgba(86, 112, 255, 0.32), transparent 26%),
        radial-gradient(circle at 18% 110%, rgba(122, 255, 190, 0.12), transparent 36%),
        #151515;
}

html[data-dashboard-theme] body .fm-marketplace-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.17;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 44%, #000);
    mask-image: linear-gradient(90deg, transparent 2%, #000 44%, #000);
}

html[data-dashboard-theme] body .fm-hero-copy {
    align-self: center;
    padding: clamp(42px, 5vw, 78px);
}

html[data-dashboard-theme] body .fm-marketplace-hero .fm-eyebrow {
    color: rgba(255, 255, 255, 0.58);
}

html[data-dashboard-theme] body .fm-marketplace-hero h1 {
    max-width: 820px;
    margin: 20px 0 18px;
    color: #fff;
    font-size: clamp(48px, 5.7vw, 84px);
    font-weight: 570;
    line-height: 0.96;
    letter-spacing: -0.065em;
}

html[data-dashboard-theme] body .fm-marketplace-hero p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.65;
}

html[data-dashboard-theme] body .fm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

html[data-dashboard-theme] body .fm-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 620;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

html[data-dashboard-theme] body .fm-button-dark {
    color: var(--fm-ink);
    background: #fff;
}

html[data-dashboard-theme] body .fm-button-dark:hover {
    color: var(--fm-ink);
    background: #e7e7e7;
}

html[data-dashboard-theme] body .fm-button-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-dashboard-theme] body .fm-button-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

html[data-dashboard-theme] body .fm-hero-aside {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-dashboard-theme] body .fm-library-panel {
    width: min(360px, calc(100% - 48px));
    padding: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    transform: rotate(-2deg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-dashboard-theme] body .fm-library-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 9px 14px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

html[data-dashboard-theme] body .fm-library-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

html[data-dashboard-theme] body .fm-library-status i {
    width: 6px;
    height: 6px;
    background: #52df74;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(82, 223, 116, 0.1);
}

html[data-dashboard-theme] body .fm-library-row {
    min-height: 62px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
}

html[data-dashboard-theme] body .fm-library-row + .fm-library-row {
    margin-top: 7px;
}

html[data-dashboard-theme] body .fm-library-index {
    color: rgba(255, 255, 255, 0.33);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

html[data-dashboard-theme] body .fm-library-row strong {
    font-size: 13px;
    font-weight: 560;
    letter-spacing: -0.02em;
}

html[data-dashboard-theme] body .fm-library-row > i {
    color: rgba(255, 255, 255, 0.35);
    font-size: 9px;
}

html[data-dashboard-theme] body .fm-availability {
    position: absolute;
    right: 28px;
    bottom: 28px;
    max-width: calc(100% - 56px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 550;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* -------------------------------------------------------------
   Account overview and utilities
------------------------------------------------------------- */

html[data-dashboard-theme] body .fm-account-heading {
    margin-top: 48px;
}

html[data-dashboard-theme] body .dashboard-cards-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

html[data-dashboard-theme] body .dashboard-card-item {
    min-height: 104px;
    padding: 18px;
    background: var(--fm-panel);
    border: 1px solid var(--fm-line);
    border-radius: 16px;
    box-shadow: none;
}

html[data-dashboard-theme] body .dashboard-card-item::after {
    right: 15px;
    color: var(--fm-ink);
}

html[data-dashboard-theme] body .dashboard-card-link:hover .dashboard-card-item {
    transform: none;
    background: #eeeeeb;
    border-color: #d5d5d1;
    box-shadow: none;
}

html[data-dashboard-theme] body .dashboard-card-content {
    align-items: flex-start;
    gap: 13px;
}

html[data-dashboard-theme] body .dashboard-card-icon,
html[data-dashboard-theme] body .dashboard-card-link:nth-child(n) .dashboard-card-icon {
    width: 36px;
    height: 36px;
    color: var(--fm-ink);
    font-size: 13px;
    background: var(--fm-soft);
    border-radius: 10px;
}

html[data-dashboard-theme] body .dashboard-card-label {
    margin: 1px 0 7px;
    color: #898989;
    font-size: 10px;
    font-weight: 520;
}

html[data-dashboard-theme] body .dashboard-card-value {
    padding-right: 12px;
    color: var(--fm-ink);
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 620;
    letter-spacing: -0.025em;
}

html[data-dashboard-theme] body .vip-progress-section {
    margin-bottom: 14px !important;
}

html[data-dashboard-theme] body .vip-progress-section .main-card {
    padding: 19px 20px;
    background: var(--fm-panel);
    border: 1px solid var(--fm-line);
    border-radius: 16px;
    box-shadow: none;
}

html[data-dashboard-theme] body .vip-progress-section .main-card > div:first-child {
    margin-bottom: 13px !important;
}

html[data-dashboard-theme] body .vip-progress-section .main-card a.btn {
    color: #fff !important;
    background: var(--fm-ink) !important;
    border-color: var(--fm-ink) !important;
}

html[data-dashboard-theme] body .page-wrapper-168,
html[data-dashboard-theme] body .page-wrapper-168 .container-fluid {
    padding: 0;
}

html[data-dashboard-theme] body .kb-grid {
    grid-template-columns: 2fr 1fr 1fr 1.25fr;
    gap: 10px;
    margin-bottom: 0 !important;
}

html[data-dashboard-theme] body .kb-card {
    min-height: 142px;
    padding: 17px;
    background: var(--fm-panel);
    border: 1px solid var(--fm-line);
    border-radius: 16px;
    box-shadow: none;
}

html[data-dashboard-theme] body .kb-card:hover {
    transform: none;
    background: #eeeeeb;
    border-color: #d5d5d1;
    box-shadow: none;
}

html[data-dashboard-theme] body .kb-chip {
    width: fit-content;
    margin-bottom: 11px;
    padding: 5px 9px;
    color: var(--fm-ink);
    background: var(--fm-soft);
    border: 0;
}

html[data-dashboard-theme] body .kb-head,
html[data-dashboard-theme] body .kb-value {
    color: var(--fm-ink);
}

html[data-dashboard-theme] body .kb-head {
    font-size: 14px;
    letter-spacing: -0.02em;
}

html[data-dashboard-theme] body .kb-mini,
html[data-dashboard-theme] body .kb-title {
    color: var(--fm-muted);
}

html[data-dashboard-theme] body .kb-pass {
    padding: 7px 10px;
    background: transparent;
    border-color: #c8c8c5;
    border-radius: 9px;
}

html[data-dashboard-theme] body .kb-pass:hover {
    background: var(--fm-soft);
    border-color: #aaa;
}

html[data-dashboard-theme] body .kb-pass-code {
    color: var(--fm-ink);
}

html[data-dashboard-theme] body .spotify-embed {
    border-radius: 10px;
    filter: grayscale(1);
}

/* -------------------------------------------------------------
   Featured picks
------------------------------------------------------------- */

html[data-dashboard-theme] body .fm-featured-heading {
    margin-top: 68px;
}

html[data-dashboard-theme] body .swiper-container-notify {
    margin: 0 0 70px;
    padding-bottom: 32px;
}

html[data-dashboard-theme] body .swiper-container-notify .swiper-wrapper {
    align-items: stretch;
}

html[data-dashboard-theme] body .swiper-container-notify .swiper-slide {
    height: auto;
    margin-right: 0;
}

html[data-dashboard-theme] body .banner {
    height: 300px;
    min-height: 300px;
    padding: 34px 36px;
    border-radius: 20px;
    border: 0;
    box-shadow: none;
}

html[data-dashboard-theme] body .banner::after {
    opacity: 0.45;
    background-size: 36px 36px;
}

html[data-dashboard-theme] body .banner h2 {
    margin-bottom: 10px;
    font-size: clamp(19px, 1.8vw, 28px);
    font-weight: 590;
    line-height: 1.17;
    letter-spacing: -0.035em;
}

html[data-dashboard-theme] body .banner p {
    margin-bottom: 17px;
    font-size: 12px;
    line-height: 1.55;
}

html[data-dashboard-theme] body .banner .right img {
    max-width: 100%;
    border-radius: 13px;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.26));
}

html[data-dashboard-theme] body .cta-btn {
    padding: 9px 14px;
    color: var(--fm-ink);
    font-size: 10px;
    letter-spacing: 0.07em;
    background: #fff;
    border-radius: 9px;
    box-shadow: none;
}

html[data-dashboard-theme] body .cta-btn:hover {
    color: var(--fm-ink);
    transform: none;
    background: #ededed;
    box-shadow: none;
}

html[data-dashboard-theme] body .swiper-container-notify .swiper-pagination {
    bottom: 2px;
    text-align: left;
}

html[data-dashboard-theme] body .swiper-container-notify .swiper-pagination-bullet {
    width: 20px;
    height: 3px;
    margin: 0 3px;
    background: #c6c6c2;
}

html[data-dashboard-theme] body .swiper-container-notify .swiper-pagination-bullet-active {
    width: 34px;
    background: var(--fm-ink);
}

/* -------------------------------------------------------------
   Browse by type
------------------------------------------------------------- */

html[data-dashboard-theme] body .category-filters-section {
    margin: 0 0 78px;
    scroll-margin-top: 90px;
}

html[data-dashboard-theme] body .category-filters-wrapper {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-dashboard-theme] body .category-filters-title {
    display: block;
    margin-bottom: 20px;
}

html[data-dashboard-theme] body .category-filters-title > div {
    display: block;
}

html[data-dashboard-theme] body .category-filters-scroll {
    overflow: visible;
    padding: 0;
}

html[data-dashboard-theme] body .category-filters-list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

html[data-dashboard-theme] body .category-filter-item {
    min-width: 0;
}

html[data-dashboard-theme] body .category-filter-btn {
    min-height: 84px;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px;
    color: var(--fm-ink) !important;
    background: var(--fm-panel);
    border: 1px solid var(--fm-line);
    border-radius: 15px;
    box-shadow: none;
}

html[data-dashboard-theme] body .category-filter-btn::before {
    display: none;
}

html[data-dashboard-theme] body .category-filter-btn:hover {
    color: var(--fm-ink) !important;
    background: #e9e9e6;
    border-color: #d2d2ce;
    transform: none;
    box-shadow: none;
}

html[data-dashboard-theme] body .category-filter-btn.active {
    color: #fff !important;
    background: var(--fm-ink);
    border-color: var(--fm-ink);
    box-shadow: none;
}

html[data-dashboard-theme] body .category-filter-btn.active:hover {
    color: #fff !important;
    background: #303030;
    border-color: #303030;
    transform: none;
    box-shadow: none;
}

html[data-dashboard-theme] body .category-filter-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: inherit;
    font-size: 14px;
    background: var(--fm-soft);
    border-radius: 10px;
}

html[data-dashboard-theme] body .category-filter-btn.active .category-filter-icon {
    background: rgba(255, 255, 255, 0.13);
}

html[data-dashboard-theme] body .category-filter-text {
    overflow: hidden;
    font-size: 11px;
    font-weight: 610;
    letter-spacing: 0;
    text-overflow: ellipsis;
}

html[data-dashboard-theme] body .category-filter-count {
    margin-left: auto;
    padding: 3px 6px;
    color: #8d8d8d;
    font-size: 9px;
    background: transparent;
}

html[data-dashboard-theme] body .category-filter-btn.active .category-filter-count {
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
}

/* -------------------------------------------------------------
   Product collections
------------------------------------------------------------- */

html[data-dashboard-theme] body .fm-collection-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 52px 0 26px;
    border-top: 1px solid var(--fm-line);
    scroll-margin-top: 86px;
}

html[data-dashboard-theme] body .fm-collection-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

html[data-dashboard-theme] body .fm-collection-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    color: #676767;
    font-size: 10px;
    font-weight: 540;
    background: var(--fm-panel);
    border: 1px solid var(--fm-line);
    border-radius: 999px;
}

html[data-dashboard-theme] body .fm-product-section {
    padding: 26px 0 62px;
    border-bottom: 1px solid var(--fm-line);
    scroll-margin-top: 86px;
}

html[data-dashboard-theme] body .fm-collection-nav {
    position: sticky;
    top: 72px;
    z-index: 14;
    margin: 0 -1px 8px;
    padding: 10px 1px;
    overflow: hidden;
    background: color-mix(in srgb, var(--fm-canvas) 88%, transparent);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

html[data-dashboard-theme] body .fm-collection-nav-track {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

html[data-dashboard-theme] body .fm-collection-nav-track::-webkit-scrollbar {
    display: none;
}

html[data-dashboard-theme] body .fm-collection-nav-button {
    min-height: 35px;
    flex: 0 0 auto;
    padding: 0 12px;
    color: #777;
    font: inherit;
    font-size: 10px;
    font-weight: 570;
    white-space: nowrap;
    background: var(--fm-panel);
    border: 1px solid var(--fm-line);
    border-radius: 999px;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

html[data-dashboard-theme] body .fm-collection-nav-button:hover {
    color: var(--fm-ink);
    border-color: #c5c5c1;
}

html[data-dashboard-theme] body .fm-collection-nav-button.is-active {
    color: #fff;
    background: var(--fm-ink);
    border-color: var(--fm-ink);
}

html[data-dashboard-theme] body .dash-sec-head {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin: 0 0 20px;
}

html[data-dashboard-theme] body .dash-sec-head > div {
    min-width: 0;
}

html[data-dashboard-theme] body .dash-sec-bar {
    display: none;
}

html[data-dashboard-theme] body .dash-sec-title {
    margin: 4px 0 0;
    color: var(--fm-ink);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 590;
    line-height: 1.1;
    letter-spacing: -0.045em;
    text-transform: none;
}

html[data-dashboard-theme] body .dash-sec-line {
    height: 1px;
    margin-bottom: 6px;
    background: var(--fm-line);
}

html[data-dashboard-theme] body .fm-product-count {
    flex-shrink: 0;
    margin-bottom: 2px;
    padding: 6px 9px;
    color: #7f7f7f;
    font-size: 9px;
    font-weight: 570;
    background: #e9e9e6;
    border-radius: 999px;
}

html[data-dashboard-theme] body .dashboard-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px 14px;
    margin-bottom: 0;
}

html[data-dashboard-theme] body .dashboard-product-card {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-dashboard-theme] body .dashboard-product-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

html[data-dashboard-theme] body .dashboard-product-image-wrapper {
    height: auto;
    aspect-ratio: 1.34 / 1;
    padding: 16px;
    overflow: hidden;
    background: #e9e9e6;
    border: 1px solid rgba(17, 17, 17, 0.05);
    border-radius: 17px;
}

html[data-dashboard-theme] body .dashboard-product-image-wrapper::after {
    content: "\f00e";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--fm-ink);
    font-family: "Font Awesome 5 Free";
    font-size: 10px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 9px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

html[data-dashboard-theme] body .dashboard-product-card:hover .dashboard-product-image-wrapper::after {
    opacity: 1;
    transform: translateY(0);
}

html[data-dashboard-theme] body .dashboard-product-image {
    object-fit: contain;
    filter: saturate(0.94);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), filter 180ms ease;
}

html[data-dashboard-theme] body .dashboard-product-card:hover .dashboard-product-image {
    transform: scale(1.035);
    filter: saturate(1);
}

html[data-dashboard-theme] body .dashboard-product-info {
    padding: 12px 2px 0;
}

html[data-dashboard-theme] body .dashboard-product-title {
    min-height: 40px;
    margin: 0 0 7px;
    color: var(--fm-ink);
    font-size: 13px;
    font-weight: 590;
    line-height: 1.48;
    letter-spacing: -0.015em;
}

html[data-dashboard-theme] body .dashboard-product-title a {
    color: var(--fm-ink);
}

html[data-dashboard-theme] body .dashboard-product-title a:hover {
    color: #555;
}

html[data-dashboard-theme] body .dashboard-product-short-desc {
    min-height: 34px;
    margin-bottom: 10px;
    color: #7a7a7a;
    font-size: 10.5px;
    line-height: 1.55;
}

html[data-dashboard-theme] body .dashboard-price-current {
    gap: 5px;
    color: var(--fm-ink);
    font-size: 13px;
    font-weight: 630;
}

html[data-dashboard-theme] body .dashboard-price-old {
    color: #a0a0a0;
    font-size: 10px;
}

html[data-dashboard-theme] body .dashboard-price-unit {
    color: #8b8b8b;
    font-size: 10px;
}

html[data-dashboard-theme] body .dashboard-usd-price {
    margin: 8px 0 10px;
    padding: 8px 0 0;
    color: #9a9a9a;
    font-size: 9.5px;
    border-top-color: #d8d8d5;
}

html[data-dashboard-theme] body .dashboard-btn-view-detail {
    min-height: 37px;
    padding: 0 11px;
    color: var(--fm-ink);
    font-size: 10.5px;
    font-weight: 600;
    background: transparent;
    border: 1px solid #d4d4d0;
    border-radius: 10px;
}

html[data-dashboard-theme] body .dashboard-btn-view-detail:hover {
    color: #fff;
    background: var(--fm-ink);
    border-color: var(--fm-ink);
    box-shadow: none;
}

html[data-dashboard-theme] body .dashboard-card-ribbon {
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    color: #fff;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 0.05em;
    background: var(--fm-ink);
    border-radius: 8px;
    box-shadow: none;
}

html[data-dashboard-theme] body .image-overlay {
    background: rgba(10, 10, 10, 0.82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-dashboard-theme] body .image-overlay img {
    border-radius: 18px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

html[data-dashboard-theme] body .alert {
    padding: 18px;
    color: #656565;
    background: #ececea;
    border: 0;
    border-radius: 14px;
}

html[data-dashboard-theme] body .fm-reveal {
    opacity: 0;
    transform: translateY(16px);
}

html[data-dashboard-theme] body .fm-reveal.fm-is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------
   Popup and footer polish
------------------------------------------------------------- */

html[data-dashboard-theme] body .popup-overlay {
    background: rgba(17, 17, 17, 0.58);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-dashboard-theme] body .popup-content {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

html[data-dashboard-theme] body .popup-content img {
    border-radius: 20px;
}

html[data-dashboard-theme] body .close-btn {
    background: rgba(17, 17, 17, 0.74);
    border-color: rgba(255, 255, 255, 0.22);
}

html[data-dashboard-theme] body footer,
html[data-dashboard-theme] body .footer {
    background: transparent;
}

/* -------------------------------------------------------------
   Dark mode — override the legacy universal dark selector
------------------------------------------------------------- */

html[data-dashboard-theme="dark"] body,
html[data-dashboard-theme="dark"] body .main-content,
html[data-dashboard-theme="dark"] body .main-content-inner,
html[data-dashboard-theme="dark"] body .main-content-wrap,
html[data-dashboard-theme="dark"] body .section-content-right {
    --fm-ink: #f4f4f2;
    --fm-muted: #9c9c98;
    --fm-subtle: #777773;
    --fm-canvas: #121212;
    --fm-panel: #1b1b1b;
    --fm-soft: #272727;
    --fm-line: #30302f;
    background: var(--fm-canvas) !important;
    color: var(--fm-ink) !important;
}

html[data-dashboard-theme="dark"] body .header-dashboard,
html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left,
html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left > .box-logo {
    background: rgba(18, 18, 18, 0.9) !important;
    border-color: var(--fm-line) !important;
}

html[data-dashboard-theme="dark"] body .nav-search,
html[data-dashboard-theme="dark"] body .nav-pill,
html[data-dashboard-theme="dark"] body .nav-btn,
html[data-dashboard-theme="dark"] body .dashboard-card-item,
html[data-dashboard-theme="dark"] body .vip-progress-section .main-card,
html[data-dashboard-theme="dark"] body .kb-card,
html[data-dashboard-theme="dark"] body .category-filter-btn,
html[data-dashboard-theme="dark"] body .dashboard-product-image-wrapper,
html[data-dashboard-theme="dark"] body .fm-collection-meta span {
    background: var(--fm-panel) !important;
    border-color: var(--fm-line) !important;
    color: var(--fm-ink) !important;
}

html[data-dashboard-theme="dark"] body .nav-theme-btn,
html[data-dashboard-theme="dark"] body .nav-lang-btn {
    color: var(--fm-ink) !important;
    background: var(--fm-panel) !important;
    border-color: var(--fm-line) !important;
}

html[data-dashboard-theme="dark"] body .nav-search:focus-within {
    border-color: #525252 !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05) !important;
}

html[data-dashboard-theme="dark"] body .nav-avatar {
    color: #111 !important;
    background: #f2f2ef !important;
}

html[data-dashboard-theme="dark"] body .nav-dropdown {
    background: rgba(28, 28, 28, 0.96) !important;
    border-color: var(--fm-line) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38) !important;
}

html[data-dashboard-theme="dark"] body .nav-dropdown a:hover {
    background: #292929 !important;
}

html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a:hover,
html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item:not(.has-children) a.active,
html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children.active > a {
    background: #282828 !important;
}

html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a .text {
    color: #9b9b97 !important;
}

html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a .icon i {
    color: #858581 !important;
    -webkit-text-fill-color: #858581 !important;
}

html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a:hover .text,
html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a.active .text {
    color: #f4f4f2 !important;
}

html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left .bot .wrap {
    background: #f0f0ed !important;
}

html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left .bot .wrap h6,
html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left .bot .wrap .text {
    color: #111 !important;
}

html[data-dashboard-theme="dark"] body .layout-wrap .section-menu-left .bot .wrap .bot-btn {
    color: #fff !important;
    background: #111 !important;
}

html[data-dashboard-theme="dark"] body .nav-btn.primary,
html[data-dashboard-theme="dark"] body .category-filter-btn.active,
html[data-dashboard-theme="dark"] body .dashboard-btn-view-detail:hover {
    color: #111 !important;
    background: #f4f4f2 !important;
    border-color: #f4f4f2 !important;
}

html[data-dashboard-theme="dark"] body .fm-marketplace-hero {
    background: #080808 !important;
}

html[data-dashboard-theme="dark"] body .fm-marketplace-hero *,
html[data-dashboard-theme="dark"] body .banner *,
html[data-dashboard-theme="dark"] body .popup-content img,
html[data-dashboard-theme="dark"] body .dashboard-product-image {
    background: transparent !important;
}

html[data-dashboard-theme="dark"] body .dashboard-card-link:hover .dashboard-card-item,
html[data-dashboard-theme="dark"] body .kb-card:hover,
html[data-dashboard-theme="dark"] body .category-filter-btn:hover {
    background: #242424 !important;
    border-color: #353535 !important;
}

html[data-dashboard-theme="dark"] body .dashboard-card-icon,
html[data-dashboard-theme="dark"] body .dashboard-card-link:nth-child(n) .dashboard-card-icon,
html[data-dashboard-theme="dark"] body .category-filter-icon,
html[data-dashboard-theme="dark"] body .kb-chip,
html[data-dashboard-theme="dark"] body .fm-product-count {
    color: #d8d8d4 !important;
    background: #292929 !important;
}

html[data-dashboard-theme="dark"] body .category-filter-btn.active .category-filter-icon {
    color: #111 !important;
    background: rgba(17, 17, 17, 0.1) !important;
}

html[data-dashboard-theme="dark"] body .dashboard-product-card {
    background: transparent !important;
}

html[data-dashboard-theme="dark"] body .dashboard-product-image-wrapper {
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.055), transparent 48%),
        #202020 !important;
}

html[data-dashboard-theme="dark"] body .dashboard-product-image-wrapper::after {
    color: #111 !important;
    background: rgba(244, 244, 242, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-dashboard-theme="dark"] body .dashboard-btn-view-detail {
    color: #dededb !important;
    background: transparent !important;
    border-color: #3b3b39 !important;
}

html[data-dashboard-theme="dark"] body .dashboard-card-ribbon {
    color: #111 !important;
    background: #f4f4f2 !important;
}

html[data-dashboard-theme="dark"] body .fm-collection-nav {
    background: rgba(18, 18, 18, 0.88) !important;
}

html[data-dashboard-theme="dark"] body .fm-collection-nav-button {
    color: #9a9a96 !important;
    background: #1b1b1b !important;
    border-color: #30302f !important;
}

html[data-dashboard-theme="dark"] body .fm-collection-nav-button.is-active {
    color: #111 !important;
    background: #f4f4f2 !important;
    border-color: #f4f4f2 !important;
}

html[data-dashboard-theme="dark"] body .banner.bg-1 {
    background: linear-gradient(145deg, #171a2b 0%, #242b56 100%) !important;
}

html[data-dashboard-theme="dark"] body .banner.bg-2 {
    background: linear-gradient(145deg, #102427 0%, #16464d 100%) !important;
}

html[data-dashboard-theme="dark"] body .banner.bg-3 {
    background: linear-gradient(145deg, #12241f 0%, #1c4d40 100%) !important;
}

html[data-dashboard-theme="dark"] body .banner.bg-4 {
    background: linear-gradient(145deg, #20172e 0%, #462866 100%) !important;
}

html[data-dashboard-theme="dark"] body .banner.bg-5 {
    background: linear-gradient(145deg, #2e151d 0%, #662838 100%) !important;
}

html[data-dashboard-theme="dark"] body .banner.bg-6 {
    background: linear-gradient(145deg, #191919 0%, #2b2b2b 100%) !important;
}

html[data-dashboard-theme="dark"] body .banner .left,
html[data-dashboard-theme="dark"] body .banner .right,
html[data-dashboard-theme="dark"] body .banner h2,
html[data-dashboard-theme="dark"] body .banner p {
    background: transparent !important;
}

html[data-dashboard-theme="dark"] body .cta-btn {
    color: #111 !important;
    background: #f4f4f2 !important;
}

html[data-dashboard-theme="dark"] body .popup-content {
    background: #1b1b1b !important;
    border-color: #333 !important;
}

html[data-dashboard-theme="dark"] body .dashboard-card-label,
html[data-dashboard-theme="dark"] body .kb-mini,
html[data-dashboard-theme="dark"] body .kb-title,
html[data-dashboard-theme="dark"] body .dashboard-product-short-desc,
html[data-dashboard-theme="dark"] body .dashboard-usd-price,
html[data-dashboard-theme="dark"] body .fm-section-kicker,
html[data-dashboard-theme="dark"] body .fm-section-heading p,
html[data-dashboard-theme="dark"] body .category-filters-title p,
html[data-dashboard-theme="dark"] body .fm-collection-intro p {
    color: var(--fm-muted) !important;
}

/* -------------------------------------------------------------
   Responsive
------------------------------------------------------------- */

@media (max-width: 1500px) {
    html[data-dashboard-theme] body .dashboard-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    html[data-dashboard-theme] body .category-filters-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1240px) {
    html[data-dashboard-theme] body .dashboard-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-dashboard-theme] body .kb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-dashboard-theme] body .kb-welcome {
        grid-column: 1 / span 2;
    }

    html[data-dashboard-theme] body .fm-marketplace-hero {
        min-height: 390px;
        grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.65fr);
    }
}

@media (max-width: 991px) {
    html[data-dashboard-theme] body .header-dashboard {
        height: auto;
        min-height: 72px;
        padding: 10px 15px !important;
    }

    html[data-dashboard-theme] body .layout-wrap .section-content-right .main-content {
        padding-top: 88px;
        padding-left: 0;
    }

    html[data-dashboard-theme] body .layout-wrap .section-content-right .main-content .main-content-inner {
        padding: 20px 18px 36px;
    }

    html[data-dashboard-theme] body .nav-hero-actions {
        flex-wrap: nowrap;
    }

    html[data-dashboard-theme] body .nav-search {
        flex: 1 1 auto;
        min-width: 160px;
    }

    html[data-dashboard-theme] body .fm-marketplace-hero {
        min-height: 430px;
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    html[data-dashboard-theme] body .fm-hero-copy {
        padding: 42px;
    }

    html[data-dashboard-theme] body .dashboard-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    html[data-dashboard-theme] body .layout-wrap .section-content-right .main-content {
        padding-top: 132px;
    }

    html[data-dashboard-theme] body .nav-hero-bar {
        gap: 7px;
    }

    html[data-dashboard-theme] body .fm-collection-nav {
        top: 122px;
    }

    html[data-dashboard-theme] body .nav-hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 6px;
    }

    html[data-dashboard-theme] body .nav-search {
        width: 100%;
        max-width: none;
        grid-column: 1 / -1;
    }

    html[data-dashboard-theme] body .nav-pill {
        min-width: 0;
    }

    html[data-dashboard-theme] body .nav-avatar,
    html[data-dashboard-theme] body .nav-theme-btn,
    html[data-dashboard-theme] body .nav-lang-btn,
    html[data-dashboard-theme] body .nav-btn {
        height: 40px !important;
    }

    html[data-dashboard-theme] body .fm-marketplace-hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    html[data-dashboard-theme] body .fm-hero-copy {
        padding: 38px 28px 28px;
    }

    html[data-dashboard-theme] body .fm-marketplace-hero h1 {
        font-size: clamp(42px, 12vw, 66px);
    }

    html[data-dashboard-theme] body .fm-hero-aside {
        min-height: 240px;
    }

    html[data-dashboard-theme] body .fm-section-heading,
    html[data-dashboard-theme] body .fm-collection-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    html[data-dashboard-theme] body .fm-collection-meta {
        justify-content: flex-start;
    }

    html[data-dashboard-theme] body .dashboard-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-dashboard-theme] body .dashboard-card-item {
        min-height: 98px;
    }

    html[data-dashboard-theme] body .category-filters-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-dashboard-theme] body .category-filter-btn {
        min-height: 72px;
    }

    html[data-dashboard-theme] body .dashboard-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 11px;
    }

    html[data-dashboard-theme] body .dashboard-product-image-wrapper {
        height: auto;
        padding: 11px;
        border-radius: 14px;
    }

    html[data-dashboard-theme] body .dashboard-product-title {
        font-size: 11.5px;
    }

    html[data-dashboard-theme] body .dashboard-product-short-desc {
        display: none;
    }

    html[data-dashboard-theme] body .banner {
        height: 300px;
        min-height: 300px;
        padding: 28px;
    }

    html[data-dashboard-theme] body .banner .right {
        display: block;
        position: absolute;
        right: 20px;
        bottom: 18px;
        height: 42%;
        opacity: 0.52;
    }

    html[data-dashboard-theme] body .banner .left {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    html[data-dashboard-theme] body .layout-wrap .section-content-right .main-content .main-content-inner {
        padding: 14px 12px 30px;
    }

    html[data-dashboard-theme] body .nav-pill .pill-label {
        display: none;
    }

    html[data-dashboard-theme] body .nav-pill {
        justify-content: center;
    }

    html[data-dashboard-theme] body .fm-marketplace-hero {
        border-radius: 18px;
    }

    html[data-dashboard-theme] body .fm-hero-copy {
        padding: 32px 22px 24px;
    }

    html[data-dashboard-theme] body .fm-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    html[data-dashboard-theme] body .fm-button {
        width: 100%;
    }

    html[data-dashboard-theme] body .fm-availability {
        right: 16px;
        bottom: 16px;
        max-width: calc(100% - 32px);
    }

    html[data-dashboard-theme] body .fm-account-heading {
        margin-top: 38px;
    }

    html[data-dashboard-theme] body .dashboard-card-content {
        display: block;
    }

    html[data-dashboard-theme] body .dashboard-card-icon {
        margin-bottom: 12px;
    }

    html[data-dashboard-theme] body .dashboard-card-value {
        font-size: 13px;
    }

    html[data-dashboard-theme] body .kb-grid {
        grid-template-columns: 1fr;
    }

    html[data-dashboard-theme] body .kb-welcome {
        grid-column: auto;
    }

    html[data-dashboard-theme] body .category-filter-text {
        font-size: 10px;
    }

    html[data-dashboard-theme] body .category-filter-count {
        display: none;
    }

    html[data-dashboard-theme] body .dash-sec-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    html[data-dashboard-theme] body .dash-sec-head .dash-sec-line {
        width: 100%;
        flex-basis: 100%;
    }

    html[data-dashboard-theme] body .dashboard-btn-view-detail {
        font-size: 9px;
    }
}

@media (hover: none) {
    html[data-dashboard-theme] body .dashboard-product-image-wrapper::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-dashboard-theme] body *,
    html[data-dashboard-theme] body *::before,
    html[data-dashboard-theme] body *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* -------------------------------------------------------------
   Marketplace refinement — Framer-like density and product rhythm
------------------------------------------------------------- */

html[data-dashboard-theme] body {
    font-size: 13px;
    line-height: 1.45;
}

/* Compact, balanced top bar. The original rotating banners stay functional. */
html[data-dashboard-theme] body .header-dashboard {
    height: 64px;
    padding: 8px 20px !important;
}

html[data-dashboard-theme] body .nav-hero-bar {
    min-height: 47px;
    gap: 12px;
}

html[data-dashboard-theme] body .nav-banner-strip {
    display: block !important;
    width: clamp(240px, 21vw, 340px);
    min-width: 240px;
    max-width: 340px;
    flex: 0 1 340px;
    padding: 0;
    border: 1px solid var(--fm-line);
    border-radius: 10px;
    background: var(--fm-panel);
}

html[data-dashboard-theme] body .nav-banner-track {
    height: 44px;
    gap: 0;
}

html[data-dashboard-theme] body .nav-banner-item {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    color: var(--fm-ink);
    background: var(--fm-panel) !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
}

html[data-dashboard-theme] body .nav-banner-item:hover {
    transform: none;
    box-shadow: none;
}

html[data-dashboard-theme] body .nav-banner-item img {
    width: 100%;
    height: 44px;
    object-fit: cover;
}

html[data-dashboard-theme] body .nav-banner-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    color: #d8d8d4;
    font-size: 10px;
    background: #292929;
    border-radius: 7px;
}

html[data-dashboard-theme] body .nav-banner-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

html[data-dashboard-theme] body .nav-banner-copy small {
    overflow: hidden;
    color: #777773;
    font-size: 8px;
    font-weight: 550;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[data-dashboard-theme] body .nav-banner-copy strong {
    margin-top: 2px;
    overflow: hidden;
    color: #dededb;
    font-size: 10.5px;
    font-weight: 580;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[data-dashboard-theme] body .nav-banner-arrow {
    margin-left: auto;
    color: #696965;
    font-size: 8px;
}

html[data-dashboard-theme] body .nav-hero-actions {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
}

html[data-dashboard-theme] body .nav-theme-btn {
    display: none !important;
}

html[data-dashboard-theme] body .nav-language-wrap {
    position: relative;
    flex: 0 0 auto;
    z-index: 30;
}

html[data-dashboard-theme] body .nav-language-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 168px;
    display: none;
    padding: 6px;
    background: rgba(27, 27, 27, 0.98);
    border: 1px solid #353533;
    border-radius: 11px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-dashboard-theme] body .nav-language-menu.show {
    display: block;
}

html[data-dashboard-theme] body .nav-language-menu button {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 9px;
    color: #c8c8c4;
    font: inherit;
    font-size: 11px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

html[data-dashboard-theme] body .nav-language-menu button:hover {
    color: #f4f4f2;
    background: #292929;
}

html[data-dashboard-theme] body .nav-language-menu button span {
    width: 20px;
    font-size: 14px;
    text-align: center;
}

html[data-dashboard-theme] body .nav-search {
    min-width: 220px;
    max-width: 560px;
    height: 42px;
    flex: 1 1 360px;
    margin: 0 auto 0 0;
    border-radius: 10px;
}

html[data-dashboard-theme] body .nav-pill,
html[data-dashboard-theme] body .nav-btn,
html[data-dashboard-theme] body .nav-theme-btn,
html[data-dashboard-theme] body .nav-lang-btn,
html[data-dashboard-theme] body .nav-avatar {
    height: 42px !important;
    border-radius: 10px !important;
}

html[data-dashboard-theme] body .nav-lang-btn {
    width: 42px !important;
    padding: 0 !important;
    color: #bdbdb9 !important;
    font-size: 9px !important;
    font-weight: 650 !important;
}

html[data-dashboard-theme] body .nav-avatar {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

html[data-dashboard-theme] body .nav-avatar > img {
    width: 38px !important;
    height: 38px !important;
    display: block;
    object-fit: cover;
    border: 1px solid #353533;
    border-radius: 50% !important;
    box-shadow: none !important;
}

html[data-dashboard-theme] body .nav-avatar > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #151515;
    background: #f1f1ee;
    border-radius: 50%;
}

/* Sidebar: clearer brand, compact Framer-style navigation, no promo card. */
html[data-dashboard-theme] body .layout-wrap .section-menu-left {
    padding-top: 65px;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .box-logo {
    height: 64px;
    padding: 8px 14px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .box-logo a {
    min-width: 0;
    display: flex !important;
    align-items: center;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .box-logo h3,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .box-logo #logo_header {
    display: flex;
    align-items: center;
    margin: 0 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .box-logo img {
    width: 158px !important;
    max-width: 158px !important;
    max-height: 46px !important;
    opacity: 1 !important;
    filter: brightness(1.18) contrast(1.08);
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .box-logo .button-show-hide {
    width: 30px !important;
    height: 30px !important;
    color: #777773 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center {
    padding: 13px 12px 28px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item {
    margin: 0 0 14px !important;
    padding: 0 0 13px;
    border-bottom: 1px solid var(--fm-line);
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item:first-child::before {
    content: "Khám phá";
    display: block;
    margin: 0 8px 8px;
    color: #777773;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item:last-child {
    border-bottom: 0;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .center-heading {
    margin: 0 8px 8px !important;
    padding: 0 !important;
    color: #777773 !important;
    font-size: 9px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.08em;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item {
    margin: 1px 0 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a {
    min-height: 34px;
    padding: 4px 8px !important;
    gap: 8px !important;
    border-radius: 8px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a .icon {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    background: transparent !important;
    border-radius: 6px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a .icon i {
    color: #777773 !important;
    font-size: 11px !important;
    -webkit-text-fill-color: #777773 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a .text {
    color: #a7a7a3 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a:hover,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item:not(.has-children) a.active,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children.active > a {
    background: #252525 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a:hover .text,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a.active .text,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children.active > a .text {
    color: #f4f4f2 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a:hover .icon i,
html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item a.active .icon i {
    color: #d5d5d1 !important;
    -webkit-text-fill-color: #d5d5d1 !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children::after {
    top: 12px !important;
    right: 9px !important;
    color: #686864 !important;
    font-size: 9px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children .sub-menu {
    margin: 4px 0 5px !important;
    padding-left: 33px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children .sub-menu::before {
    left: 20px !important;
    background: #30302f !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children .sub-menu a {
    min-height: 30px;
    padding: 5px 8px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left > .center .center-item .menu-list .menu-item.has-children .sub-menu a .text {
    color: #858581 !important;
    font-size: 11px !important;
}

html[data-dashboard-theme] body .layout-wrap .section-menu-left .bot {
    display: none !important;
}

/* Remove the external floating chat on this marketplace screen. */
html[data-dashboard-theme] body #crisp-chatbox,
html[data-dashboard-theme] body .crisp-client {
    display: none !important;
}

/* Typography hierarchy: fewer jumps between oversized and tiny labels. */
html[data-dashboard-theme] body .fm-marketplace-hero h1 {
    max-width: 760px;
    font-size: clamp(44px, 4.4vw, 68px);
    line-height: 0.98;
}

html[data-dashboard-theme] body .fm-marketplace-hero p {
    font-size: 13px;
}

html[data-dashboard-theme] body .fm-section-heading h2,
html[data-dashboard-theme] body .category-filters-title h2,
html[data-dashboard-theme] body .fm-collection-intro h2 {
    font-size: clamp(22px, 1.8vw, 29px);
}

html[data-dashboard-theme] body .dash-sec-title {
    font-size: clamp(21px, 1.7vw, 28px);
}

html[data-dashboard-theme] body .fm-section-heading p,
html[data-dashboard-theme] body .category-filters-title p,
html[data-dashboard-theme] body .fm-collection-intro p {
    font-size: 12px;
}

/* Product gallery: four wide visual cards, concise metadata, hover action. */
html[data-dashboard-theme] body .dashboard-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 34px 16px;
}

html[data-dashboard-theme] body .dashboard-product-card {
    position: relative;
    min-width: 0;
}

html[data-dashboard-theme] body .dashboard-product-image-wrapper {
    aspect-ratio: 1.42 / 1;
    padding: 14px;
    background: #1b1b1b !important;
    border: 1px solid #30302f !important;
    border-radius: 15px;
    transition: border-color 180ms ease, background 180ms ease;
}

html[data-dashboard-theme] body .dashboard-product-card:hover .dashboard-product-image-wrapper {
    background: #202020 !important;
    border-color: #3a3a38 !important;
}

html[data-dashboard-theme] body .dashboard-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

html[data-dashboard-theme] body .dashboard-product-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    column-gap: 8px;
    padding: 10px 1px 0;
}

html[data-dashboard-theme] body .dashboard-product-title {
    grid-column: 1 / -1;
    min-height: 0;
    display: block;
    margin: 0 0 3px;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 610;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[data-dashboard-theme] body .dashboard-product-title a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[data-dashboard-theme] body .dashboard-product-short-desc {
    display: none;
}

html[data-dashboard-theme] body .dashboard-product-price {
    min-width: 0;
}

html[data-dashboard-theme] body .dashboard-price-current {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    color: #b9b9b5;
    font-size: 11px;
    font-weight: 530;
}

html[data-dashboard-theme] body .dashboard-price-current strong {
    color: #b9b9b5;
    font-weight: 540;
}

html[data-dashboard-theme] body .dashboard-price-old {
    font-size: 9px;
}

html[data-dashboard-theme] body .dashboard-price-unit {
    color: #777773;
    font-size: 9.5px;
}

html[data-dashboard-theme] body .dashboard-usd-price {
    margin: 0;
    padding: 0;
    color: #777773 !important;
    font-size: 9.5px;
    white-space: nowrap;
    border: 0;
}

html[data-dashboard-theme] body .dashboard-product-action {
    position: static;
    grid-column: 3;
    width: auto;
    margin: 0 !important;
    opacity: 1;
    transform: none;
}

html[data-dashboard-theme] body .dashboard-btn-view-detail {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 0;
    color: #777773 !important;
    font-size: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

html[data-dashboard-theme] body .dashboard-btn-view-detail:hover {
    color: #f1f1ee !important;
    background: #262626 !important;
    border-color: transparent !important;
}

html[data-dashboard-theme] body .dashboard-btn-view-detail i {
    margin: 0 !important;
    font-size: 16px;
}

html[data-dashboard-theme] body .dashboard-product-image-wrapper::after {
    display: none;
}

html[data-dashboard-theme] body .dashboard-card-ribbon {
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    color: #151515 !important;
    font-size: 7.5px;
    background: rgba(244, 244, 242, 0.94) !important;
    border-radius: 7px;
}

@media (max-width: 1280px) {
    html[data-dashboard-theme] body .nav-banner-strip {
        width: 230px;
        min-width: 210px;
        flex-basis: 230px;
    }

    html[data-dashboard-theme] body .dashboard-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    html[data-dashboard-theme] body .header-dashboard {
        min-height: 64px;
        padding: 8px 14px !important;
    }

    html[data-dashboard-theme] body .nav-banner-strip {
        display: none !important;
    }

    html[data-dashboard-theme] body .layout-wrap .section-content-right .main-content {
        padding-top: 78px;
    }
}

@media (max-width: 767px) {
    html[data-dashboard-theme] body .dashboard-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 26px 11px;
    }

}

@media (max-width: 430px) {
    html[data-dashboard-theme] body .dashboard-products-grid {
        grid-template-columns: 1fr !important;
    }
}
