:root {
    --ms-home-brand: #2563eb;
    --ms-home-brand-dark: #1d4ed8;
    --ms-home-brand-soft: #eff6ff;
    --ms-home-accent: #7c3aed;
    --ms-home-bg: #f4f7fb;
    --ms-home-surface: #ffffff;
    --ms-home-text: #0f172a;
    --ms-home-muted: #64748b;
    --ms-home-border: #e2e8f0;
    --ms-home-border-soft: #edf2f7;
    --ms-home-success: #059669;
    --ms-home-danger: #e11d48;
    --ms-home-radius: 20px;
    --ms-home-shadow:
        0 1px 2px rgba(15, 23, 42, .03),
        0 12px 34px rgba(15, 23, 42, .045);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ms-home-bg);
    color: var(--ms-home-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

.ms-home,
.ms-home * {
    box-sizing: border-box;
}

.ms-home {
    min-height: 100vh;
    padding-bottom: 48px;
    position: relative;
    overflow: clip;
}

.ms-home__ambient {
    height: 520px;
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 20% 0,
            rgba(37, 99, 235, .12),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 4%,
            rgba(124, 58, 237, .08),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #f8fbff 0,
            rgba(244, 247, 251, 0) 100%
        );
}

/* Hero e benefícios */

.ms-home-hero,
.ms-home-features {
    position: relative;
    z-index: 2;
}

.ms-home-features {
    z-index: 5;
    margin-bottom: 28px;
}

.ms-home-hero {
    overflow: visible;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
    padding: 1px 0 0;
}

.ms-home-hero .hero-img-container {
    width: 100%;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    background: #e9eef7;
}

.ms-home-hero .hero-img-container img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
}

.ms-home-hero .hero-img-container::after {
    content: "";
    height: 76px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, .28),
            transparent
        );
}

.ms-home-hero .heroSwiper .swiper-pagination {
    bottom: 14px !important;
}

.ms-home-hero .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    opacity: .55;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .12);
}

.ms-home-hero .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 99px;
    opacity: 1;
}

/* Seções */

.ms-home-sections {
    width: min(1220px, calc(100% - 32px));
    margin: 22px auto 0;
    position: relative;
    z-index: 3;
    display: grid;
    gap: 20px;
}

.ms-home-section {
    min-width: 0;
    content-visibility: visible;
    contain: none;
    contain-intrinsic-size: auto;
}

.elite-card-container {
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ms-home-border-soft) !important;
    border-top-width: 1px !important;
    border-radius: var(--ms-home-radius) !important;
    background: var(--ms-home-surface);
    box-shadow: var(--ms-home-shadow);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.elite-card-container:hover {
    border-color: #dbe3ee !important;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, .03),
        0 20px 48px rgba(15, 23, 42, .07);
}

.elite-card-container > div:first-child {
    min-height: 70px;
    padding: 17px 22px !important;
    position: relative;
    border-bottom: 1px solid var(--ms-home-border-soft) !important;
    background:
        linear-gradient(
            180deg,
            #fff,
            #fcfdff
        );
}

.elite-card-container > div:first-child::before {
    content: "";
    width: 4px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 0;
    border-radius: 0 8px 8px 0;
    background:
        linear-gradient(
            180deg,
            var(--ms-home-brand),
            var(--ms-home-accent)
        );
    transform: translateY(-50%);
}

.elite-card-container h2 {
    color: var(--ms-home-text) !important;
    font-size: clamp(15px, 2vw, 19px) !important;
    font-weight: 850 !important;
    letter-spacing: -.025em !important;
}

.elite-card-container > div:nth-child(2) {
    padding: 15px 18px 18px !important;
}

.swiper {
    min-width: 0;
}

.swiper-slide {
    height: auto;
}

.swiper-button-lock,
.swiper-nav-glass.is-hidden {
    display: none !important;
}

.swiper-nav-glass {
    width: 43px;
    height: 43px;
    padding: 0;
    position: absolute;
    top: 50%;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 50%;
    color: #475569;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .13);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        opacity .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.group\/nav:hover .swiper-nav-glass,
.swiper-nav-glass:focus-visible {
    opacity: 1;
}

.swiper-nav-glass:hover {
    color: #fff;
    background: var(--ms-home-brand);
    border-color: var(--ms-home-brand);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .26);
    transform: translateY(-50%) scale(1.04);
}

.swiper-nav-glass:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 3px;
}

.glass-left {
    left: 8px;
}

.glass-right {
    right: 8px;
}

/* Busca */

.ms-search {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 26px;
    position: relative;
    z-index: 3;
}

.ms-search__header {
    min-height: 104px;
    margin-bottom: 18px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--ms-home-radius);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--ms-home-shadow);
    backdrop-filter: blur(18px);
}

.ms-search__heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ms-search__back {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ms-home-border);
    border-radius: 13px;
    color: #475569;
    background: #fff;
    text-decoration: none;
    transition: .18s ease;
}

.ms-search__back:hover {
    color: #fff;
    background: var(--ms-home-brand);
    border-color: var(--ms-home-brand);
    transform: translateX(-2px);
}

.ms-search__eyebrow {
    display: block;
    color: var(--ms-home-brand);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.ms-search__heading h1 {
    margin: 5px 0 0;
    color: var(--ms-home-text);
    font-size: clamp(19px, 3vw, 28px);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -.035em;
}

.ms-search__heading h1 strong {
    color: var(--ms-home-brand);
    font-weight: 900;
}

.ms-search__heading p {
    margin: 7px 0 0;
    color: var(--ms-home-muted);
    font-size: 12px;
    font-weight: 650;
}

.ms-search__sort {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ms-search__sort label {
    color: var(--ms-home-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.ms-search__sort select {
    min-width: 176px;
    height: 43px;
    padding: 0 37px 0 13px;
    border: 1px solid var(--ms-home-border);
    border-radius: 12px;
    color: #334155;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    outline: none;
    cursor: pointer;
}

.ms-search__sort select:focus {
    border-color: var(--ms-home-brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

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

.ms-search-grid__item {
    min-width: 0;
    height: 100%;
}

.ms-search-state {
    max-width: 760px;
    margin: 36px auto 0;
    padding: 52px 28px;
    text-align: center;
    border: 1px solid var(--ms-home-border-soft);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--ms-home-shadow);
}

.ms-search-state__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--ms-home-brand);
    background: var(--ms-home-brand-soft);
    font-size: 25px;
}

.ms-search-state h2 {
    margin: 0;
    color: var(--ms-home-text);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.025em;
}

.ms-search-state p {
    max-width: 520px;
    margin: 10px auto 0;
    color: var(--ms-home-muted);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 600;
}

.ms-search-state__form {
    max-width: 520px;
    margin: 24px auto 0;
    display: flex;
    gap: 9px;
}

.ms-search-state__form input {
    min-width: 0;
    height: 48px;
    flex: 1;
    padding: 0 15px;
    border: 1px solid var(--ms-home-border);
    border-radius: 13px;
    color: var(--ms-home-text);
    background: #fff;
    font-size: 13px;
    font-weight: 650;
    outline: none;
}

.ms-search-state__form input:focus {
    border-color: var(--ms-home-brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.ms-search-state__form button,
.ms-search-state__actions a {
    min-height: 46px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ms-home-border);
    border-radius: 13px;
    color: #334155;
    background: #fff;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
}

.ms-search-state__form button,
.ms-search-state__actions a.is-primary {
    color: #fff;
    background: var(--ms-home-brand);
    border-color: var(--ms-home-brand);
}

.ms-search-state__form button:hover,
.ms-search-state__actions a.is-primary:hover {
    background: var(--ms-home-brand-dark);
    border-color: var(--ms-home-brand-dark);
}

.ms-search-state__actions {
    margin-top: 23px;
    display: flex;
    justify-content: center;
    gap: 9px;
}

/* Paginação */

.ms-pagination {
    margin-top: 24px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--ms-home-border-soft);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.ms-pagination a {
    text-decoration: none;
}

.ms-pagination__control {
    min-height: 39px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--ms-home-border);
    border-radius: 11px;
    color: #475569;
    background: #fff;
    font-size: 10px;
    font-weight: 850;
    transition: .18s ease;
}

.ms-pagination__control:hover:not(.is-disabled) {
    color: var(--ms-home-brand);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.ms-pagination__control.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.ms-pagination__pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ms-pagination__pages a,
.ms-pagination__ellipsis {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
}

.ms-pagination__pages a:hover {
    color: var(--ms-home-brand);
    background: #eff6ff;
}

.ms-pagination__pages a.is-active {
    color: #fff;
    background: var(--ms-home-brand);
    box-shadow: 0 7px 16px rgba(37, 99, 235, .22);
}

/* Aparição progressiva. Sem JavaScript, o conteúdo continua visível. */

.ms-home-section {
    opacity: 1;
    transform: none;
}

.ms-js .ms-home-section,
.ms-js .ms-home-section.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
}

.ms-home-component-error {
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    color: #991b1b;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 650;
}

@media (min-width: 640px) {
    .ms-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 13px;
    }
}

@media (min-width: 768px) {
    .swiper-nav-glass {
        display: flex;
    }

    .elite-card-container > div:nth-child(2) {
        padding: 18px 22px 22px !important;
    }
}

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

@media (min-width: 1280px) {
    .glass-left {
        left: -21px;
    }

    .glass-right {
        right: -21px;
    }
}

@media (max-width: 767px) {
    .ms-home {
        padding-bottom: 30px;
    }

    .ms-home-sections,
    .ms-search {
        width: min(100% - 20px, 1220px);
    }

    .ms-home-sections {
        margin-top: 10px;
        gap: 11px;
    }

    .elite-card-container {
        border-radius: 16px !important;
    }

    .elite-card-container > div:first-child {
        min-height: 58px;
        padding: 13px 15px !important;
    }

    .elite-card-container > div:nth-child(2) {
        padding: 11px 10px 14px !important;
    }

    .ms-search {
        padding-top: 12px;
    }

    .ms-search__header {
        padding: 15px;
        align-items: stretch;
        flex-direction: column;
        border-radius: 17px;
    }

    .ms-search__back {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .ms-search__sort {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .ms-search__sort select {
        width: 100%;
    }

    .ms-search-state {
        margin-top: 15px;
        padding: 38px 18px;
        border-radius: 20px;
    }

    .ms-search-state__form,
    .ms-search-state__actions {
        flex-direction: column;
    }

    .ms-search-state__form button,
    .ms-search-state__actions a {
        width: 100%;
    }

    .ms-pagination {
        padding: 9px;
    }

    .ms-pagination__control {
        width: 39px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .ms-pagination__control i {
        font-size: 10px;
    }

    .ms-pagination__pages a,
    .ms-pagination__ellipsis {
        width: 31px;
        height: 31px;
    }
}

@media (max-width: 410px) {
    .ms-pagination__pages a:not(.is-active):nth-child(n+4),
    .ms-pagination__ellipsis {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ms-home *,
    .ms-home *::before,
    .ms-home *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .ms-home-section {
        opacity: 1;
        transform: none;
    }
}

/* ========================================================================== 
   MAXSOFT MARKETPLACE COMPONENTS v31
   ========================================================================== */

.ms-market-section {
    --market-accent: #2563eb;
    --market-soft: #eff6ff;
}

.ms-market-section[data-market-accent="blue"] {
    --market-accent: #2563eb;
    --market-soft: #eff6ff;
}

.ms-market-section[data-market-accent="violet"] {
    --market-accent: #7c3aed;
    --market-soft: #f5f3ff;
}

.ms-market-section[data-market-accent="emerald"] {
    --market-accent: #059669;
    --market-soft: #ecfdf5;
}

.ms-market-section[data-market-accent="rose"] {
    --market-accent: #e11d48;
    --market-soft: #fff1f2;
}

.ms-market-section[data-market-accent="orange"] {
    --market-accent: #ea580c;
    --market-soft: #fff7ed;
}

.ms-market-section[data-market-accent="amber"] {
    --market-accent: #d97706;
    --market-soft: #fffbeb;
}

.ms-market-section[data-market-accent="indigo"] {
    --market-accent: #4f46e5;
    --market-soft: #eef2ff;
}

.ms-market-section > .ms-market-head {
    min-height: 82px;
    padding: 17px 22px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--ms-home-border-soft) !important;
    background:
        radial-gradient(
            circle at 96% 0,
            color-mix(in srgb, var(--market-accent) 8%, transparent),
            transparent 190px
        ),
        linear-gradient(180deg, #fff, #fcfdff);
}

.ms-market-section > .ms-market-head::before {
    background: var(--market-accent) !important;
}

.ms-market-head__main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.ms-market-head__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--market-accent) 13%, #fff);
    border-radius: 14px;
    color: var(--market-accent);
    background: var(--market-soft);
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.ms-market-head__copy {
    min-width: 0;
}

.ms-market-head__eyebrow {
    display: block;
    color: var(--market-accent);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.25px;
}

.ms-market-head__copy h2 {
    margin: 3px 0 0 !important;
    color: var(--ms-home-text) !important;
    line-height: 1.16;
}

.ms-market-head__copy p {
    margin: 5px 0 0;
    overflow: hidden;
    color: #748196;
    font-size: 10px;
    line-height: 1.45;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-market-head__link {
    min-height: 39px;
    padding: 0 13px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--ms-home-border);
    border-radius: 11px;
    color: #475569;
    background: #fff;
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .55px;
    transition: .18s ease;
}

.ms-market-head__link:hover {
    color: #fff;
    border-color: var(--market-accent);
    background: var(--market-accent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--market-accent) 20%, transparent);
}

.ms-market-head__link i {
    font-size: 8px;
    transition: transform .18s ease;
}

.ms-market-head__link:hover i {
    transform: translateX(2px);
}

.ms-market-body {
    padding: 16px 20px 20px !important;
    position: relative;
}

.ms-market-body .swiper {
    padding: 2px 1px 4px;
}

/* Promoções */

.ms-market-section--promo .ms-market-head {
    flex-wrap: wrap;
}

.ms-market-promo-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ms-market-discount,
.ms-market-countdown {
    min-height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.ms-market-discount {
    color: #fff;
    background: var(--market-accent);
    box-shadow: 0 8px 16px color-mix(in srgb, var(--market-accent) 24%, transparent);
}

.ms-market-countdown {
    min-width: 133px;
    color: #475569;
    border: 1px solid var(--ms-home-border);
    background: #fff;
}

.ms-market-countdown.is-ended {
    color: #be123c;
    border-color: #fecdd3;
    background: #fff1f2;
}

/* Termos mais buscados */

.ms-market-trends {
    padding: 10px 20px 0;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ms-market-trends::-webkit-scrollbar {
    display: none;
}

.ms-market-trends a {
    min-height: 31px;
    padding: 0 10px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #c2410c;
    background: #fff7ed;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    transition: .18s ease;
}

.ms-market-trends a:hover {
    color: #fff;
    border-color: #ea580c;
    background: #ea580c;
}

/* Marcas */

.ms-market-brands .swiper-wrapper {
    align-items: stretch;
}

.ms-market-brand {
    height: 100%;
    min-height: 154px;
    padding: 14px 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ms-home-border-soft);
    border-radius: 16px;
    color: #334155;
    background: linear-gradient(180deg, #fff, #f8fafc);
    text-align: center;
    text-decoration: none;
    transition: .2s ease;
}

.ms-market-brand:hover {
    border-color: #bfdbfe;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
    transform: translateY(-3px);
}

.ms-market-brand__logo {
    width: 75px;
    height: 75px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eef2f7;
    border-radius: 17px;
    background: #fff;
}

.ms-market-brand__logo img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    filter: saturate(.86);
    transition: .2s ease;
}

.ms-market-brand:hover .ms-market-brand__logo img {
    filter: saturate(1);
    transform: scale(1.045);
}

.ms-market-brand__initials {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: linear-gradient(145deg, #eff6ff, #eef2ff);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .5px;
}

.ms-market-brand strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-market-brand small {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 750;
}

/* Redes sociais */

.ms-market-social-grid {
    padding: 18px 20px 21px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.ms-market-social {
    min-width: 0;
    min-height: 104px;
    padding: 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    overflow: hidden;
    border: 1px solid var(--ms-home-border-soft);
    border-radius: 16px;
    color: #334155;
    background: linear-gradient(145deg, #fff, #f8fafc);
    text-decoration: none;
    transition: .2s ease;
}

.ms-market-social:hover {
    border-color: color-mix(in srgb, var(--social-color, #2563eb) 28%, #fff);
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    transform: translateY(-3px);
}

.ms-market-social[data-social-accent="instagram"] {
    --social-color: #db2777;
    --social-soft: #fdf2f8;
}

.ms-market-social[data-social-accent="tiktok"] {
    --social-color: #0f172a;
    --social-soft: #f1f5f9;
}

.ms-market-social[data-social-accent="youtube"] {
    --social-color: #dc2626;
    --social-soft: #fef2f2;
}

.ms-market-social[data-social-accent="whatsapp"] {
    --social-color: #16a34a;
    --social-soft: #f0fdf4;
}

.ms-market-social__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--social-color);
    background: var(--social-soft);
    font-size: 19px;
}

.ms-market-social__copy {
    min-width: 0;
    flex: 1;
}

.ms-market-social__copy small,
.ms-market-social__copy strong,
.ms-market-social__copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-market-social__copy small {
    color: var(--social-color);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.ms-market-social__copy strong {
    margin-top: 3px;
    color: #1e293b;
    font-size: 10px;
    font-weight: 850;
}

.ms-market-social__copy span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 650;
}

.ms-market-social__arrow {
    color: #cbd5e1;
    font-size: 9px;
}

.ms-market-social:hover .ms-market-social__arrow {
    color: var(--social-color);
}

/* Vídeos */

.ms-market-videos .swiper-slide {
    width: 176px;
}

.ms-market-video-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ms-home-border-soft);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .05);
    transition: .22s ease;
}

.ms-market-video-card:hover {
    border-color: #fecdd3;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
    transform: translateY(-4px);
}

.ms-market-video-card__media {
    aspect-ratio: 9 / 15.7;
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.ms-market-video-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease, opacity .3s ease;
}

.ms-market-video-card:hover .ms-market-video-card__media img {
    transform: scale(1.045);
}

.ms-market-video-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, .04),
        transparent 45%,
        rgba(15, 23, 42, .72)
    );
}

.ms-market-video-card__play {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, .28);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
    transition: .2s ease;
}

.ms-market-video-card:hover .ms-market-video-card__play {
    color: #e11d48;
    background: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

.ms-market-video-card__play i {
    margin-left: 3px;
}

.ms-market-video-card__duration {
    padding: 5px 8px;
    position: absolute;
    top: 10px;
    left: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .55);
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
    backdrop-filter: blur(8px);
}

.ms-market-video-card__content {
    padding: 12px;
}

.ms-market-video-card__content h3 {
    min-height: 32px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #1e293b;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 850;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ms-market-video-card__content p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 700;
}

.ms-market-video-actions {
    margin-top: 11px;
    padding-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-top: 1px solid #f1f5f9;
}

.ms-market-video-actions button {
    min-width: 0;
    min-height: 33px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #edf2f7;
    border-radius: 9px;
    color: #64748b;
    background: #f8fafc;
    font-size: 7px;
    font-weight: 850;
    cursor: pointer;
    transition: .18s ease;
}

.ms-market-video-actions button:hover {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

.ms-market-video-actions button.is-liked {
    color: #fff;
    border-color: #e11d48;
    background: #e11d48;
}

.ms-market-toast {
    max-width: min(360px, calc(100vw - 24px));
    padding: 12px 14px;
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    color: #1e3a8a;
    background: rgba(239, 246, 255, .97);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
    font-size: 10px;
    font-weight: 800;
    transform: translateY(12px);
    transition: .2s ease;
    backdrop-filter: blur(14px);
}

.ms-market-toast.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .ms-market-social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ms-market-section > .ms-market-head {
        min-height: 68px;
        padding: 13px 14px !important;
        align-items: flex-start;
    }

    .ms-market-head__icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 12px;
        font-size: 14px;
    }

    .ms-market-head__copy p {
        max-width: 68vw;
        font-size: 8px;
    }

    .ms-market-head__link {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0;
    }

    .ms-market-head__link i {
        font-size: 9px;
    }

    .ms-market-body {
        padding: 11px 10px 14px !important;
    }

    .ms-market-promo-summary {
        width: 100%;
        justify-content: flex-start;
        padding-left: 52px;
    }

    .ms-market-countdown,
    .ms-market-discount {
        min-height: 31px;
        font-size: 7px;
    }

    .ms-market-trends {
        padding: 8px 10px 0;
    }

    .ms-market-brand {
        min-height: 133px;
        padding: 10px 8px;
        border-radius: 13px;
    }

    .ms-market-brand__logo {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }

    .ms-market-social-grid {
        padding: 11px 10px 14px;
        gap: 8px;
    }

    .ms-market-social {
        min-height: 89px;
        padding: 10px;
        gap: 8px;
        border-radius: 13px;
    }

    .ms-market-social__icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 12px;
        font-size: 17px;
    }

    .ms-market-social__copy span {
        display: none;
    }

    .ms-market-videos .swiper-slide {
        width: 153px;
    }

    .ms-market-video-card {
        border-radius: 15px;
    }

    .ms-market-video-actions {
        grid-template-columns: 1fr;
    }

    .ms-market-video-actions button:last-child {
        display: none;
    }
}

@media (max-width: 410px) {
    .ms-market-social-grid {
        grid-template-columns: 1fr;
    }
}


/* Ajustes finos v31 */
@media (hover: hover) and (pointer: fine) {
    .elite-card-container:hover {
        transform: translateY(-1px);
    }
}

.ms-home img {
    max-width: 100%;
}

.ms-home a,
.ms-home button,
.ms-home select,
.ms-home input {
    -webkit-tap-highlight-color: transparent;
}

.ms-home :focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 3px;
}

@supports not (content-visibility: auto) {
    .ms-home-section {
        content-visibility: visible;
    }
}


@media (max-width: 767px) {
    .ms-home-sections {
        width: min(100% - 20px, 1220px);
        margin-top: 18px;
        gap: 16px;
    }
}


/* MAXSOFT v34.5 - correção de renderização inicial */
.ms-home-section,
.ms-js .ms-home-section,
.ms-js .ms-home-section.is-visible {
    content-visibility: visible !important;
    contain: none !important;
    contain-intrinsic-size: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
