.baf-painel {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    min-width: 0;
    box-sizing: border-box;
}

.baf-painel > .baf-tab-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.baf-painel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.baf-painel-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.baf-painel-header__status-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.baf-painel-tour-replay {
    font-size: 13px;
    padding: 5px 12px;
    line-height: 1.2;
    border-radius: 999px;
}

.baf-painel-logout {
    font-size: 13px;
    padding: 6px 14px;
}

.baf-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.baf-tabs-shell {
    margin-bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.baf-tabs-shell .baf-tab,
.baf-tabs-shell .baf-tab__label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.baf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: none;
    margin-bottom: 0;
    padding: 12px;
}

.baf-tabs .baf-tab:not(.baf-tab--destaque) {
    flex: 1 1 0;
    min-width: 0;
}

.baf-tab-cta-wrap {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0 12px 12px;
    box-sizing: border-box;
}

.baf-tab-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #c45c26 0%, #e91e63 100%);
    box-shadow: 0 4px 14px rgba(196, 92, 38, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.baf-tab-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.baf-tab-cta__icon svg,
.baf-tab__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.baf-tab-cta__icon svg {
    width: 18px;
    height: 18px;
}

.baf-tab-cta:hover,
.baf-tab-cta:focus-visible {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(196, 92, 38, 0.45);
}

.baf-tab-cta:active {
    transform: translateY(1px);
}

.baf-tab-cta.is-active {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45), 0 4px 14px rgba(196, 92, 38, 0.35);
}

.baf-tab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 88px;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
    line-height: 1.25;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.baf-tab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.baf-tab__label {
    display: block;
    max-width: 100%;
    padding: 0 2px;
    word-break: break-word;
}

.baf-tab:hover {
    color: #334155;
    background: rgba(0, 0, 0, 0.03);
}

.baf-tab:hover .baf-tab__icon {
    background: rgba(0, 0, 0, 0.08);
    color: #334155;
}

.baf-tab.is-active {
    color: #be185d;
    background: rgba(233, 30, 99, 0.08);
}

.baf-tab.is-active .baf-tab__icon {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.35);
    transform: translateY(-2px) scale(1.04);
}

.baf-tab--destaque {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 14px 20px;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #c45c26 0%, #e91e63 100%);
    box-shadow: 0 4px 14px rgba(196, 92, 38, 0.35);
    border-radius: 12px;
}

.baf-tab--destaque .baf-tab__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.baf-tab--destaque .baf-tab__label {
    font-size: 13px;
    font-weight: 800;
}

.baf-tab--destaque:hover {
    color: #fff;
    background: linear-gradient(135deg, #d06a30 0%, #f02870 100%);
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(196, 92, 38, 0.45);
}

.baf-tab--destaque:hover .baf-tab__icon {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: none;
}

.baf-tab--destaque.is-active {
    color: #fff;
    background: linear-gradient(135deg, #c45c26 0%, #e91e63 100%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45), 0 4px 14px rgba(196, 92, 38, 0.35);
}

.baf-tab--destaque.is-active .baf-tab__icon {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.baf-tab:focus-visible {
    outline: 2px solid rgba(233, 30, 99, 0.45);
    outline-offset: 2px;
}

.baf-tab-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 0;
    padding: 0 6px;
    border-radius: 999px;
    background: #f59e0b;
    color: #451a03;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
    animation: baf-tab-badge-pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.45);
}

.baf-tabs-shell + .baf-tab-panel {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Carrossel de abas (mobile) */
.baf-tabs-carousel {
    display: block;
}

.baf-tabs-carousel__viewport {
    min-width: 0;
}

.baf-tabs-carousel__btn {
    display: none;
}

.baf-tabs-scroll-hint {
    display: none;
}

@media (max-width: 768px) {
    .baf-tabs-carousel {
        display: flex;
        align-items: stretch;
        gap: 4px;
        padding: 0 4px;
    }

    .baf-tabs-carousel__viewport {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        position: relative;
    }

    .baf-tabs-carousel__viewport::before,
    .baf-tabs-carousel__viewport::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 18px;
        z-index: 2;
        pointer-events: none;
    }

    .baf-tabs-carousel__viewport::before {
        left: 0;
        background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
    }

    .baf-tabs-carousel__viewport::after {
        right: 0;
        background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
    }

    .baf-tabs-carousel__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 32px;
        margin: 10px 0;
        padding: 0;
        appearance: none;
        border: none;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.05);
        color: #64748b;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .baf-tabs-carousel__btn svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .baf-tabs-carousel__btn:hover,
    .baf-tabs-carousel__btn:focus-visible {
        background: rgba(233, 30, 99, 0.12);
        color: #be185d;
    }

    .baf-tabs-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        padding: 0 12px 10px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--baf-muted, #9c4a6f);
        text-align: center;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .baf-tabs-scroll-hint[hidden],
    .baf-tabs-scroll-hint.is-dismissed {
        display: none !important;
    }

    .baf-tabs-scroll-hint__icon {
        display: inline-flex;
        flex-shrink: 0;
        animation: baf-tabs-scroll-hint-nudge 1.6s ease-in-out infinite;
    }

    .baf-tabs-scroll-hint__icon svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    @keyframes baf-tabs-scroll-hint-nudge {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(4px); }
    }

    .baf-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 10px 8px;
    }

    .baf-tabs::-webkit-scrollbar {
        display: none;
    }

    .baf-tabs .baf-tab:not(.baf-tab--destaque) {
        flex: 0 0 auto;
        min-width: 76px;
        max-width: 88px;
        scroll-snap-align: center;
    }

    .baf-tab {
        min-height: 80px;
        padding: 8px 4px;
        font-size: 10px;
    }

    .baf-tab__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .baf-tab__icon svg {
        width: 20px;
        height: 20px;
    }

    .baf-tab--destaque {
        flex: 0 0 auto;
        min-width: 132px;
        max-width: none;
        flex-direction: row;
        padding: 12px 14px;
        gap: 10px;
        scroll-snap-align: center;
    }

    .baf-tab--destaque .baf-tab__icon {
        width: 32px;
        height: 32px;
    }

    .baf-tab--destaque .baf-tab__label {
        font-size: 11px;
        white-space: nowrap;
    }

    .baf-tabs .baf-tab.baf-tab--destaque[data-baf-tab="lancar-vendas"] {
        display: none !important;
    }

    .baf-tab-cta-wrap:not([hidden]) {
        display: block;
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        z-index: 50;
        padding: 0;
        margin: 0;
    }

    .baf-tab-cta-wrap[hidden] {
        display: none !important;
    }

    .baf-painel[data-baf-tabs] > .baf-tab-panel[data-baf-panel="inicio"].is-active {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}

@keyframes baf-tab-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.baf-tab-panel[hidden] {
    display: none !important;
}

.baf-painel[data-baf-tabs] > .baf-tab-panel:not(.is-active) {
    display: none !important;
}

.baf-painel[data-baf-tabs] > .baf-tab-panel.is-active {
    display: block;
}

.baf-tab-panel {
    min-width: 0;
    padding: 20px 16px 8px;
}

.baf-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.baf-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 20px;
    border: 1px solid transparent;
}

.baf-kpi-value {
    font-size: 24px;
    font-weight: 700;
}

.baf-kpi-label {
    font-size: 13px;
}

.baf-bloco {
    padding: 20px;
    border: 1px solid transparent;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.baf-bloco h3 {
    margin: 0 0 14px;
    font-size: 17px;
    font-family: var(--baf-font-serif);
    font-style: italic;
    color: var(--baf-pink-deep);
}

.baf-copy-row {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

.baf-copy-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
}

.baf-codigo {
    margin: 12px 0 0;
}

.baf-resumo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.baf-resumo-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.baf-resumo-label {
    font-size: 12px;
}

.baf-resumo-value {
    font-size: 15px;
    font-weight: 600;
}

.baf-resumo-nota {
    margin: 12px 0 0;
    font-size: 12px;
}

.baf-bloco-aviso p {
    margin: 0;
}

.baf-locked-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.baf-locked-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed transparent;
    border-radius: 10px;
}

.baf-lock {
    font-size: 16px;
    opacity: 0.7;
}

.baf-bloco-desc {
    margin: 0 0 14px;
    font-size: 13px;
}

.baf-gerador-carousel-section {
    margin-bottom: 18px;
}

.baf-gerador-carousel-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
}

.baf-gerador-carousel-loading,
.baf-gerador-carousel-empty {
    margin: 0 0 12px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
}

.baf-gerador-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.baf-gerador-carousel-viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.baf-gerador-carousel {
    display: flex;
    gap: 12px;
    padding: 4px 2px 10px;
}

.baf-gerador-carousel-nav {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: #fff;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.baf-gerador-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.04);
}

.baf-gerador-product {
    flex: 0 0 148px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.baf-gerador-product__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.baf-gerador-product__img--placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.baf-gerador-product__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.baf-gerador-product:hover {
    border-color: rgba(233, 30, 99, 0.35);
}

.baf-gerador-product.is-active {
    border-color: var(--baf-accent, #e91e63);
    box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.15);
}

.baf-gerador-manual-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
}

.baf-catalogo-virtual__actions {
    margin: 12px 0 0;
}

.baf-catalogo-virtual,
.baf-gerador,
.baf-catalogo-virtual .baf-copy-row,
.baf-gerador .baf-copy-row,
.baf-gerador-result,
.baf-gerador-bottom {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.baf-gerador-result {
    margin-top: 16px;
}

.baf-gerador-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
    margin-top: 14px;
}

.baf-qr {
    width: 148px;
    height: 148px;
    flex: 0 0 auto;
    border-radius: 10px;
    padding: 6px;
    background: var(--baf-surface);
}

.baf-qr img,
.baf-qr canvas,
.baf-qr svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.baf-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.baf-share-label {
    width: 100%;
    font-size: 13px;
}

.baf-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.baf-share-wa { background: #25d366; }
.baf-share-tg { background: #229ed9; }
.baf-share-fb { background: #1877f2; }
.baf-share-x { background: #111827; }
.baf-share-btn:hover { opacity: 0.9; }

.baf-grafico-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 12px;
}

.baf-grafico-header h3 {
    margin: 0;
}

.baf-grafico-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.baf-legenda-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #880e4f;
}

.baf-legenda-total {
    font-size: 14px;
    font-weight: 800;
    color: #d81b60;
}

.baf-legenda-cor {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.baf-grafico-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding-top: 4px;
}

.baf-grafico-svg {
    display: block;
    width: 100%;
    height: auto;
    min-width: 100%;
    min-height: 200px;
}

.baf-grafico-grid {
    stroke: rgba(136, 14, 79, 0.1);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.baf-grafico-axis {
    stroke: rgba(136, 14, 79, 0.28);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.baf-grafico-axis-y,
.baf-grafico-axis-x {
    font-size: 10px;
    fill: rgba(136, 14, 79, 0.72);
    font-family: system-ui, -apple-system, sans-serif;
}

.baf-grafico-hit {
    fill: transparent;
    cursor: pointer;
}

.baf-grafico-day.is-hover .baf-bar-cliques,
.baf-grafico-day.is-hover .baf-bar-vendas {
    opacity: 1;
    filter: brightness(1.05);
}

.baf-grafico-tooltip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    min-width: 148px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(233, 30, 99, 0.22);
    box-shadow: 0 8px 24px rgba(136, 14, 79, 0.14);
    font-size: 12px;
    line-height: 1.45;
    color: #880e4f;
    transform: translate(-50%, -100%);
}

.baf-grafico-tooltip[hidden] {
    display: none !important;
}

.baf-grafico-tooltip__date {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #d81b60;
}

.baf-grafico-tooltip__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.baf-grafico-tooltip__row + .baf-grafico-tooltip__row {
    margin-top: 4px;
}

.baf-grafico-tooltip__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 6px;
}

.baf-grafico-tooltip__dot--cliques {
    background: #e91e63;
}

.baf-grafico-tooltip__dot--vendas {
    background: #ff8c00;
}

.baf-grafico-tooltip__value {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.baf-tabela-wrap {
    width: 100%;
    overflow-x: auto;
}

.baf-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.baf-tabela th,
.baf-tabela td {
    padding: 10px 12px;
    text-align: left;
}

.baf-tabela th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.baf-tabela tbody tr:last-child td {
    border-bottom: none;
}

/* Tabelas do painel (Lançar vendas, Links de venda) */
.baf-table,
.baf-lancar-venda-table,
.baf-link-venda-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.baf-table th,
.baf-table td,
.baf-lancar-venda-table th,
.baf-lancar-venda-table td,
.baf-link-venda-table th,
.baf-link-venda-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

.baf-table th,
.baf-lancar-venda-table th,
.baf-link-venda-table th {
    font-weight: 700;
    font-size: 13px;
}

.baf-lancar-venda-list-view,
.baf-lancar-venda-wizard,
.baf-lancar-venda-form,
.baf-lancar-venda-wizard-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.baf-lancar-venda-list-view {
    overflow-x: auto;
}

.baf-wc-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.baf-wc-status-hint {
    display: block;
    margin-top: 4px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 12px;
    line-height: 1.35;
    max-width: 220px;
}

.baf-wc-status--pending {
    background: #fff3cd;
    color: #856404;
}

.baf-wc-status--processing {
    background: #cce5ff;
    color: #004085;
}

.baf-wc-status--on-hold {
    background: #ffe8cc;
    color: #9a5200;
}

.baf-wc-status--completed {
    background: #d4edda;
    color: #155724;
}

.baf-wc-status--cancelled,
.baf-wc-status--failed {
    background: #f8d7da;
    color: #721c24;
}

.baf-wc-status--refunded {
    background: #e2e3e5;
    color: #383d41;
}

.baf-lv-order-status-legend {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.baf-lv-order-status-legend__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
}

.baf-lv-order-status-legend__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.baf-lv-order-status-legend__list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 13px;
}

.baf-lv-order-status-legend__hint {
    color: rgba(0, 0, 0, 0.6);
    flex: 1 1 200px;
}

@media (min-width: 768px) {
    .baf-lv-order-status-legend__list {
        grid-template-columns: 1fr 1fr;
    }
}

.baf-tab-panel .baf-bloco.baf-lancar-venda {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Aba Ajuda */
.baf-ajuda__hero {
    margin-bottom: 20px;
}

.baf-ajuda-contato__subtitle {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--baf-maroon, #880e4f);
    font-family: var(--baf-font-sans);
    font-style: normal;
}

.baf-ajuda-contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.baf-ajuda-contato-card {
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fce4ec 0%, #fff8f5 55%, rgba(255, 204, 188, 0.35) 100%);
    border: 1px solid rgba(233, 30, 99, 0.18);
}

.baf-ajuda-contato-card__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(136, 14, 79, 0.75);
    margin-bottom: 6px;
}

.baf-ajuda-contato-card__value {
    font-size: 16px;
    font-weight: 600;
    color: #880e4f;
    text-decoration: none;
    word-break: break-word;
}

a.baf-ajuda-contato-card__value:hover,
a.baf-ajuda-contato-card__value:focus-visible {
    text-decoration: underline;
}

.baf-ajuda-contato-card__value--codigo {
    display: inline-block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #d81b60;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
}

.baf-ajuda-contato-card__hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(136, 14, 79, 0.7);
}

.baf-ajuda-contato-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.baf-ajuda-wa-btn {
    background: #25d366;
    border-color: #25d366;
}

.baf-ajuda-wa-btn:hover,
.baf-ajuda-wa-btn:focus-visible {
    background: #1ebe57;
    border-color: #1ebe57;
}

.baf-ajuda-faq-list {
    display: grid;
    gap: 10px;
}

.baf-ajuda-faq-section + .baf-ajuda-faq-section {
    margin-top: 24px;
}

.baf-ajuda-faq-section__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.82);
}

.baf-ajuda-faq-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.baf-ajuda-faq-item__question {
    padding: 14px 40px 14px 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.baf-ajuda-faq-item__question::-webkit-details-marker {
    display: none;
}

.baf-ajuda-faq-item__question::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #e91e63;
}

.baf-ajuda-faq-item[open] .baf-ajuda-faq-item__question::after {
    content: "−";
}

.baf-ajuda-faq-item__answer {
    padding: 0 16px 14px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.72);
}

.baf-ajuda-faq-item__answer p {
    margin: 0;
}

@media (max-width: 640px) {
    .baf-ajuda-contato-actions .baf-btn {
        width: 100%;
        justify-content: center;
    }
}

.baf-empty {
    text-align: center;
    padding: 18px;
}

.baf-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(252, 228, 236, 0.8);
    color: var(--baf-maroon);
}

.baf-valor-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.baf-valor-venda {
    font-weight: 600;
}

.baf-valor-comissao {
    font-size: 12px;
    color: #6b7280;
}

.baf-status-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 280px;
}

.baf-regra-cell {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    max-width: 220px;
}

.baf-regra-list {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.45;
    max-width: 220px;
}

.baf-regra-list li + li {
    margin-top: 4px;
}

.baf-status-hint {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}

.baf-vendas-legenda {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(252, 228, 236, 0.25);
}

.baf-vendas-legenda__titulo {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
}

.baf-vendas-legenda__lista {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.55;
    color: #4b5563;
}

.baf-vendas-legenda__lista li + li {
    margin-top: 6px;
}

.baf-badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.baf-badge-processing {
    background: #dbeafe;
    color: #1e40af;
}

.baf-badge-on-hold {
    background: #ffedd5;
    color: #9a3412;
}

.baf-badge-completed {
    background: #dcfce7;
    color: #166534;
}

.baf-badge-cancelled,
.baf-badge-refunded,
.baf-badge-failed {
    background: #fee2e2;
    color: #991b1b;
}

.baf-materiais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.baf-material {
    min-width: 0;
}

.baf-material__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, #fff 0%, #fffaf8 100%);
    border: 1px solid rgba(233, 30, 99, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(136, 14, 79, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.baf-material__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(136, 14, 79, 0.12);
}

.baf-material__header {
    padding: 16px 16px 0;
}

.baf-material-titulo {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #880e4f;
}

.baf-material-img {
    margin: 14px 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fce4ec;
    border: 1px solid rgba(233, 30, 99, 0.1);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baf-material-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.baf-material-media {
    border-radius: 12px;
    overflow: hidden;
}

.baf-material-media--video {
    margin: 14px 16px 0;
    background: #111;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.baf-material-video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
    max-height: 420px;
}

.baf-material__texto-wrap {
    padding: 14px 16px 0;
    flex: 1;
}

.baf-material__texto-preview {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #5c3a4a;
    white-space: pre-wrap;
    word-break: break-word;
}

.baf-material__copy {
    margin-top: 0;
}

.baf-material__copy .baf-material-texto {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.baf-material__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(233, 30, 99, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

.baf-material__btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: min(100%, 200px);
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
    font-weight: 600;
}

.baf-material__btn-wa:hover,
.baf-material__btn-wa:focus-visible {
    background: #1ebe57 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
}

.baf-material__btn-wa-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.baf-material__btn-download {
    flex: 0 0 auto;
}

.baf-material-texto {
    resize: vertical;
}

@media (max-width: 480px) {
    .baf-materiais-grid {
        grid-template-columns: 1fr;
    }

    .baf-material__actions {
        flex-direction: column;
    }

    .baf-material__btn-wa,
    .baf-material__btn-download {
        width: 100%;
        justify-content: center;
    }
}

.baf-btn-sm {
    align-self: flex-start;
    padding: 7px 14px;
    font-size: 13px;
}

.baf-pagamento-travado__aviso {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
}

.baf-pagamento-travado__aviso p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.baf-pagamento-travado__aviso .baf-lock {
    flex-shrink: 0;
    line-height: 1.4;
}

.baf-pagamento-alteracao .baf-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.baf-pagamento-alteracao .baf-field-wide {
    grid-column: 1 / -1;
}

.baf-pagamento-alteracao .baf-field span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.baf-pagamento-alteracao .baf-field input,
.baf-pagamento-alteracao .baf-field select {
    width: 100%;
    box-sizing: border-box;
}

.baf-pagamento-pendente {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
}

.baf-form-msg.is-error {
    color: #b42318;
}

.baf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.baf-btn-secondary {
    background: transparent;
}

.baf-link-venda-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.baf-link-venda-list-wrap {
    margin-bottom: 32px;
}

.baf-link-venda-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.baf-link-venda-list-header h3 {
    margin: 0;
}

.baf-link-venda-create-wrap {
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.baf-link-venda-create-wrap > h3 {
    margin-top: 0;
}

.baf-link-venda-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.baf-link-venda-product {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.baf-link-venda-product__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.baf-link-venda-product__img--placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.baf-link-venda-product__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
}

.baf-link-venda-product__body strong {
    font-size: 13px;
    line-height: 1.35;
}

.baf-link-venda-product__price {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}

.baf-link-venda-product:hover {
    border-color: var(--baf-accent, #2563eb);
}

.baf-link-venda-product.is-in-cart {
    border-color: var(--baf-accent, #2563eb);
    box-shadow: inset 0 0 0 1px var(--baf-accent, #2563eb);
}

.baf-link-venda-cart-wrap {
    margin: 20px 0;
}

.baf-lv-cart-panel {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fafafa;
    padding: 16px;
    overflow: hidden;
}

.baf-lv-cart-panel .baf-link-venda-cart-title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    font-weight: 600;
}

.baf-lv-cart-panel .baf-link-venda-cart-empty {
    margin: 0;
    padding: 20px 12px;
    text-align: center;
    font-size: 14px;
    opacity: 0.75;
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}

.baf-lv-cart-panel .baf-link-venda-cart {
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.baf-lv-cart-panel .baf-link-venda-cart-item {
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.baf-lv-cart-panel .baf-link-venda-cart-item:last-child {
    border-bottom: none;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__img,
.baf-lv-cart-panel .baf-link-venda-cart-item__img--placeholder {
    width: 64px;
    height: 64px;
    border-radius: 10px;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__qty {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__qty span {
    opacity: 0.7;
    white-space: nowrap;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__qty input {
    width: 64px;
    min-width: 64px;
    padding: 6px 8px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 14px;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--baf-accent, #2563eb);
    white-space: nowrap;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__remove {
    align-self: center;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    opacity: 0.65;
    transition: background 0.15s, opacity 0.15s;
}

.baf-lv-cart-panel .baf-link-venda-cart-item__remove:hover {
    opacity: 1;
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.baf-link-venda-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.baf-link-venda-cart-footer__count {
    opacity: 0.75;
}

.baf-link-venda-cart-footer__subtotal {
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .baf-lv-cart-panel .baf-link-venda-cart-item {
        grid-template-columns: 52px 1fr auto;
        gap: 10px;
        padding: 12px;
    }

    .baf-lv-cart-panel .baf-link-venda-cart-item__img,
    .baf-lv-cart-panel .baf-link-venda-cart-item__img--placeholder {
        width: 52px;
        height: 52px;
    }

    .baf-lv-cart-panel .baf-link-venda-cart-item__meta {
        flex-wrap: wrap;
    }
}

.baf-link-venda-cart-title {
    margin: 0 0 10px;
    font-size: 15px;
}

.baf-link-venda-cart-empty {
    margin: 0;
    font-size: 14px;
    opacity: 0.75;
}

.baf-link-venda-cart {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.baf-link-venda-cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
}

.baf-link-venda-cart-item__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f3f4f6;
}

.baf-link-venda-cart-item__img--placeholder {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.baf-link-venda-cart-item__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.baf-link-venda-cart-item__name {
    font-size: 14px;
    line-height: 1.35;
}

.baf-link-venda-cart-item__variation,
.baf-link-venda-cart-item__qty,
.baf-link-venda-cart-item__summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.baf-link-venda-cart-item__summary {
    opacity: 0.8;
}

.baf-link-venda-cart-item__variation select,
.baf-link-venda-cart-item__qty input {
    width: 100%;
    box-sizing: border-box;
}

.baf-link-venda-picker {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.baf-link-venda-picker[hidden] {
    display: none !important;
}

.baf-link-venda-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.baf-link-venda-picker__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: min(90vh, 560px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.baf-link-venda-picker__title {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.baf-link-venda-picker__attrs {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.baf-link-venda-picker__attr select,
.baf-link-venda-picker__qty input {
    width: 100%;
    box-sizing: border-box;
}

.baf-link-venda-picker__price {
    margin: 0 0 12px;
    font-weight: 600;
}

.baf-link-venda-picker__loading {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.75;
}

.baf-link-venda-picker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.baf-link-venda-cart-item__remove {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.55;
    padding: 0 4px;
}

.baf-link-venda-cart-item__remove:hover {
    opacity: 1;
}

.baf-link-venda-checkout {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.baf-link-venda-form-actions,
.baf-link-venda-selected {
    margin-top: 12px;
}

.baf-link-venda-selected .baf-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.75;
}

.baf-link-venda-selected select {
    width: 100%;
    box-sizing: border-box;
}

.baf-link-venda-table {
    width: 100%;
    margin-top: 12px;
}

.baf-link-venda-table td .baf-copy-row {
    min-width: 220px;
}

/* Cupons unitários para clientes */
.baf-cupons-cliente {
    margin-bottom: 0;
}

/* Loading padronizado — listas do painel (cupons, pedidos, links) */
.baf-panel-loading {
    margin: 16px 0 8px;
    padding: 20px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(252, 228, 236, 0.45) 0%, rgba(255, 248, 245, 0.9) 100%);
    border: 1px solid rgba(233, 30, 99, 0.12);
}

.baf-panel-loading[hidden] {
    display: none !important;
}

.baf-panel-loading__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.baf-panel-loading__spinner {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(233, 30, 99, 0.18);
    border-top-color: var(--baf-pink, #e91e63);
    border-radius: 50%;
    animation: baf-panel-loading-spin 0.75s linear infinite;
}

.baf-panel-loading__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--baf-maroon, #880e4f);
}

.baf-panel-loading__skeleton {
    display: grid;
    gap: 10px;
}

.baf-panel-loading__skeleton-row {
    display: grid;
    gap: 10px;
    align-items: center;
}

.baf-panel-loading--cols-5 .baf-panel-loading__skeleton-row {
    grid-template-columns: 1.2fr 1.5fr 0.9fr 0.9fr 1.1fr;
}

.baf-panel-loading--cols-6 .baf-panel-loading__skeleton-row {
    grid-template-columns: 1.1fr 1.4fr 1fr 0.9fr 0.8fr 1fr;
}

.baf-panel-loading__bar {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(233, 30, 99, 0.08) 0%,
        rgba(233, 30, 99, 0.16) 45%,
        rgba(233, 30, 99, 0.08) 90%
    );
    background-size: 200% 100%;
    animation: baf-panel-loading-shimmer 1.35s ease-in-out infinite;
}

.baf-panel-loading__skeleton-row:nth-child(2) .baf-panel-loading__bar {
    animation-delay: 0.12s;
}

.baf-panel-loading__skeleton-row:nth-child(3) .baf-panel-loading__bar {
    animation-delay: 0.24s;
}

.baf-panel-loading__skeleton-row:nth-child(4) .baf-panel-loading__bar {
    animation-delay: 0.36s;
}

.baf-panel-loading__skeleton-row .baf-panel-loading__bar:first-child {
    height: 14px;
}

.baf-panel-loading__skeleton-row .baf-panel-loading__bar:last-child {
    max-width: 88px;
    justify-self: end;
}

@keyframes baf-panel-loading-spin {
    to { transform: rotate(360deg); }
}

@keyframes baf-panel-loading-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 768px) {
    .baf-panel-loading__skeleton {
        display: none;
    }

    .baf-panel-loading__inner {
        margin-bottom: 0;
    }
}

.baf-cupons-cliente-table-wrap {
    margin-top: 12px;
}

.baf-cupons-cliente-table code {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.baf-cupons-cliente-table tbody tr.is-pendente {
    background: color-mix(in srgb, #f59e0b 8%, #fff);
}

.baf-cupons-cliente-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-width: 180px;
}

.baf-badge-pendente {
    background: #fef3c7;
    color: #92400e;
}

.baf-badge-ativo {
    background: #dcfce7;
    color: #166534;
}

/* Alerta de cupom pendente — aba Início */
.baf-cupom-alerta {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 20px 22px 18px;
    border: 2px solid #f59e0b;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 48%, #fff7ed 100%);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.18);
    animation: baf-cupom-alerta-enter 0.45s ease-out;
}

@keyframes baf-cupom-alerta-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.baf-cupom-alerta__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, transparent 70%);
    pointer-events: none;
    animation: baf-cupom-alerta-glow 3s ease-in-out infinite;
}

@keyframes baf-cupom-alerta-glow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.baf-cupom-alerta__header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.baf-cupom-alerta__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fbbf24;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    animation: baf-cupom-alerta-icon 2.4s ease-in-out infinite;
}

@keyframes baf-cupom-alerta-icon {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

.baf-cupom-alerta__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b45309;
}

.baf-cupom-alerta__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #78350f;
}

.baf-cupom-alerta__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #92400e;
}

.baf-cupom-alerta__lista {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.baf-cupom-alerta__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.baf-cupom-alerta__item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 220px;
}

.baf-cupom-alerta__cliente {
    font-size: 1rem;
    color: #451a03;
}

.baf-cupom-alerta__beneficio,
.baf-cupom-alerta__codigo,
.baf-cupom-alerta__validade {
    font-size: 0.88rem;
    color: #92400e;
}

.baf-cupom-alerta__codigo code {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #b45309;
}

.baf-cupom-alerta__aceitar {
    flex-shrink: 0;
    min-width: 148px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.baf-cupom-alerta__mais {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: #92400e;
}

.baf-cupom-alerta__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.baf-cupom-alerta.is-hidden {
    display: none;
}

/* Rodapé — termo assinado */
.baf-painel-rodape {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.baf-painel-rodape__credit {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.7;
}

.baf-painel-rodape__credit a {
    color: inherit;
    text-decoration: underline;
}

.baf-painel-rodape__credit a:hover,
.baf-painel-rodape__credit a:focus {
    opacity: 1;
}

.baf-cadastro-termo {
    margin-top: 0;
}

.baf-cadastro-termo__action {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}

.baf-termo-open-btn,
.baf-termo-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.baf-termo-open-btn__icon,
.baf-termo-pdf-btn__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(233, 30, 99, 0.1);
    color: #be185d;
}

.baf-termo-open-btn__icon svg,
.baf-termo-pdf-btn__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.baf-termo-open-btn:hover .baf-termo-open-btn__icon,
.baf-termo-open-btn:focus-visible .baf-termo-open-btn__icon,
.baf-termo-pdf-btn:hover .baf-termo-pdf-btn__icon,
.baf-termo-pdf-btn:focus-visible .baf-termo-pdf-btn__icon {
    background: rgba(233, 30, 99, 0.16);
    color: #9d174d;
}

.baf-termo-open-btn__label,
.baf-termo-pdf-btn__label {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .baf-cadastro-termo__action {
        flex-direction: column;
        align-items: stretch;
    }

    .baf-termo-open-btn,
    .baf-termo-pdf-btn {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Modal do termo */
.baf-termo-modal[hidden] {
    display: none !important;
}

.baf-termo-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.baf-termo-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.baf-termo-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(85vh, 720px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.baf-termo-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 0;
}

.baf-termo-modal__header h3 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.35;
}

.baf-termo-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.baf-termo-modal__close:hover,
.baf-termo-modal__close:focus {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.baf-termo-modal__meta {
    margin: 8px 20px 0;
    font-size: 13px;
    opacity: 0.75;
}

.baf-termo-modal__body {
    margin: 16px 20px 20px;
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.baf-termo-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px;
}

.baf-termo-download {
    margin: 0 0 12px;
}

body.baf-termo-modal-open {
    overflow: hidden;
}

/* Lançar vendas */
.baf-lancar-venda-list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.baf-lancar-venda-list-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--baf-maroon, #880e4f);
}

.baf-lancar-venda-wizard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.baf-lv-modalidade-cards {
    display: grid;
    gap: 12px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .baf-lv-modalidade-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.baf-lv-modalidade-card {
    display: block;
    cursor: pointer;
}

.baf-lv-modalidade-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.baf-lv-modalidade-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    min-height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.baf-lv-modalidade-card input:checked + .baf-lv-modalidade-card__body,
.baf-lv-modalidade-card__body:hover {
    border-color: var(--baf-accent, #c45c26);
    box-shadow: 0 0 0 1px var(--baf-accent, #c45c26);
}

.baf-lv-modalidade-card input:disabled + .baf-lv-modalidade-card__body {
    opacity: 0.55;
    cursor: not-allowed;
}

.baf-lv-cliente-resumo {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

.baf-lv-catalog-filters {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 12px 16px;
    margin-bottom: 12px;
    align-items: end;
}

@media (max-width: 560px) {
    .baf-lv-catalog-filters {
        grid-template-columns: 1fr;
    }
}

.baf-lv-catalog-filters select {
    width: 100%;
}

.baf-lancar-venda [data-baf-lv-address-fields].is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.baf-lancar-venda-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
}

.baf-lancar-venda-catalog .baf-link-venda-product {
    position: relative;
}

.baf-lancar-venda-catalog .baf-link-venda-product.is-in-cart {
    border-color: var(--baf-pink, #e91e63);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.25);
}

.baf-lancar-venda-catalog .baf-link-venda-product__qty-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--baf-pink, #e91e63) 0%, var(--baf-pink-deep, #c2185b) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.45);
    pointer-events: none;
}

.baf-lv-shipping-rates {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.baf-lv-shipping-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    cursor: pointer;
}

.baf-lv-totals {
    margin: 16px 0;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.baf-lv-review-dl {
    display: grid;
    grid-template-columns: minmax(120px, 30%) 1fr;
    gap: 8px 16px;
    margin: 0 0 20px;
    width: 100%;
    max-width: 100%;
}

.baf-lv-review,
.baf-lv-result {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.baf-lv-result {
    margin: 16px 0;
    padding: 16px;
    border-radius: 10px;
    background: rgba(46, 125, 50, 0.08);
}

.baf-lv-review-dl dt {
    margin: 0;
    font-weight: 600;
    opacity: 0.75;
}

.baf-lv-review-dl dd {
    margin: 0;
}

.baf-lv-review-dl__dd-products {
    grid-column: 1 / -1;
    margin-top: -2px;
    padding-bottom: 4px;
}

.baf-lv-review-products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.baf-lv-review-product {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
}

.baf-lv-review-product__img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f3f4f6;
}

.baf-lv-review-product__img--placeholder {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.baf-lv-review-product__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.baf-lv-review-product__name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.baf-lv-review-product__variation {
    font-size: 12px;
    opacity: 0.75;
    line-height: 1.3;
}

.baf-lv-review-product__qty {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.85;
}

.baf-lv-review-products-empty {
    opacity: 0.6;
}

.baf-lv-result .baf-copy-row {
    margin-bottom: 12px;
}

.baf-lv-result .baf-btn-secondary {
    width: 100%;
    justify-content: center;
}

.baf-lv-result__ok {
    margin: 0 0 12px;
    font-weight: 600;
}

.baf-lv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Wizard — Lançar vendas (layout + fallback se baf-adesao.css não carregar) */
.baf-lancar-venda .baf-wizard-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.baf-lancar-venda .baf-wizard-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 120px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.3;
    border: none;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: default;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.baf-lancar-venda .baf-wizard-step-indicator.is-reachable {
    cursor: pointer;
}

.baf-lancar-venda .baf-wizard-step-indicator.is-reachable:hover {
    filter: brightness(0.97);
}

.baf-lancar-venda .baf-wizard-step-indicator.is-current {
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.35);
}

.baf-lancar-venda .baf-wizard-step-indicator:disabled {
    opacity: 1;
}

.baf-lancar-venda .baf-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    flex: 0 0 auto;
}

.baf-lancar-venda .baf-step-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}

.baf-lancar-venda .baf-wizard-panel {
    display: none;
    animation: baf-lv-fade 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.baf-lancar-venda .baf-wizard-form {
    width: 100%;
    max-width: 100%;
}

.baf-lancar-venda .baf-wizard-panel.is-current {
    display: block;
}

@keyframes baf-lv-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.baf-lancar-venda .baf-panel-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.baf-lancar-venda .baf-wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.baf-lancar-venda .baf-wizard-nav .baf-btn:only-child {
    margin-left: auto;
}

.baf-lancar-venda .baf-step-feedback {
    margin-top: 12px;
    font-size: 14px;
    min-height: 18px;
}

.baf-lancar-venda .baf-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.baf-lancar-venda .baf-field-wide {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .baf-lancar-venda .baf-field-grid {
        grid-template-columns: 1fr;
    }

    .baf-lv-review-dl {
        grid-template-columns: 1fr;
    }

    .baf-lv-review-dl dt {
        margin-top: 4px;
    }

    .baf-lv-review-dl dt:first-child {
        margin-top: 0;
    }

    .baf-lancar-venda .baf-wizard-step-indicator {
        flex: 1 1 calc(33.333% - 8px);
        flex-direction: column;
        text-align: center;
        padding: 10px 6px;
    }

    .baf-lancar-venda .baf-step-label {
        font-size: 11px;
        font-weight: 600;
    }
}

@media (max-width: 420px) {
    .baf-lancar-venda .baf-step-label {
        display: none;
    }
}

.baf-lancar-venda .baf-wizard-panel[hidden] {
    display: none !important;
}

.baf-lancar-venda .baf-wizard-panel.is-current {
    display: block;
}

/* ——— Painel responsivo ——— */
@media (max-width: 768px) {
    .baf-painel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 18px;
    }

    .baf-painel-header h2 {
        width: 100%;
        text-align: center;
    }

    .baf-painel-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .baf-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 20px;
    }

    .baf-kpi-value {
        font-size: 20px;
    }

    .baf-bloco {
        padding: 16px;
        margin-bottom: 16px;
    }

    .baf-resumo-grid {
        grid-template-columns: 1fr;
    }

    .baf-pagamento-alteracao .baf-field-grid {
        grid-template-columns: 1fr;
    }

    .baf-link-venda-catalog,
    .baf-lancar-venda-catalog {
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    }

    .baf-lancar-venda-list-header,
    .baf-link-venda-list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .baf-lancar-venda-list-header .baf-btn,
    .baf-link-venda-list-header .baf-btn {
        width: 100%;
        justify-content: center;
    }

    .baf-cupom-alerta__item {
        flex-direction: column;
        align-items: stretch;
    }

    .baf-cupom-alerta__aceitar {
        width: 100%;
        min-width: 0;
    }

    .baf-lv-actions .baf-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .baf-tabs-shell {
        border-radius: 12px;
    }

    .baf-tab-panel {
        padding: 16px 12px 8px;
    }

    .baf-copy-row {
        flex-direction: column;
        align-items: stretch;
    }

    .baf-copy-row .baf-btn {
        width: 100%;
    }

    .baf-grafico-legenda {
        flex-wrap: wrap;
        gap: 10px;
    }

    .baf-grafico-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .baf-lancar-venda .baf-wizard-nav,
    .baf-wizard-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .baf-lancar-venda .baf-wizard-nav .baf-btn,
    .baf-wizard-nav .baf-btn {
        width: 100%;
        justify-content: center;
    }

    .baf-lancar-venda .baf-wizard-nav .baf-btn:only-child {
        margin-left: 0;
    }

    .baf-link-venda-picker {
        padding: 10px;
        align-items: flex-end;
    }

    .baf-link-venda-picker__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
        padding: 16px;
    }

    .baf-tabela {
        font-size: 13px;
    }

    .baf-tabela th,
    .baf-tabela td {
        padding: 8px 10px;
    }

    .baf-link-venda-table td .baf-copy-row {
        min-width: 0;
    }

    .baf-lv-actions .baf-btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .baf-kpis {
        grid-template-columns: 1fr;
    }

    .baf-kpi-card {
        padding: 14px 16px;
    }

    .baf-tab-badge {
        top: 4px;
        right: 4px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .baf-link-venda-catalog,
    .baf-lancar-venda-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .baf-gerador-carousel-nav {
        display: none;
    }

    .baf-gerador-product {
        flex: 0 0 132px;
    }

    .baf-cupom-alerta {
        padding: 14px;
    }

    .baf-painel-rodape {
        margin-top: 24px;
        padding-top: 14px;
        font-size: 13px;
    }
}

/* ------------------------------------------------------------------ */
/* Gate de acesso (e-mail + 2FA) — Sua Beleza Rende                   */
/* ------------------------------------------------------------------ */

.baf-painel-gate {
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 4px 24px;
}

.baf-gate-shell {
    display: grid;
    gap: 20px;
}

.baf-gate-hero {
    text-align: center;
    padding: 8px 12px 0;
}

.baf-gate-eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--baf-muted, #9c4a6f);
}

.baf-gate-title {
    margin: 0 0 12px;
    font-family: var(--baf-font-serif, Georgia, serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.15;
}

.baf-gate-title-pink {
    color: var(--baf-pink, #e91e63);
}

.baf-gate-title-gold {
    color: var(--baf-orange, #f5a623);
}

.baf-gate-lead {
    margin: 0 auto;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--baf-maroon, #880e4f);
}

.baf-gate-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(233, 30, 99, 0.16);
    border-radius: 20px;
    box-shadow: 0 10px 36px rgba(136, 14, 79, 0.1);
    padding: 22px 20px;
    display: grid;
    gap: 20px;
    justify-items: center;
    text-align: center;
}

.baf-gate-email-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff5f8 0%, #ffffff 100%);
    border: 1px solid rgba(233, 30, 99, 0.14);
    text-align: center;
}

.baf-gate-email-chip__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63 0%, #ff6b9d 100%);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.28);
}

.baf-gate-email-chip__text {
    min-width: 0;
    display: grid;
    gap: 4px;
    justify-items: center;
}

.baf-gate-email-chip__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--baf-muted, #9c4a6f);
}

.baf-gate-email-chip__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--baf-maroon, #880e4f);
    word-break: break-all;
}

.baf-gate-flow {
    display: grid;
    gap: 0;
    width: 100%;
    max-width: 360px;
    justify-items: center;
}

.baf-gate-flow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    text-align: center;
}

.baf-gate-flow__step[data-gate-flow-step="verify"] {
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.baf-painel-gate.is-code-sent .baf-gate-flow__step[data-gate-flow-step="verify"],
.baf-gate-flow__step.is-active {
    opacity: 1;
}

.baf-gate-flow__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #e91e63 0%, #f5a623 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.22);
}

.baf-gate-flow__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.baf-gate-flow__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--baf-pink-deep, #d81b60);
    font-family: var(--baf-font-serif, Georgia, serif);
    font-style: italic;
}

.baf-gate-flow__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--baf-muted, #9c4a6f);
}

.baf-gate-flow__connector {
    width: 2px;
    height: 16px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.35) 0%, rgba(245, 166, 35, 0.35) 100%);
    border-radius: 2px;
}

.baf-gate-send-btn,
.baf-gate-verify-btn {
    min-width: 180px;
}

.baf-gate-send-btn.is-countdown {
    opacity: 0.85;
    cursor: wait;
}

.baf-gate-otp-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.baf-gate-otp-input {
    width: 100%;
    max-width: 220px;
    padding: 14px 18px;
    border: 2px solid rgba(233, 30, 99, 0.22);
    border-radius: 14px;
    background: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-align: center;
    color: var(--baf-pink-deep, #d81b60);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.baf-gate-otp-input:focus {
    outline: none;
    border-color: var(--baf-pink, #e91e63);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.12);
}

.baf-gate-otp-wrap.has-error .baf-gate-otp-input {
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.baf-gate-otp-error {
    min-height: 18px;
    font-size: 13px;
    color: #c62828;
    text-align: center;
}

.baf-gate-feedback {
    display: none;
    width: 100%;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.baf-gate-feedback.is-visible {
    display: block;
}

.baf-gate-feedback.is-ok {
    background: rgba(2, 122, 72, 0.08);
    border: 1px solid rgba(2, 122, 72, 0.2);
    color: #027a48;
}

.baf-gate-feedback.is-error {
    background: rgba(198, 40, 40, 0.06);
    border: 1px solid rgba(198, 40, 40, 0.18);
    color: #c62828;
}

.baf-gate-logout {
    margin: 0;
    text-align: center;
}

.baf-gate-logout__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--baf-muted, #9c4a6f);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.baf-gate-logout__link:hover,
.baf-gate-logout__link:focus {
    color: var(--baf-pink, #e91e63);
}

@media (max-width: 560px) {
    .baf-gate-card {
        padding: 18px 14px;
    }

    .baf-gate-flow {
        max-width: none;
    }

    .baf-gate-email-chip {
        max-width: none;
    }

    .baf-gate-send-btn,
    .baf-gate-verify-btn {
        width: 100%;
        max-width: 280px;
    }

    .baf-gate-otp-input {
        max-width: none;
        font-size: 24px;
    }
}

/* ------------------------------------------------------------------ */
/* Tour guiado (primeira visita)                                      */
/* ------------------------------------------------------------------ */

body.baf-tour-active {
    overflow: hidden;
}

.baf-tour {
    position: fixed;
    inset: 0;
    z-index: 10080;
    pointer-events: none;
}

.baf-tour[hidden] {
    display: none !important;
}

.baf-tour:not([hidden]) {
    display: block;
    pointer-events: auto;
}

.baf-tour-spotlight {
    position: fixed;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(18, 8, 12, 0.72);
    pointer-events: none;
    z-index: 10081;
    transition: top 0.22s ease, left 0.22s ease, width 0.22s ease, height 0.22s ease;
}

.baf-tour-popover {
    position: fixed;
    z-index: 10082;
    width: min(420px, calc(100vw - 32px));
    padding: 20px 20px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--baf-text, #2d2d2d);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}

.baf-tour-popover__progress {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--baf-pink, #e91e63);
}

.baf-tour-popover__title {
    margin: 0 0 10px;
    font-family: var(--baf-font-display, 'Playfair Display', Georgia, serif);
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--baf-maroon, #6b1232);
}

.baf-tour-popover__text {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--baf-text-muted, #5a5a5a);
}

.baf-tour-popover__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.baf-tour-popover__skip {
    font-size: 0.875rem;
}

.baf-tour-popover__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

@media (max-width: 640px) {
    .baf-tour-popover {
        left: 16px !important;
        right: 16px;
        width: auto;
        max-width: none;
    }

    .baf-tour-popover__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .baf-tour-popover__nav {
        margin-left: 0;
        width: 100%;
    }

    .baf-tour-popover__nav .baf-btn {
        flex: 1 1 auto;
    }
}

/* ------------------------------------------------------------------ */
/* Aba Indicar afiliados                                              */
/* ------------------------------------------------------------------ */

.baf-indicacao-afiliado {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.baf-indicacao-afiliado__hero,
.baf-link-venda__hero,
.baf-lancar-venda__hero,
.baf-vendas__hero,
.baf-cupons__hero,
.baf-ajuda__hero,
.baf-materiais__hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fce4ec 0%, #fff8f5 55%, rgba(255, 204, 188, 0.35) 100%);
    border: 1px solid rgba(233, 30, 99, 0.16);
    box-shadow: 0 8px 24px rgba(136, 14, 79, 0.08);
}

.baf-indicacao-afiliado__hero-icon,
.baf-link-venda__hero-icon,
.baf-lancar-venda__hero-icon,
.baf-vendas__hero-icon,
.baf-cupons__hero-icon,
.baf-ajuda__hero-icon,
.baf-materiais__hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--baf-icon-gradient, linear-gradient(135deg, #e91e63 0%, #f5a623 100%));
    color: #fff;
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.28);
}

.baf-indicacao-afiliado__hero-text h3,
.baf-link-venda__hero-text h3,
.baf-lancar-venda__hero-text h3,
.baf-vendas__hero-text h3,
.baf-cupons__hero-text h3,
.baf-ajuda__hero-text h3,
.baf-materiais__hero-text h3 {
    margin: 0 0 8px;
}

.baf-indicacao-afiliado__hero-text .baf-bloco-desc,
.baf-link-venda__hero-text .baf-bloco-desc,
.baf-lancar-venda__hero-text .baf-bloco-desc,
.baf-vendas__hero-text .baf-bloco-desc,
.baf-cupons__hero-text .baf-bloco-desc,
.baf-ajuda__hero-text .baf-bloco-desc,
.baf-materiais__hero-text .baf-bloco-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.baf-indicacao-afiliado__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.baf-indicacao-afiliado__step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 14px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(233, 30, 99, 0.1);
    box-shadow: 0 2px 10px rgba(136, 14, 79, 0.05);
}

.baf-indicacao-afiliado__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--baf-pink-gradient, linear-gradient(90deg, #d81b60, #e91e63));
}

.baf-indicacao-afiliado__step-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #6b3a52;
}

.baf-indicacao-afiliado__form-card {
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(233, 30, 99, 0.12);
    box-shadow: 0 6px 22px rgba(136, 14, 79, 0.07);
}

.baf-indicacao-afiliado__form-title,
.baf-indicacao-afiliado__lista-header .baf-subtitulo {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--baf-maroon, #880e4f);
    font-family: var(--baf-font-sans);
    font-style: normal;
}

.baf-indicacao-afiliado__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.baf-indicacao-afiliado .baf-form-row {
    margin: 0;
}

.baf-indicacao-afiliado .baf-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #6b3a52;
}

.baf-indicacao-afiliado .baf-form-row label .required {
    color: #e91e63;
}

.baf-indicacao-afiliado .baf-form-row input {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid rgba(233, 30, 99, 0.2);
    background: #fffafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.baf-indicacao-afiliado .baf-form-row input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
    background: #fff;
}

.baf-indicacao-afiliado .baf-form-row--wide {
    grid-column: 1 / -1;
}

.baf-indicacao-afiliado__form-actions {
    margin-top: 18px;
}

.baf-indicacao-afiliado__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    font-weight: 700;
}

.baf-indicacao-afiliado__submit-icon {
    display: inline-flex;
    line-height: 0;
}

.baf-indicacao-afiliado__form-msg {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.baf-indicacao-afiliado__form-msg.baf-form-msg--ok {
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.baf-indicacao-afiliado__form-msg.baf-form-msg--erro {
    color: #b42318;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.baf-indicacao-afiliado__lista {
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(233, 30, 99, 0.1);
    box-shadow: 0 4px 18px rgba(136, 14, 79, 0.06);
}

.baf-indicacao-afiliado__lista-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: rgba(107, 58, 82, 0.85);
}

.baf-indicacao-afiliado-loading {
    margin-bottom: 16px;
}

.baf-indicacao-afiliado__table-wrap {
    border-radius: 12px;
    border: 1px solid rgba(233, 30, 99, 0.08);
    overflow: hidden;
    background: #fffafb;
}

.baf-indicacao-afiliado__table thead th {
    background: linear-gradient(180deg, #fff5f8 0%, #fce4ec 100%);
    color: #880e4f;
    font-weight: 700;
    border-bottom: 1px solid rgba(233, 30, 99, 0.12);
}

.baf-indicacao-afiliado__table tbody tr {
    transition: background-color 0.15s ease;
}

.baf-indicacao-afiliado__table tbody tr:hover {
    background: rgba(252, 228, 236, 0.35);
}

.baf-indicacao-afiliado__table tbody td {
    border-bottom: 1px solid rgba(233, 30, 99, 0.08);
    vertical-align: middle;
}

.baf-indicacao-afiliado__table tbody td:last-child {
    white-space: nowrap;
}

.baf-badge-andamento {
    background: #dbeafe;
    color: #1e40af;
}

.baf-badge-inativo {
    background: #f3f4f6;
    color: #6b7280;
}

.baf-indicacao-afiliado__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 36px 20px;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed rgba(233, 30, 99, 0.2);
    background: linear-gradient(180deg, #fff 0%, #fffafb 100%);
}

.baf-indicacao-afiliado__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    color: #d81b60;
    background: rgba(252, 228, 236, 0.7);
    margin-bottom: 4px;
}

.baf-indicacao-afiliado__empty-text {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #880e4f;
}

.baf-indicacao-afiliado__empty-hint {
    margin: 0;
    font-size: 13px;
    color: rgba(107, 58, 82, 0.8);
    max-width: 280px;
}

.baf-materiais-shortcode.baf-painel {
    padding: 24px;
}

.baf-materiais-shortcode .baf-materiais {
    padding: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

@media (max-width: 900px) {
    .baf-indicacao-afiliado__steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .baf-indicacao-afiliado__hero,
    .baf-link-venda__hero,
    .baf-lancar-venda__hero,
    .baf-vendas__hero,
    .baf-cupons__hero,
    .baf-ajuda__hero,
    .baf-materiais__hero {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .baf-indicacao-afiliado__form-card,
    .baf-indicacao-afiliado__lista {
        padding: 16px;
    }

    .baf-indicacao-afiliado__form-grid {
        grid-template-columns: 1fr;
    }

    .baf-indicacao-afiliado__submit {
        width: 100%;
        justify-content: center;
    }

    .baf-indicacao-afiliado__table {
        font-size: 13px;
    }

    .baf-indicacao-afiliado__table th,
    .baf-indicacao-afiliado__table td {
        padding: 8px 10px;
    }
}
