﻿/* ══════════════════════════════════════════════════
   VFX.PT — Marketplace Amazon-like Styles
   ══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    background-color: #F0F2F5;
    color: #0D1B2A;
}

a {
    text-decoration: none;
}

/* ══════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════ */
.vfx4-header {
    background-color: #0D1B2A;
    border-bottom: 3px solid #FF9900;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.vfx4-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 16px;
}

.vfx4-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.vfx4-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

/* ── SEARCH BAR (Header) ── */
.vfx4-search-bar {
    display: flex;
    flex: 1;
    max-width: 700px;
    height: 44px;
    border-radius: 24px;
    overflow: hidden;
    background: #FFFFFF;
}

.vfx4-search-select {
    background-color: #F0F2F5;
    border: none;
    padding: 0 12px;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
    border-right: 1px solid #E0E0E0;
}

.vfx4-search-select-zone {
    min-width: 100px;
    border-left: 1px solid #E0E0E0;
    border-right: none;
}

.vfx4-search-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.vfx4-search-btn {
    background-color: #FF9900;
    color: #0D1B2A;
    border-radius: 0 24px 24px 0;
    min-width: 56px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

    .vfx4-search-btn:hover {
        background-color: #E68A00;
    }

.vfx4-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vfx4-header-btn {
    color: white !important;
    border-color: rgba(255,255,255,0.6) !important;
    background: transparent !important;
}

    .vfx4-header-btn:hover {
        background: rgba(255,255,255,0.1) !important;
    }

/* ── CATEGORIES BAR ── */
.vfx4-categories-bar {
    background-color: #232F3E;
    padding: 8px 0;
}

.vfx4-categories-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 0 20px;
    overflow-x: auto;
}

.vfx4-cat-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .vfx4-cat-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* ── MAIN ── */
.vfx4-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 80vh;
}

/* ══════════════════════════════════════════════════
   HERO — Banner limpo em largura total
   ══════════════════════════════════════════════════ */
.vfx4-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.vfx4-hero-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* ══════════════════════════════════════════════════
   MINI PROMOÇÕES (sobrepostas ao hero)
   ══════════════════════════════════════════════════ */
.vfx4-mini-promos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: -40px;
    position: relative;
    z-index: 4;
    padding: 0 20px;
}

.vfx4-mini-promo-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

    .vfx4-mini-promo-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

.vfx4-mini-promo-emoji {
    font-size: 32px;
    flex-shrink: 0;
}

.vfx4-mini-promo-text {
    flex: 1;
}

.vfx4-mini-promo-title {
    font-size: 15px;
    font-weight: 700;
    color: #0D1B2A;
    margin: 0;
}

.vfx4-mini-promo-sub {
    font-size: 13px;
    color: #6C757D;
    margin: 4px 0 0;
}

/* ══════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════ */
.vfx4-section {
    margin-bottom: 40px;
}

.vfx4-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0D1B2A;
    margin-bottom: 20px;
}

/* ── CATEGORIES GRID ── */
.vfx4-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.vfx4-category-card {
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .vfx4-category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.vfx4-category-emoji {
    font-size: 40px;
    margin-bottom: 12px;
}

.vfx4-category-name {
    font-size: 15px;
    font-weight: 600;
    color: #0D1B2A;
    margin: 0;
}

.vfx4-category-count {
    font-size: 12px;
    color: #6C757D;
    margin-top: 4px;
}

/* ── TWO COLUMNS LAYOUT ── */
.vfx4-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .vfx4-two-columns {
        grid-template-columns: 1fr;
    }
}

/* ── PROMO CARDS GRID ── */
.vfx4-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vfx4-promo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

    .vfx4-promo-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.vfx4-promo-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #F0F2F5;
    overflow: hidden;
}

.vfx4-promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.vfx4-promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    z-index: 1;
    white-space: nowrap;
}

.vfx4-promo-content {
    padding: 16px;
}

.vfx4-promo-empresa {
    color: #FF9900;
    font-weight: 600;
    font-size: 12px;
    margin: 0 0 4px;
}

.vfx4-promo-title {
    font-size: 16px;
    font-weight: 700;
    color: #0D1B2A;
    margin: 0 0 8px;
    line-height: 1.3;
}

.vfx4-promo-desc {
    color: #6C757D;
    font-size: 13px;
    margin: 0 0 12px;
    line-height: 1.4;
}

.vfx4-promo-prices {
    margin-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.vfx4-promo-price {
    color: #FF9900;
    font-weight: 800;
    font-size: 20px;
}

.vfx4-promo-price-old {
    color: #ADB5BD;
    text-decoration: line-through;
    font-size: 14px;
}

.vfx4-promo-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 16px;
}

.vfx4-promo-btn {
    display: inline-block;
    background-color: #FF9900;
    color: #0D1B2A;
    font-weight: bold;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
}

    .vfx4-promo-btn:hover {
        background-color: #E68A00;
    }

.vfx4-promo-icons {
    display: flex;
    gap: 8px;
    font-size: 18px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .vfx4-mini-promos {
        margin-top: -20px;
        padding: 0 12px;
    }

    .vfx4-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════
   PÁGINA DO NEGÓCIO (Negocio.razor)
   ══════════════════════════════════════════════════ */

.vfx4-neg-topbar {
    padding: 16px 20px;
    color: white;
}

.vfx4-neg-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vfx4-neg-back {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

    .vfx4-neg-back:hover {
        opacity: 0.8;
    }

.vfx4-neg-topbar-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.vfx4-neg-topbar-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.vfx4-neg-topbar-nome {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.vfx4-neg-topbar-tipo {
    font-size: 13px;
    margin: 2px 0 0;
    opacity: 0.85;
    color: white;
}

.vfx4-neg-topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vfx4-neg-btn {
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

    .vfx4-neg-btn:hover {
        opacity: 0.9;
    }

/* ── Info Grid ── */
.vfx4-neg-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.vfx4-neg-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.vfx4-neg-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.vfx4-neg-info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

    .vfx4-neg-info-card h3 {
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 12px;
    }

    .vfx4-neg-info-card p {
        font-size: 14px;
        color: #6C757D;
        margin: 4px 0;
    }

.vfx4-neg-descricao {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
}

/* ── Serviços ── */
.vfx4-neg-servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.vfx4-neg-servico-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

    .vfx4-neg-servico-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

.vfx4-neg-servico-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #0D1B2A;
}

.vfx4-neg-servico-duracao {
    font-size: 13px;
    color: #6C757D;
    margin: 4px 0 0;
}

.vfx4-neg-servico-desc {
    font-size: 13px;
    color: #ADB5BD;
    margin: 4px 0 0;
}

.vfx4-neg-servico-preco {
    font-size: 20px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Promoções ── */
.vfx4-neg-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.vfx4-neg-promo-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.vfx4-neg-promo-badge {
    display: inline-block;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.vfx4-neg-promo-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.vfx4-neg-promo-content p {
    font-size: 13px;
    color: #6C757D;
    margin: 0 0 12px;
}

.vfx4-neg-promo-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.vfx4-neg-promo-price {
    font-size: 20px;
    font-weight: 800;
}

.vfx4-neg-promo-price-old {
    font-size: 14px;
    color: #ADB5BD;
    text-decoration: line-through;
}

/* ── Avaliações ── */
.vfx4-neg-rating-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.vfx4-neg-rating-big {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.vfx4-neg-rating-stars {
    font-size: 20px;
}

.vfx4-neg-rating-count {
    font-size: 14px;
    color: #6C757D;
}

.vfx4-neg-avaliacoes-list {
    display: grid;
    gap: 12px;
}

.vfx4-neg-avaliacao-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.vfx4-neg-avaliacao-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.vfx4-neg-avaliacao-data {
    font-size: 12px;
    color: #ADB5BD;
    margin-left: auto;
}

/* ── Footer ── */
.vfx4-neg-footer {
    margin-top: 40px;
    padding: 24px 20px;
    color: white;
}

.vfx4-neg-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.vfx4-neg-footer p {
    margin: 0;
}

/* ── Loading ── */
.vfx4-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    color: #6C757D;
}

.vfx4-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E9ECEF;
    border-top-color: #FF9900;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Modal ── */
.vfx4-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.vfx4-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vfx4-modal-header {
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .vfx4-modal-header h2 {
        margin: 0;
        color: white;
        font-size: 20px;
    }

.vfx4-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

.vfx4-modal-body {
    padding: 24px;
}

.vfx4-modal-servico {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
}

.vfx4-modal-campo {
    margin-bottom: 16px;
}

    .vfx4-modal-campo label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #0D1B2A;
    }

.vfx4-modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

    .vfx4-modal-input:focus {
        border-color: #FF9900;
        box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
    }

.vfx4-modal-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.vfx4-modal-erro {
    background: #FFF5F5;
    color: #E53935;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.vfx4-modal-sucesso {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.vfx4-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
}

.vfx4-modal-btn-cancelar {
    padding: 10px 24px;
    border: 1px solid #DEE2E6;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.vfx4-modal-btn-confirmar {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .vfx4-neg-topbar-inner {
        flex-wrap: wrap;
    }

    .vfx4-neg-topbar-title {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .vfx4-neg-topbar-actions {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .vfx4-neg-back {
        order: 0;
    }

    .vfx4-neg-servicos-grid {
        grid-template-columns: 1fr;
    }

    .vfx4-neg-footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
/* ══════════════════════════════════════════════════
   PÁGINA DE CATEGORIA
   ══════════════════════════════════════════════════ */

.vfx4-category-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 16px;
}

    .vfx4-category-header h1 {
        font-size: 28px;
        font-weight: 800;
        color: #0D1B2A;
        margin: 0 0 8px;
    }

    .vfx4-category-header p {
        font-size: 16px;
        color: #6C757D;
        margin: 0;
    }

.vfx4-category-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vfx4-category-business-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

    .vfx4-category-business-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.vfx4-category-business-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.vfx4-category-business-info {
    flex: 1;
}

    .vfx4-category-business-info h3 {
        font-size: 18px;
        font-weight: 700;
        color: #0D1B2A;
        margin: 0 0 4px;
    }

.vfx4-category-business-zone {
    font-size: 14px;
    color: #6C757D;
    margin: 0 0 8px;
}

.vfx4-category-business-desc {
    font-size: 14px;
    color: #495057;
    margin: 0;
}

.vfx4-category-business-arrow {
    font-size: 24px;
    color: #ADB5BD;
    flex-shrink: 0;
}

.vfx4-category-empty {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    color: #6C757D;
}

    .vfx4-category-empty p {
        font-size: 18px;
        margin: 8px 0;
    }

.vfx4-category-back {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.vfx4-category-back-link {
    color: #FF9900;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

    .vfx4-category-back-link:hover {
        text-decoration: underline;
    }
/* ══════════════════════════════════════════════════
   FOOTER PRINCIPAL (Site)
   ══════════════════════════════════════════════════ */
.vfx4-footer {
    background-color: #0D1B2A;
    color: #FFFFFF;
    margin-top: 60px;
}

.vfx4-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vfx4-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 24px;
}

.vfx4-footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.vfx4-footer h4 {
    margin: 0 0 12px;
    color: #FF9900;
}

.vfx4-footer p {
    color: #ADB5BD;
    font-size: 14px;
    margin: 4px 0;
}

.vfx4-footer-divider {
    border: none;
    border-top: 1px solid #2C3E50;
    margin: 24px 0;
}
/* ── Categoria de Serviço ── */
.vfx4-neg-cat-title {
    font-size: 18px;
    font-weight: 700;
    color: #0D1B2A;
}

.vfx4-neg-servico-profissional {
    font-size: 13px;
    color: #6C757D;
    margin: 4px 0 0;
    font-style: italic;
}

/* ══════════════════════════════════════════════════
   PROFISSIONAIS (Negocio.razor)
   ══════════════════════════════════════════════════ */

.vfx4-neg-profissionais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.vfx4-neg-profissional-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .vfx4-neg-profissional-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

.vfx4-neg-profissional-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}

.vfx4-neg-profissional-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.vfx4-neg-profissional-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0D1B2A;
    margin: 0 0 4px;
}

.vfx4-neg-profissional-funcao {
    font-size: 13px;
    color: #6C757D;
    margin: 0;
}

.vfx4-neg-profissional-esp {
    font-size: 12px;
    color: #ADB5BD;
    margin: 2px 0 0;
    font-style: italic;
}

/* ── Sidebar avatar (fallback sem imagem) ── */
.vfx4-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Category business logo fallback ── */
.vfx4-category-business-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   PROFISSIONAL INDEPENDENTE — Secção dedicada
   ══════════════════════════════════════════════════ */

.vfx4-indep-header {
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vfx4-indep-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vfx4-indep-foto {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vfx4-indep-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.vfx4-indep-nome {
    font-size: 22px;
    font-weight: 700;
    color: #0D1B2A;
    margin: 0;
}

.vfx4-indep-funcao {
    font-size: 14px;
    color: #6C757D;
    margin: 2px 0 0;
}

.vfx4-indep-esp {
    font-size: 13px;
    color: #ADB5BD;
    margin: 2px 0 0;
    font-style: italic;
}

.vfx4-indep-badge-wrapper {
    flex-shrink: 0;
}

.vfx4-indep-badge {
    display: inline-block;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.vfx4-indep-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
    margin: 0 0 16px;
    padding: 0 4px;
}

.vfx4-indep-servico {
    border-left: 3px solid #FF9900 !important;
}

.vfx4-indep-contacto {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 16px 20px;
    background: #F8F9FA;
    border-radius: 12px;
    flex-wrap: wrap;
}

.vfx4-indep-contacto-item {
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

.vfx4-indep-btn-marcar {
    border: none;
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    margin-left: auto;
    transition: opacity 0.2s;
}

    .vfx4-indep-btn-marcar:hover {
        opacity: 0.9;
    }

@media (max-width: 768px) {
    .vfx4-indep-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vfx4-indep-contacto {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vfx4-indep-btn-marcar {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}
/* ══════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════ */

.vfx4-dashboard {
    min-height: 100vh;
    background-color: #F0F2F5;
}

.vfx4-dash-header {
    padding: 24px 20px;
    color: white;
}

.vfx4-dash-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.vfx4-dash-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vfx4-dash-btn {
    display: inline-block;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

    .vfx4-dash-btn:hover {
        opacity: 0.9;
        text-decoration: none;
    }

.vfx4-dash-btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.vfx4-dash-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ═══ STATS ═══ */
.vfx4-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vfx4-dash-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.vfx4-dash-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #0D1B2A;
    line-height: 1;
    margin-bottom: 8px;
}

.vfx4-dash-stat-label {
    font-size: 14px;
    color: #6C757D;
    font-weight: 500;
}

/* ═══ CARDS ═══ */
.vfx4-dash-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

    .vfx4-dash-card h3 {
        font-size: 18px;
        font-weight: 700;
        color: #0D1B2A;
        margin: 0 0 16px;
    }

/* ═══ PLANO ═══ */
.vfx4-dash-plano {
    text-align: center;
    padding: 16px 0;
}

.vfx4-dash-plano-nome {
    font-size: 24px;
    font-weight: 800;
    color: #0D1B2A;
    margin-bottom: 8px;
}

.vfx4-dash-plano-preco {
    font-size: 32px;
    font-weight: 800;
    color: #FF9900;
    margin-bottom: 16px;
}

.vfx4-dash-plano-preco-mes {
    font-size: 16px;
    font-weight: 400;
    color: #6C757D;
}

.vfx4-dash-plano-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

    .vfx4-dash-plano-features span {
        font-size: 14px;
        color: #495057;
    }

.vfx4-dash-upgrade-btn {
    display: inline-block;
    background-color: #FF9900;
    color: #0D1B2A;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    margin-top: 16px;
    transition: opacity 0.2s;
}

    .vfx4-dash-upgrade-btn:hover {
        opacity: 0.9;
        text-decoration: none;
    }

/* ═══ TABLE ═══ */
.vfx4-dash-table-wrapper {
    overflow-x: auto;
}

.vfx4-dash-table {
    width: 100%;
    border-collapse: collapse;
}

    .vfx4-dash-table th,
    .vfx4-dash-table td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid #E9ECEF;
        font-size: 14px;
    }

    .vfx4-dash-table th {
        background-color: #F8F9FA;
        font-weight: 700;
        color: #495057;
    }

    .vfx4-dash-table td {
        color: #0D1B2A;
    }

.vfx4-dash-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.vfx4-dash-badge-pendente {
    background-color: #FFF3CD;
    color: #856404;
}

/* ═══ ACTIONS GRID ═══ */
.vfx4-dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.vfx4-dash-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: #F8F9FA;
    border-radius: 12px;
    text-decoration: none;
    color: #0D1B2A;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

    .vfx4-dash-action-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        text-decoration: none;
    }

.vfx4-dash-action-icon {
    font-size: 32px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .vfx4-dash-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .vfx4-dash-header-actions {
        justify-content: center;
    }

    .vfx4-dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .vfx4-dash-plano-features {
        max-width: 100%;
    }
}
/* ══════════════════════════════════════════════════
   AUTENTICAÇÃO — Login / Registo / Registo Negócio
   ══════════════════════════════════════════════════ */

.vfx4-auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #F0F2F5;
}

.vfx4-auth-container {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.vfx4-auth-wide {
    max-width: 900px;
}

.vfx4-auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.vfx4-auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #0D1B2A;
    text-align: center;
    margin: 0 0 8px;
}

.vfx4-auth-subtitle {
    font-size: 15px;
    color: #6C757D;
    text-align: center;
    margin: 0 0 32px;
}

.vfx4-auth-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0D1B2A;
    margin: 32px 0 16px;
}

.vfx4-auth-hint {
    display: block;
    font-size: 12px;
    color: #ADB5BD;
    margin-top: 4px;
}

/* ═══ Tabs ═══ */
.vfx4-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #E9ECEF;
}

.vfx4-auth-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #6C757D;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

    .vfx4-auth-tab:hover {
        color: #0D1B2A;
    }

.vfx4-auth-tab-ativo {
    color: #FF9900;
    border-bottom-color: #FF9900;
}

/* ═══ Formulário ═══ */
.vfx4-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vfx4-auth-campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .vfx4-auth-campo label {
        font-size: 14px;
        font-weight: 600;
        color: #0D1B2A;
    }

.vfx4-auth-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

    .vfx4-auth-input:focus {
        border-color: #FF9900;
        box-shadow: 0 0 0 3px rgba(255,153,0,0.15);
    }

.vfx4-auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #FF9900;
    color: #0D1B2A;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

    .vfx4-auth-btn:hover {
        background-color: #E68A00;
    }

    .vfx4-auth-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.vfx4-auth-btn-grande {
    padding: 16px;
    font-size: 18px;
    margin-top: 32px;
}

.vfx4-auth-erro {
    background: #FFF5F5;
    color: #E53935;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.vfx4-auth-sucesso {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.vfx4-auth-links {
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .vfx4-auth-links p {
        font-size: 14px;
        color: #6C757D;
        margin: 0;
    }

.vfx4-auth-link {
    color: #FF9900;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

    .vfx4-auth-link:hover {
        text-decoration: underline;
    }

.vfx4-auth-link-negocio {
    color: #0D1B2A;
    font-weight: 700;
    font-size: 16px;
    margin-top: 4px;
}

/* ═══ Planos Grid ═══ */
.vfx4-planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vfx4-plano-card {
    background: white;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

    .vfx4-plano-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.vfx4-plano-selecionado {
    border-color: #FF9900;
    box-shadow: 0 0 0 3px rgba(255,153,0,0.15);
}

.vfx4-plano-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.vfx4-plano-badge-gratuito {
    background: #E9ECEF;
    color: #495057;
}

.vfx4-plano-badge-premium {
    background: #FFF3E0;
    color: #E65100;
}

.vfx4-plano-badge-tcg {
    background: #E8F5E9;
    color: #2E7D32;
}

.vfx4-plano-nome {
    font-size: 18px;
    font-weight: 700;
    color: #0D1B2A;
    margin: 0 0 8px;
}

.vfx4-plano-preco {
    font-size: 28px;
    font-weight: 800;
    color: #FF9900;
    margin-bottom: 12px;
}

.vfx4-plano-preco-mes {
    font-size: 14px;
    font-weight: 400;
    color: #6C757D;
}

.vfx4-plano-desc {
    font-size: 13px;
    color: #6C757D;
    margin: 0 0 16px;
}

.vfx4-plano-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

    .vfx4-plano-features li {
        font-size: 13px;
        color: #495057;
        padding: 4px 0;
    }

.vfx4-plano-btn {
    width: 100%;
    padding: 10px;
    border: 2px solid #DEE2E6;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0D1B2A;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

    .vfx4-plano-btn:hover {
        background: #F8F9FA;
    }

.vfx4-plano-btn-selecionado {
    background: #FF9900;
    color: white;
    border-color: #FF9900;
}

    .vfx4-plano-btn-selecionado:hover {
        background: #E68A00;
    }

/* ══════════════════════════════════════════════════
   MENU DE UTILIZADOR NO HEADER
   ══════════════════════════════════════════════════ */

.vfx4-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vfx4-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vfx4-user-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   CTA BANNER (Homepage)
   ══════════════════════════════════════════════════ */

.vfx4-cta-banner {
    background: #0D1B2A;
    color: white;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.vfx4-cta-content {
    flex: 1;
    min-width: 280px;
}

    .vfx4-cta-content h2 {
        font-size: 24px;
        font-weight: 800;
        margin: 0 0 8px;
        color: white;
    }

    .vfx4-cta-content p {
        font-size: 15px;
        color: rgba(255,255,255,0.8);
        margin: 0 0 20px;
    }

.vfx4-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vfx4-cta-btn-primario {
    background: #FF9900;
    color: #0D1B2A;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 24px;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-block;
}

    .vfx4-cta-btn-primario:hover {
        opacity: 0.9;
        text-decoration: none;
    }

.vfx4-cta-btn-secundario {
    background: #f0f2f5;
    color: #0D1B2A;
    border: 1px solid #ccc;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

    .vfx4-cta-btn-secundario:hover {
        background: #e0e0e0;
        transform: translateY(-1px);
    }

.vfx4-cta-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.vfx4-cta-stat {
    text-align: center;
}

    .vfx4-cta-stat strong {
        display: block;
        font-size: 32px;
        font-weight: 800;
        color: #FF9900;
        line-height: 1;
    }

    .vfx4-cta-stat span {
        font-size: 13px;
        color: rgba(255,255,255,0.7);
    }

/* ══════════════════════════════════════════════════
   FOOTER LINKS
   ══════════════════════════════════════════════════ */

.vfx4-footer-link {
    color: #ADB5BD;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

    .vfx4-footer-link:hover {
        color: #FF9900;
    }


/* Adicionar ao vfx4.css */

.vfx4-dash-btn-small {
    background: #F8F9FA;
    border: 1px solid #DEE2E6;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

    .vfx4-dash-btn-small:hover {
        background: #E9ECEF;
    }

.vfx4-dash-btn-danger {
    color: #E53935;
}

    .vfx4-dash-btn-danger:hover {
        background: #FFF5F5;
    }

.vfx4-dash-action-card small {
    font-size: 12px;
    color: #6C757D;
    margin-top: 4px;
    display: block;
}

.vfx4-pesquisa-filtros {
    margin: 0 0 20px;
}

.vfx4-pesquisa-limpar {
    color: #FF9900;
    font-weight: 600;
    text-decoration: none;
}
/* ══════════════════════════════════════════════════
   MARCAÇÕES — Dashboard
   ══════════════════════════════════════════════════ */

.vfx4-marcacoes-filtros {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vfx4-marcacao-filtro {
    background: #F8F9FA;
    border: 1px solid #DEE2E6;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

    .vfx4-marcacao-filtro:hover {
        background: #E9ECEF;
    }

.vfx4-marcacao-filtro-ativo {
    background: #0D1B2A;
    color: white;
    border-color: #0D1B2A;
}

    .vfx4-marcacao-filtro-ativo:hover {
        background: #1B2838;
    }

.vfx4-marcacao-estado {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.vfx4-marcacao-estado-pendente {
    background: #FFF3CD;
    color: #856404;
}

.vfx4-marcacao-estado-aceite {
    background: #E3F2FD;
    color: #0D47A1;
}

.vfx4-marcacao-estado-concluida {
    background: #E8F5E9;
    color: #2E7D32;
}

.vfx4-marcacao-estado-cancelada {
    background: #FFEBEE;
    color: #C62828;
}

.vfx4-marcacao-acoes {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.vfx4-marcacao-btn {
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.vfx4-marcacao-btn-aceitar {
    background: #E8F5E9;
    color: #2E7D32;
}

.vfx4-marcacao-btn-concluir {
    background: #2E7D32;
    color: white;
}

.vfx4-marcacao-btn-recusar {
    background: #FFEBEE;
    color: #C62828;
}

.vfx4-marcacao-btn-editar {
    background: #E3F2FD;
    color: #0D47A1;
}

.vfx4-marcacao-detalhes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .vfx4-marcacao-detalhes p {
        margin: 0;
        font-size: 14px;
        color: #495057;
    }

.vfx4-marcacao-valores {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #F8F9FA;
    padding: 16px;
    border-radius: 8px;
}

.vfx4-marcacao-valor-linha {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #495057;
}

.vfx4-marcacao-valor-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #0D1B2A;
    border-top: 1px solid #DEE2E6;
    padding-top: 8px;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════════
   RELATÓRIOS
   ══════════════════════════════════════════════════ */

.vfx4-relatorio-filtros {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════
   DEFINIÇÕES / APARÊNCIA DO NEGÓCIO
   ══════════════════════════════════════════════════ */

.vfx4-def-preview {
    border-radius: 12px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.vfx4-def-preview-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vfx4-def-preview-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: white;
}

.vfx4-def-preview-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.vfx4-def-preview-info h2 {
    font-size: 22px;
}

.vfx4-def-upload {
    margin: 16px 0;
}

.vfx4-def-upload-area {
    border: 2px dashed #DEE2E6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s;
}

    .vfx4-def-upload-area:hover {
        border-color: #FF9900;
    }

.vfx4-def-upload-preview {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.vfx4-def-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.vfx4-def-cores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.vfx4-def-campo-cor label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0D1B2A;
}

.vfx4-def-cor-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vfx4-def-cor-input {
    width: 56px;
    height: 40px;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}

.vfx4-def-cor-text {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    font-size: 15px;
    text-transform: uppercase;
    font-family: monospace;
}

/* ══════════════════════════════════════════════════
   PROFISSIONAIS LIBERAIS — Deslocação, Especialidades
   ══════════════════════════════════════════════════ */

.vfx4-neg-info-deslocacao {
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.vfx4-neg-deslocacao-emoji {
    font-size: 48px;
    flex-shrink: 0;
}

.vfx4-neg-especialidades {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vfx4-neg-especialidade-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.vfx4-modal-info {
    margin-bottom: 16px;
}
/* ══════════════════════════════════════════════════
   BOTÕES DO HEADER — Corrigir contraste
   ══════════════════════════════════════════════════ */
.vfx4-header-actions button {
    color: white !important;
    border-color: rgba(255,255,255,0.5) !important;
    background-color: transparent !important;
    font-weight: 600;
}

    .vfx4-header-actions button:hover {
        background-color: rgba(255,255,255,0.15) !important;
        border-color: white !important;
    }

    .vfx4-header-actions button.accent:hover {
        background-color: #E68A00 !important;
    }

/* ══════════════════════════════════════════════════
   BAZAR / PRODUTOS
   ══════════════════════════════════════════════════ */

.vfx4-neg-produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.vfx4-neg-produto-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

    .vfx4-neg-produto-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.vfx4-neg-produto-imgwrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: #F0F2F5;
    overflow: hidden;
}

.vfx4-neg-produto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vfx4-neg-produto-semimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.vfx4-neg-produto-tag-promo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E53935;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}

.vfx4-neg-produto-tag-esgotado {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6C757D;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}

.vfx4-neg-produto-info {
    padding: 16px;
}

.vfx4-neg-produto-nome {
    font-size: 15px;
    font-weight: 700;
    color: #0D1B2A;
    margin: 0 0 4px;
    line-height: 1.3;
}

.vfx4-neg-produto-cat {
    font-size: 12px;
    color: #6C757D;
    margin: 0 0 8px;
}

.vfx4-neg-produto-precos {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.vfx4-neg-produto-preco {
    font-size: 18px;
    font-weight: 800;
    color: #0D1B2A;
}

.vfx4-neg-produto-preco-promo {
    font-size: 18px;
    font-weight: 800;
    color: #FF9900;
}

.vfx4-neg-produto-preco-antigo {
    font-size: 14px;
    color: #ADB5BD;
    text-decoration: line-through;
}

.vfx4-neg-produto-stock {
    font-size: 12px;
    color: #6C757D;
    margin: 0;
}
/* ══════════════════════════════════════════════════
   FEED DE CLASSIFICADOS (Horizontal Scroll)
   ══════════════════════════════════════════════════ */

.vfx4-classificados-feed {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #FF9900 #F0F2F5;
}

    .vfx4-classificados-feed::-webkit-scrollbar {
        height: 6px;
    }

    .vfx4-classificados-feed::-webkit-scrollbar-track {
        background: #F0F2F5;
        border-radius: 3px;
    }

    .vfx4-classificados-feed::-webkit-scrollbar-thumb {
        background: #FF9900;
        border-radius: 3px;
    }

.vfx4-classificados-card {
    flex: 0 0 180px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

    .vfx4-classificados-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.vfx4-classificados-img {
    width: 100%;
    height: 140px;
    background: #F0F2F5;
    overflow: hidden;
}

    .vfx4-classificados-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.vfx4-classificados-info {
    padding: 12px;
}

    .vfx4-classificados-info h4 {
        font-size: 14px;
        font-weight: 600;
        color: #0D1B2A;
        margin: 0 0 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.vfx4-classificados-preco {
    font-size: 16px;
    font-weight: 800;
    color: #E65100;
    margin: 0 0 4px;
}

.vfx4-classificados-zona {
    font-size: 12px;
    color: #6C757D;
    margin: 0;
}

.vfx4-upload-area {
    border: 2px dashed #DEE2E6;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s;
    background: #FAFBFC;
}

    .vfx4-upload-area:hover {
        border-color: #FF9900;
    }

.vfx4-upload-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.vfx4-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.vfx4-perfil-menu {
    background: white;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

    .vfx4-perfil-menu:hover {
        background: #F8F9FA;
        border-color: #DEE2E6;
    }

.vfx4-perfil-menu-ativo {
    background: #0D1B2A !important;
    color: white !important;
    border-color: #0D1B2A !important;
}

/* ═══ PERFIL DO CLIENTE ═══ */
.vfx4-perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.vfx4-perfil-item {
    background: #F8F9FA;
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.vfx4-perfil-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6C757D;
    margin-bottom: 4px;
}

.vfx4-perfil-value {
    font-size: 15px;
    font-weight: 600;
    color: #0D1B2A;
}
/* Layout da App Mobile */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #F0F2F5;
}

.app-header {
    background: #0D1B2A;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

    .app-header .app-title {
        font-weight: bold;
        font-size: 18px;
    }

    .app-header button {
        background: none;
        border: none;
        color: white;
        font-size: 22px;
        padding: 4px 8px;
        cursor: pointer;
    }

.app-main {
    flex: 1;
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
/* Se o modo de visualização for 'standalone' (ou seja, dentro da App instalada) */
@media (display-mode: standalone) {
    .vfx4-pwa-install-banner {
        display: none !important;
    }
}

.vfx4-notif-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #FF9900;
    color: #0D1B2A;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        top: -100px;
    }

    to {
        top: 70px;
    }
}
/* --- ESTILOS DO MEGA MENU --- */

.vfx4-mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.vfx4-mega-menu {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.vfx4-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

    .vfx4-mega-menu-grid a {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        border: 1px solid #EEE;
        border-radius: 12px;
        transition: background 0.2s;
        text-decoration: none;
        color: #333;
    }

        .vfx4-mega-menu-grid a:hover {
            background: #F8F9FA;
            border-color: #FF9900;
        }

/* --- CORREÇÃO DO BOTÃO "TODAS" --- */

.vfx4-cat-btn-more {
    background-color: transparent !important; /* Mantém o fundo transparente */
    color: white !important; /* Força o texto a ser branco */
}

    /* Opcional: Efeito ao passar o rato (hover) */
    .vfx4-cat-btn-more:hover {
        background-color: rgba(255, 255, 255, 0.1) !important; /* Leve destaque */
        color: #FF9900 !important; /* Fica laranja no hover */
    }

.vfx4-search-zone-wrapper {
    display: flex;
    align-items: center;
    background: #F0F2F5;
    border-left: 1px solid #E0E0E0;
}

.vfx4-gps-btn {
    background: none;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    font-size: 18px;
    filter: grayscale(1);
    transition: all 0.2s;
}

    .vfx4-gps-btn:hover {
        transform: scale(1.2);
    }

    .vfx4-gps-btn.active {
        filter: grayscale(0);
    }
/* Barra de Categorias e Divider */
.vfx4-cat-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    align-self: center;
    margin: 0 8px;
}

.vfx4-cat-link-fixed {
    font-weight: 800;
    color: #FF9900 !important;
}

.vfx4-cat-btn-more {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    color: white;
}

/* Zona e GPS */
.vfx4-search-zone-wrapper {
    display: flex;
    align-items: center;
    background: #F0F2F5;
    border-left: 1px solid #DEE2E6;
}

.vfx4-gps-btn {
    background: none;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.4;
    transition: all 0.2s;
}

    .vfx4-gps-btn:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .vfx4-gps-btn.active {
        opacity: 1;
        color: #FF9900;
    }

/* Mega Menu */
.vfx4-mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.vfx4-mega-menu {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.vfx4-mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 16px;
}

.vfx4-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

    .vfx4-mega-menu-grid a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px;
        border: 1px solid #F0F2F5;
        border-radius: 12px;
        text-align: center;
        color: #0D1B2A;
    }

        .vfx4-mega-menu-grid a:hover {
            background: #F8F9FA;
            border-color: #FF9900;
        }
/* Selo de Empresa Certificada */
.vfx4-badge-certificada {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 114, 255, 0.4);
    cursor: help;
    border: 1px solid rgba(255,255,255,0.2);
}

.vfx4-badge-icon {
    background: white;
    color: #0072ff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}
/* ══════════════════════════════════════════════════
   MARCAÇÕES — Vista Agenda / Timeline
   ══════════════════════════════════════════════════ */

/* ── Toggle Agenda / Lista ── */
.vfx4-view-toggle {
    padding: 6px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6C757D;
    transition: all 0.2s;
}

.vfx4-view-toggle-ativo {
    background: white;
    color: #0D1B2A;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* ── Navegação de dia ── */
.vfx4-marcacao-nav-btn {
    padding: 6px 12px;
    border: 1px solid #DEE2E6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    color: #0D1B2A;
}

    .vfx4-marcacao-nav-btn:hover {
        background: #F0F0F0;
        border-color: #ADB5BD;
    }

/* ── Container principal da agenda ── */
.vfx4-agenda-container {
    display: grid;
    grid-template-columns: 60px repeat(var(--prof-cols, 1), 1fr);
    position: relative;
    overflow-x: auto;
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    background: white;
}

/* ── Coluna de horas ── */
.vfx4-agenda-hours {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #F8F9FA;
}

.vfx4-agenda-hour-cell {
    height: 60px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}

.vfx4-agenda-hour-label {
    font-size: 11px;
    color: #6C757D;
    font-weight: 600;
}

/* ── Coluna de cada profissional ── */
.vfx4-agenda-prof-column {
    position: relative;
    border-left: 1px solid #E9ECEF;
}

.vfx4-agenda-prof-header {
    padding: 10px 8px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Slot de 30 min (clicável) ── */
.vfx4-agenda-slot {
    height: 60px;
    border-bottom: 1px solid #F0F0F0;
    cursor: pointer;
    transition: background 0.15s;
}

    .vfx4-agenda-slot:hover {
        background: #F0F4FF;
    }

/* ── Bloco de marcação sobreposto ── */
.vfx4-agenda-appointment {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 6px;
    padding: 4px 8px;
    overflow: hidden;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.15s, transform 0.1s;
}

    .vfx4-agenda-appointment:hover {
        box-shadow: 0 3px 8px rgba(0,0,0,0.18);
        transform: scale(1.01);
        z-index: 4;
    }

.vfx4-agenda-apt-time {
    font-size: 10px;
    font-weight: 700;
    color: #0D1B2A;
    opacity: 0.7;
}

.vfx4-agenda-apt-client {
    font-size: 12px;
    font-weight: 700;
    color: #0D1B2A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vfx4-agenda-apt-service {
    font-size: 10px;
    color: #6C757D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mini botões dentro do bloco (aceitar/recusar rápido) ── */
.vfx4-agenda-apt-actions {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.vfx4-agenda-mini-btn {
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: opacity 0.15s;
}

    .vfx4-agenda-mini-btn:hover {
        opacity: 0.8;
    }

.vfx4-agenda-mini-aceitar {
    background: #2E7D32;
    color: white;
}

.vfx4-agenda-mini-recusar {
    background: #C62828;
    color: white;
}

/* ── Estado "rejeitada" (para consistência) ── */
.vfx4-marcacao-estado-rejeitada {
    background: #FFEBEE;
    color: #C62828;
}

.vfx4-marcacao-estado-reagendada {
    background: #FFF3E0;
    color: #E65100;
}

/* ═══ RESPONSIVO — Agenda ── */
@media (max-width: 768px) {
    .vfx4-agenda-container {
        grid-template-columns: 45px 1fr;
    }

    .vfx4-agenda-hour-label {
        font-size: 10px;
    }

    .vfx4-agenda-prof-header {
        font-size: 10px;
        padding: 8px 4px;
    }

    .vfx4-agenda-apt-client {
        font-size: 11px;
    }

    .vfx4-agenda-apt-service {
        display: none;
    }

    .vfx4-agenda-appointment {
        left: 2px;
        right: 2px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .vfx4-agenda-container {
        grid-template-columns: 38px 1fr;
    }

    .vfx4-agenda-hour-cell {
        height: 50px;
    }

    .vfx4-agenda-slot {
        height: 50px;
    }

    .vfx4-agenda-apt-time {
        font-size: 9px;
    }

    .vfx4-agenda-apt-client {
        font-size: 10px;
    }
}
/* ═══════════════════════════════════════════════════
   VFX.PT — CHAT EM TEMPO REAL
   ═══════════════════════════════════════════════════ */

/* ── Wrapper Principal ── */
.vfx4-chat-wrapper {
    display: flex;
    height: calc(100vh - 80px);
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.vfx4-chat-dashboard {
    margin: 20px;
    height: calc(100vh - 120px);
}

/* ── Autenticação necessária ── */
.vfx4-chat-auth-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.vfx4-chat-auth-card {
    text-align: center;
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    max-width: 440px;
}

    .vfx4-chat-auth-card h2 {
        color: #0D1B2A;
        margin: 20px 0 10px;
    }

    .vfx4-chat-auth-card p {
        color: #6C757D;
        margin-bottom: 24px;
    }

/* ── Sidebar: Lista de Conversas ── */
.vfx4-chat-sidebar {
    width: 360px;
    min-width: 360px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vfx4-chat-sidebar-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

    .vfx4-chat-sidebar-header h2 {
        margin: 0;
        font-size: 18px;
        color: #0D1B2A;
        font-weight: 700;
    }

.vfx4-chat-new-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #FF9900;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

    .vfx4-chat-new-btn:hover {
        background: #e68a00;
        transform: scale(1.1);
    }

/* ── Pesquisa na sidebar ── */
.vfx4-chat-search,
.vfx4-chat-sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

    .vfx4-chat-search input,
    .vfx4-chat-sidebar-search input {
        width: 100%;
        padding: 10px 14px 10px 36px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 14px;
        font-family: 'Inter', sans-serif;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px center no-repeat;
    }

        .vfx4-chat-search input:focus,
        .vfx4-chat-sidebar-search input:focus {
            border-color: #FF9900;
            box-shadow: 0 0 0 3px rgba(255,153,0,0.12);
        }

/* ── Filtros (dashboard) ── */
.vfx4-chat-filters {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.vfx4-chat-filter-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

    .vfx4-chat-filter-btn:hover {
        border-color: #FF9900;
        color: #FF9900;
    }

.vfx4-chat-filter-active {
    background: #FF9900 !important;
    color: #fff !important;
    border-color: #FF9900 !important;
}

.vfx4-chat-filter-count {
    background: #fff;
    color: #FF9900;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
    font-weight: 700;
}

/* ── Dashboard Header ── */
.vfx4-chat-dash-header {
    display: none; /* utilizado no dashboard, escondido por defeito */
}

.vfx4-chat-dashboard .vfx4-chat-dash-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #0D1B2A;
    color: #fff;
    border-radius: 16px 16px 0 0;
}

.vfx4-chat-dash-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.vfx4-chat-dash-badge {
    background: #FF9900;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ── Lista de Conversas ── */
.vfx4-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.vfx4-chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    margin-bottom: 2px;
}

    .vfx4-chat-item:hover {
        background: #e8e8e8;
    }

.vfx4-chat-item-active {
    background: #fff3e0 !important;
    border-left: 3px solid #FF9900;
}

.vfx4-chat-item-unread {
    background: #fdf6ec;
}


/* ═══════════════════════════════════════════════════
   CHAT — AVATARES DO LOGO (Quadrado arredondado)
   ═══════════════════════════════════════════════════ */

/* Sidebar: item da lista de conversas */
.vfx4-chat-item-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px; /* CANTOS arredondados, NÃO círculo */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* Fundo branco para PNG transparente */
    border: 1px solid #e9ecef;
    padding: 3px; /* Respiro em volta do logo */
}

    .vfx4-chat-item-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* MOSTRA O LOGO TODO, sem cortar */
        display: block;
        border-radius: 8px;
    }

/* Header: conversa ativa (topo) */
.vfx4-chat-header-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 3px;
}

    .vfx4-chat-header-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 8px;
    }

/* Placeholder de iniciais (quando não há logo) */
.vfx4-chat-item-avatar-placeholder,
.vfx4-chat-header-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    background: #FF9900; /* Cor de destaque em vez de cinza */
    letter-spacing: 1px;
}

/* Remove qualquer border-radius circular antigo que possa interferir */
.vfx4-chat-item-avatar,
.vfx4-chat-item-avatar img,
.vfx4-chat-item-avatar-placeholder,
.vfx4-chat-header-avatar,
.vfx4-chat-header-avatar img,
.vfx4-chat-header-avatar-placeholder {
    border-radius: 10px !important;
}







.vfx4-chat-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.vfx4-chat-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.vfx4-chat-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #0D1B2A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vfx4-chat-item-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    margin-left: 8px;
}

.vfx4-chat-item-preview {
    font-size: 13px;
    color: #777;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vfx4-chat-item-unread .vfx4-chat-item-name {
    font-weight: 800;
}

.vfx4-chat-item-unread .vfx4-chat-item-preview {
    color: #333;
    font-weight: 500;
}

.vfx4-chat-item-badge {
    background: #FF9900;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    position: absolute;
    top: 10px;
    right: 8px;
}

/* ── Painel Principal ── */
.vfx4-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-width: 0;
    position: relative;
}

/* ── Cabeçalho da Conversa ── */
.vfx4-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    z-index: 2;
}

.vfx4-chat-back-btn {
    display: none; /* escondido em desktop, visível em mobile */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0D1B2A;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

    .vfx4-chat-back-btn:hover {
        background: #f0f0f0;
    }


.vfx4-chat-header-info {
    flex: 1;
    min-width: 0;
}

    .vfx4-chat-header-info h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #0D1B2A;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.vfx4-chat-header-status {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.vfx4-chat-mark-read-btn {
    background: none;
    border: 1px solid #FF9900;
    color: #FF9900;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .vfx4-chat-mark-read-btn:hover {
        background: #FF9900;
        color: #fff;
    }

/* ── Área de Mensagens ── */
.vfx4-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

/* ── Bolha de Mensagem ── */
.vfx4-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: vfx4-chat-msg-in 0.2s ease-out;
}

@keyframes vfx4-chat-msg-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vfx4-chat-msg-sent {
    align-self: flex-end;
    align-items: flex-end;
}

.vfx4-chat-msg-received {
    align-self: flex-start;
    align-items: flex-start;
}

.vfx4-chat-msg-bubble {
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

.vfx4-chat-msg-sent .vfx4-chat-msg-bubble {
    background: #FF9900;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.vfx4-chat-msg-received .vfx4-chat-msg-bubble {
    background: #fff;
    color: #0D1B2A;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.vfx4-chat-msg-time {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
    padding: 0 4px;
}

.vfx4-chat-msg-sent .vfx4-chat-msg-time {
    text-align: right;
}

/* ── Separador de Data ── */
.vfx4-chat-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0 8px;
}

    .vfx4-chat-date-separator span {
        background: #e0e0e0;
        color: #555;
        font-size: 12px;
        font-weight: 600;
        padding: 4px 16px;
        border-radius: 12px;
        text-transform: capitalize;
    }

/* ── Indicador "A escrever..." ── */
.vfx4-chat-typing {
    opacity: 0.7;
}

.vfx4-chat-typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

    .vfx4-chat-typing-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #999;
        animation: vfx4-typing-bounce 1.4s infinite;
    }

        .vfx4-chat-typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .vfx4-chat-typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes vfx4-typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.vfx4-chat-typing-indicator {
    padding: 4px 24px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* ── Área de Input ── */
.vfx4-chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.vfx4-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    resize: none;
    max-height: 120px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8f9fa;
}

    .vfx4-chat-input:focus {
        border-color: #FF9900;
        box-shadow: 0 0 0 3px rgba(255,153,0,0.12);
        background: #fff;
    }

    .vfx4-chat-input::placeholder {
        color: #aaa;
    }

    .vfx4-chat-input:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.vfx4-chat-send-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: none;
    background: #FF9900;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .vfx4-chat-send-btn:hover:not(:disabled) {
        background: #e68a00;
        transform: scale(1.05);
    }

    .vfx4-chat-send-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }

.vfx4-chat-send-btn-neg {
    background: #0D1B2A;
}

    .vfx4-chat-send-btn-neg:hover:not(:disabled) {
        background: #1a3050;
    }

/* ── Respostas Rápidas (Dashboard) ── */
.vfx4-chat-quick-replies {
    display: flex;
    gap: 6px;
    padding: 8px 20px 0;
    overflow-x: auto;
    background: #fff;
    flex-wrap: nowrap;
}

.vfx4-chat-quick-reply {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

    .vfx4-chat-quick-reply:hover {
        border-color: #FF9900;
        color: #FF9900;
        background: #fff8f0;
    }

/* ── Estado Vazio ── */
.vfx4-chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
    padding: 40px;
}

    .vfx4-chat-empty-state h3 {
        color: #0D1B2A;
        margin: 16px 0 8px;
        font-size: 20px;
    }

    .vfx4-chat-empty-state p {
        color: #6C757D;
        margin-bottom: 24px;
        max-width: 300px;
    }

.vfx4-chat-empty-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

    .vfx4-chat-empty-list span {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .vfx4-chat-empty-list p {
        font-size: 14px;
        line-height: 1.6;
    }

.vfx4-chat-empty-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: #999;
    padding: 40px;
}

    .vfx4-chat-empty-messages span {
        font-size: 48px;
        margin-bottom: 8px;
    }

/* ── Loading ── */
.vfx4-chat-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
}

    .vfx4-chat-loading p {
        margin-top: 12px;
        font-size: 14px;
    }

/* Spinner */
.vfx4-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #FF9900;
    border-radius: 50%;
    animation: vfx4-spin 0.8s linear infinite;
}

.vfx4-spinner-small {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vfx4-spin 0.6s linear infinite;
}

@keyframes vfx4-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Modal Nova Conversa ── */
.vfx4-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vfx4-modal-fade-in 0.2s ease-out;
}

@keyframes vfx4-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.vfx4-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    animation: vfx4-modal-slide-up 0.3s ease-out;
}

@keyframes vfx4-modal-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vfx4-modal-nova-conversa {
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.vfx4-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

    .vfx4-modal-header h3 {
        margin: 0;
        font-size: 18px;
        color: #0D1B2A;
    }

.vfx4-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #555;
}

    .vfx4-modal-close:hover {
        background: #e0e0e0;
    }

.vfx4-modal-body {
    padding: 20px 24px;
}

/* ── Lista de Empresas (Modal) ── */
.vfx4-chat-empresa-list {
    max-height: 400px;
    overflow-y: auto;
}

.vfx4-chat-empresa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

    .vfx4-chat-empresa-item:hover {
        background: #f5f5f5;
    }

.vfx4-chat-empresa-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.vfx4-chat-empresa-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.vfx4-chat-empresa-info {
    flex: 1;
    min-width: 0;
}

    .vfx4-chat-empresa-info strong {
        display: block;
        font-size: 14px;
        color: #0D1B2A;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vfx4-chat-empresa-info span {
        font-size: 12px;
        color: #999;
    }

.vfx4-chat-empresa-arrow {
    color: #ccc;
    font-size: 18px;
}

.vfx4-chat-no-results {
    text-align: center;
    color: #999;
    padding: 30px;
    font-size: 14px;
}

.vfx4-chat-hint {
    text-align: center;
    color: #bbb;
    padding: 30px 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* ── Toast ── */
.vfx4-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    z-index: 10000;
    animation: vfx4-toast-in 0.3s ease-out;
    cursor: pointer;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.vfx4-toast-error {
    background: #dc3545;
    color: #fff;
}

@keyframes vfx4-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVO — MOBILE (< 768px)
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .vfx4-chat-wrapper {
        flex-direction: column;
        height: calc(100vh - 60px);
        border-radius: 0;
        margin: 0;
    }

    .vfx4-chat-dashboard {
        margin: 0;
        height: calc(100vh - 60px);
    }

    /* Em mobile, sidebar e main alternam */
    .vfx4-chat-sidebar {
        width: 100%;
        min-width: 100%;
        display: none; /* escondido por defeito */
    }

    .vfx4-chat-sidebar-visible {
        display: flex !important; /* mostra quando está na lista */
    }

    .vfx4-chat-main {
        display: none; /* escondido por defeito */
    }

    .vfx4-chat-main-visible {
        display: flex !important; /* mostra quando há conversa ativa */
    }

    .vfx4-chat-back-btn {
        display: flex !important; /* visível em mobile */
    }

    .vfx4-chat-sidebar-header h2 {
        font-size: 16px;
    }

    .vfx4-chat-header {
        padding: 10px 14px;
    }

    .vfx4-chat-header-info h3 {
        font-size: 14px;
    }

    .vfx4-chat-messages {
        padding: 12px 14px;
    }

    .vfx4-chat-msg {
        max-width: 85%;
    }

    .vfx4-chat-input-area {
        padding: 10px 14px;
    }

    .vfx4-chat-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .vfx4-chat-send-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .vfx4-chat-quick-replies {
        padding: 6px 14px 0;
        gap: 4px;
    }

    .vfx4-chat-quick-reply {
        font-size: 11px;
        padding: 5px 10px;
    }

    .vfx4-chat-filters {
        padding: 8px 12px;
    }

    .vfx4-chat-filter-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .vfx4-chat-dash-header h2 {
        font-size: 16px;
    }

    .vfx4-chat-mark-read-btn {
        display: none; /* escondido em mobile para poupar espaço */
    }

    .vfx4-modal-content {
        width: 98%;
        max-height: 90vh;
        border-radius: 16px;
    }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVO — Tablet (768px - 1024px)
   ═══════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
    .vfx4-chat-sidebar {
        width: 300px;
        min-width: 300px;
    }

    .vfx4-chat-msg {
        max-width: 80%;
    }
}

/* ═══════════════════════════════════════════════════
   SCROLLBAR PERSONALIZADA
   ═══════════════════════════════════════════════════ */

.vfx4-chat-messages::-webkit-scrollbar,
.vfx4-chat-list::-webkit-scrollbar {
    width: 6px;
}

.vfx4-chat-messages::-webkit-scrollbar-track,
.vfx4-chat-list::-webkit-scrollbar-track {
    background: transparent;
}

.vfx4-chat-messages::-webkit-scrollbar-thumb,
.vfx4-chat-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

    .vfx4-chat-messages::-webkit-scrollbar-thumb:hover,
    .vfx4-chat-list::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

.vfx4-nav-qr {
    background: #FF9900;
    color: white !important;
    border-radius: 8px;
    margin: 5px 0;
}
/* ════════════════ PARTILHA / CONVITE ════════════════ */
.vfx4-share-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin: 32px 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

    .vfx4-share-box p {
        margin: 12px 0 8px;
        color: #555;
    }

.vfx4-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.vfx4-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
    white-space: nowrap;
    background-color: #6c757d;
}

    .vfx4-share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        filter: brightness(1.05);
    }

    .vfx4-share-btn img,
    .vfx4-share-btn span {
        flex-shrink: 0;
    }

/* cores específicas */
.vfx4-share-btn-whatsapp {
    background: #25D366;
}

.vfx4-share-btn-facebook {
    background: #1877F2;
}

.vfx4-share-btn-twitter {
    background: #0F1419;
}

.vfx4-share-btn-email {
    background: #6C757D;
}

.vfx4-share-btn-copy {
    background: #fff;
    color: #0D1B2A;
    border: 1px solid #ccc;
    border-radius: 24px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

    .vfx4-share-btn-copy:hover {
        background: #f0f0f0;
    }

/* Responsivo */
@media (max-width: 480px) {
    .vfx4-share-buttons {
        flex-direction: column;
        align-items: center;
    }

        .vfx4-share-buttons a,
        .vfx4-share-buttons button {
            width: 80%;
            justify-content: center;
        }
}

/* App Mobile */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #0D1B2A;
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-title {
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
}

.app-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

.app-main {
    flex: 1;
    padding: 16px;
}

.vfx4-app-home {
    text-align: center;
}

.vfx4-app-welcome h2 {
    font-size: 22px;
    margin-bottom: 4px;
    color: #0D1B2A;
}

.vfx4-app-empty {
    margin: 32px 0;
    color: #6C757D;
}

.vfx4-app-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.vfx4-app-action-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #0D1B2A;
    cursor: pointer;
    transition: background 0.2s;
}

    .vfx4-app-action-btn:hover {
        background: #e9ecef;
    }

.app-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 22px;
    padding: 8px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   LOGOTIPOS — Estilização Global
   ═══════════════════════════════════════════════════ */

/* Logo na página pública do Negócio (Header) */
.vfx4-neg-topbar-logo {
    max-width: 56px !important;
    max-height: 56px !important;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #f8f9fa;
    padding: 2px;
}

/* Logo na Sidebar da Home (Destaques e Novos) */
.vfx4-sidebar-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    object-fit: contain !important;
    background: white;
    flex-shrink: 0;
    border: 1px solid #eee;
}

/* Logo na Listagem de Categorias */
.vfx4-category-business-logo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px !important;
    object-fit: contain !important;
    background-color: #fff;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

/* Logo no Preview das Definições */
.vfx4-def-preview-logo,
.vfx4-def-preview-logo-placeholder {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 12px !important;
    object-fit: contain;
    background-color: white;
}

/* Logo no Upload */
.vfx4-def-upload-preview {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #ddd;
}
.vfx4-chat-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #FF0000;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.app-badge {
    background: #FF0000;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    padding: 1px 4px;
    margin-left: 2px;
}
/* ═══════════════════════════════════════════
   CHAT — CORREÇÃO MOBILE (input visível + scroll)
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    .vfx4-chat-wrapper {
        height: 100dvh;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

        .vfx4-chat-wrapper .vfx4-chat-main.vfx4-chat-main-visible {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
        }

        .vfx4-chat-wrapper .vfx4-chat-messages {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 8px;
        }

        .vfx4-chat-wrapper .vfx4-chat-input-area {
            flex-shrink: 0;
            padding: 8px;
            background: #fff;
            border-top: 1px solid #e0e0e0;
            position: sticky;
            bottom: 0;
            z-index: 10;
        }

        .vfx4-chat-wrapper .vfx4-chat-input {
            width: 100%;
            min-height: 40px;
            max-height: 100px;
            resize: none;
        }
}
/* ══ Componente EstrelasInput ══ */
.vfx4-estrelas-input {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 32px;
    user-select: none;
}

.vfx4-estrela {
    cursor: pointer;
    transition: transform 0.1s, color 0.1s;
    outline: none;
}

    .vfx4-estrela:focus-visible {
        transform: scale(1.2);
        border-radius: 4px;
        box-shadow: 0 0 0 2px #FF9900;
    }

.vfx4-estrela-ativa {
    color: #FF9900;
}

.vfx4-estrela-inativa {
    color: #CED4DA;
}

.vfx4-estrela:hover {
    transform: scale(1.15);
}

.vfx4-estrelas-valor {
    font-size: 16px;
    color: #6C757D;
    margin-left: 8px;
    font-weight: 600;
}
.vfx4-chat-header-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .vfx4-chat-header-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.vfx4-chat-item {
    position: relative;
    padding-right: 35px; /* Espaço para o botão */
}

.vfx4-btn-terminar-conversa {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    opacity: 0; /* Invisível por defeito */
    transition: all 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.vfx4-chat-item:hover .vfx4-btn-terminar-conversa {
    opacity: 1; /* Aparece ao passar o rato */
}

.vfx4-btn-terminar-conversa:hover {
    background: rgba(0,0,0,0.1);
    color: #f44336; /* Vermelho ao focar */
}
