/* PALETA */
:root {
    --bg-main: #0b0b0d; /* fundo site */
    --brand: #c4005a; /* magenta */
    --wine: #5e0046; /* vinho escuro */
    --text: #eaeaea; /* cinza quase branco */
    --gold: #cba135; /* dourado */
    --nav-h: 77px; /* ajusta aqui se tua navbar mudar de altura */
    --nav-h-negative: -77px; /* negativo da navbar */
    --msg-header-h: 64px; /* alturas internas do módulo */ /* topo do chat */
    --msg-composer-h: 44px; /* área de escrever */
    --msg-search-h: 60px; /* busca da sidebar */
    --msg-module-h: calc(
        (100vh - var(--nav-h)) * 0.87
    ); /* 80% da tela desconsiderando a navbar fixa */
    /* paleta do teu site (CLARO) */
    --bg-app: #f5f6f8;
    --bg-card: #ffffff;
    --text-main: #222;
    --text-muted: #6f7782;
    --border: rgba(0, 0, 0, 0.06);
}
/* ---- NAVBAR FIXA + PALETA ---- */
.custom-navbar {
    z-index: 16;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 77px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;

    background-color: var(--brand) !important; /* magenta */
    color: var(--text);
    overflow: visible; /* garante dropdown visível */
}
.custom-navbar .container {
    overflow: visible;
}

/* Hover na BARRA inteira: vinho + letras quase brancas */
.custom-navbar:hover {
    background-color: var(--wine) !important;
    color: var(--text);
}

/* ====== LINKS ====== */
.custom-navbar .nav-link {
    color: var(--text) !important;
    border-bottom: none !important; /* tira qualquer sublinhado */
    text-decoration: none !important;
}
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
    color: var(--gold) !important; /* hover só muda a cor do texto */
}
/* Ativo: apenas texto dourado, sem linha */
.custom-navbar .nav-link.active {
    color: var(--gold) !important;
    border-bottom: none !important;
    text-decoration: none !important;
}

/* ====== BOTÕES ESQUERDA ====== */
.custom-navbar .btn {
    --bs-btn-border-width: 1px;
    --bs-btn-border-color: rgba(203, 161, 53, 0.65); /* dourado translúcido */
}
.custom-navbar .btn.btn-outline-success {
    color: var(--gold);
    border-color: var(--gold);
}
.custom-navbar .btn.btn-outline-success:hover {
    color: var(--bg-main);
    background-color: var(--gold);
    border-color: var(--gold);
}
.custom-navbar .btn.btn-primary {
    background-color: var(--wine);
    border-color: var(--wine);
}
.custom-navbar .btn.btn-primary:hover {
    background-color: #4b0038;
    border-color: #4b0038;
}

/* ====== DROPDOWN ====== */
/* trigger "Categoria": igual aos outros; quando aberto, dourado */
.custom-navbar .dropdown-toggle {
    color: var(--text) !important;
}
.custom-navbar .dropdown-toggle.show {
    color: var(--gold) !important;
}
/* seta acompanha a cor do texto */
.custom-navbar .dropdown-toggle::after {
    border-top-color: currentColor !important;
}
/* menu estilizado e alinhado ao trigger */
.custom-navbar .dropdown-menu {
    background-color: var(--wine);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.6rem;
    min-width: 12rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    z-index: 2000;
}
.custom-navbar .dropdown-item {
    color: var(--text);
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
}
.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
    background-color: var(--brand);
    color: var(--gold);
}

/* ====== TOGGLER (HAMBÚRGUER) ====== */
.custom-navbar .navbar-toggler {
    border-color: var(--gold);
}
.custom-navbar .navbar-toggler-icon {
    /* usa teu dourado #cba135 */
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23CBA135' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.custom-navbar:hover .navbar-toggler {
    border-color: var(--text);
}
.custom-navbar:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23EAEAEA' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Regras que você já tinha — agora escopadas à .custom-navbar */
.custom-navbar span {
    position: relative;
    top: 5px;
    background-position: 0 0;
    height: 51px;
    width: 177px;
    display: inline-block;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.custom-navbar a i {
    position: relative;
    top: -10px;
    font-size: 45px;
    height: 43px;
    width: 43px;
    line-height: 42px;
    text-align: center;
    margin-right: 10px;
    border-radius: 6px;
    transition: all 0.5s ease;
    color: var(--gold); /* ícones dourados */
}
.custom-navbar:hover a i {
    color: var(--text);
}

/* Botões custom (mantidos) */
.costum-button-gold {
    background-color: var(--gold);
    color: #ffffff;
}
.costum-button-gold:hover {
    background-color: #e6c200;
    color: #ffffff;
}
.costum-button-wine {
    background-color: var(--wine);
    color: #ffffff;
}
.costum-button-wine:hover {
    background-color: #4b0038;
    color: #ffffff;
}
.costum-button-brand {
    background-color: var(--brand);
    color: #ffffff;
}
.costum-button-brand:hover {
    background-color: #a3004a;
    color: #ffffff;
}

/* Links footer custom (mantidos) */
.custom-nav-link-footer a {
    color: var(--gold) !important;
    font-weight: bolder;
}
.custom-nav-link-footer a:hover {
    color: var(--wine) !important;
}
.custom-nav-link-footer {
    color: var(--gold) !important;
}
.custom-nav-link-footer:hover {
    color: var(--wine) !important;
}

/* Layout geral */
body {
    background-color: skyblue;
    font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #989898;
    margin: 10px;
    padding-top: 77px; /* Compensa navbar fixa */
}

/* Bootstrap navbar base (mantido) */
.navbar {
    z-index: 16;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: all 0.2s ease;
    height: 77px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    border-bottom: 1px solid transparent;
}
.navbar span {
    position: relative;
    top: 5px;
    background-position: 0 0;
    height: 51px;
    width: 177px;
    display: inline-block;
    -webkit-transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    -o-transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.navbar a i {
    position: relative;
    top: -10px;
    font-size: 45px;
    height: 43px;
    width: 43px;
    line-height: 42px;
    text-align: center;
    margin-right: 10px;
    border-radius: 6px;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

/* Carousel controls (mantidos) */
.carousel-control-prev,
.carousel-control-next {
    /*background: black;*/
    width: 4.5% !important;
    transition: opacity 0.2s ease-in;
}
.carousel-control-next-icon {
    background-image: url(https://image.flaticon.com/icons/svg/481/481146.svg) !important;
    transform: rotate(180deg);
}
.carousel-control-prev-icon {
    background-image: url(https://image.flaticon.com/icons/svg/481/481146.svg) !important;
}
.carousel-control-next-icon,
.carousel-control-prev-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
}
.carousel-control-next {
    right: -70px;
}
.carousel-control-prev {
    left: -70px;
}

.bisc {
    color: white;
    margin-right: 0px;
    background: linear-gradient(
        to left bottom,
        #4c68d7,
        #8a3ab9,
        #cd486b,
        #fb8750,
        #ff9800
    );
    transform: rotate(360deg) scale(1.1);
}

#demo {
    height: 100%;
    position: relative;
    overflow: hidden;
}
.green {
    background-color: #6fb936;
}
.page-top {
    margin-top: 150px;
}
.portfolio-item {
    margin-bottom: 30px;
}

.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: none;
    border-radius: 0.25rem;
}

.myback-img {
    display: flex;
    justify-content: center;
    height: 372px;
    overflow: hidden;
    object-fit: cover;
    border-radius: 0.25rem;
}
.myoverlay {
    position: absolute;
    background: -webkit-linear-gradient(
        top,
        transparent 0%,
        rgba(0, 0, 0, 0.72) 100%
    );
    height: 100%;
    width: 100%;
    top: 0;
}
.card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 0;
}

.avatar-profile img {
    width: 90px;
    height: 90px;
    border-radius: 100%;
    overflow: hidden;
    opacity: 0.9;
    object-fit: cover;
    -o-object-fit: cover;
}
.borders {
    position: relative;
    border: 5px solid #fff;
    border-radius: 100%;
}
.borders:before {
    content: " ";
    position: absolute;
    z-index: -1;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 100%;
    background-image: linear-gradient(90deg, #fda240, #c5087e),
        linear-gradient(90deg, #fda240, #c5087e);
    background-position: 0 0px, 100% 100%;
    background-size: 100% 5px;
    border-left: 5px solid #fda240;
    border-right: 5px solid #c5087e;
    padding: 10px 5px;
}
.profile-img {
    position: absolute;
    top: 71%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.profile-title {
    text-align: center;
    position: relative;
    top: -39px;
    margin-bottom: -26px;
}
.profile-title h3 {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0;
}

a:hover {
    text-decoration: none !important;
}

/* -- carousel css -- */
@media (min-width: 768px) {
    /* show 3 items */
    .carousel-inner .active,
    .carousel-inner .active + .carousel-item,
    .carousel-inner .active + .carousel-item + .carousel-item,
    .carousel-inner .active + .carousel-item + .carousel-item + .carousel-item {
        display: block;
    }
    .carousel-inner .carousel-item-next,
    .carousel-inner .carousel-item-prev {
        position: relative;
        transform: translate3d(0, 0, 0);
    }
    .carousel-inner
        .active.carousel-item
        + .carousel-item
        + .carousel-item
        + .carousel-item
        + .carousel-item {
        position: absolute;
        top: 0;
        right: -25%;
        z-index: -1;
        display: block;
        visibility: visible;
    }
    .active.carousel-item-left + .carousel-item-next.carousel-item-left,
    .carousel-item-next.carousel-item-left + .carousel-item,
    .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item,
    .carousel-item-next.carousel-item-left
        + .carousel-item
        + .carousel-item
        + .carousel-item,
    .carousel-item-next.carousel-item-left
        + .carousel-item
        + .carousel-item
        + .carousel-item
        + .carousel-item {
        position: relative;
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
    .carousel-inner .carousel-item-prev.carousel-item-right {
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        display: block;
        visibility: visible;
    }
    .active.carousel-item-right + .carousel-item-prev.carousel-item-right,
    .carousel-item-prev.carousel-item-right + .carousel-item,
    .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item,
    .carousel-item-prev.carousel-item-right
        + .carousel-item
        + .carousel-item
        + .carousel-item,
    .carousel-item-prev.carousel-item-right
        + .carousel-item
        + .carousel-item
        + .carousel-item
        + .carousel-item {
        position: relative;
        transform: translate3d(100%, 0, 0);
        visibility: visible;
        display: block;
        visibility: visible;
    }
}
#profilesCarousel .carousel-inner {
    display: flex;
}
#profilesCarousel .carousel-item {
    display: block;
    flex: 0 0 25%;
    margin-right: 0;
}
@media (max-width: 991.98px) {
    #profilesCarousel .carousel-item {
        flex: 0 0 33.3333%;
    }
}
@media (max-width: 767.98px) {
    #profilesCarousel .carousel-item {
        flex: 0 0 50%;
    }
}
@media (max-width: 575.98px) {
    #profilesCarousel .carousel-item {
        flex: 0 0 100%;
    }
}
/* ===== Modais padrão da marca ===== */
.costum-modal .modal-dialog {
    max-width: 480px;
}
/*=======================carousel no perfil da pessoa======================*/
.stories-strip {
    position: relative;
}

/* aproximação entre itens */
#storiesScroller {
    gap: 6px;
    padding: 0 6px;
}

.story-item {
    width: 70px; /* compacto */
    display: flex;
    flex-direction: column; /* nome embaixo */
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
    margin: 0;
}

.story-ring {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    padding: 3px; /* espessura do anel rosa */
    background: conic-gradient(#ff2da1, #ff7ab6);
    display: inline-block;
}
.story-ring-inner {
    border-radius: 50%;
    padding: 2px; /* filete branco */
    background: #fff;
    display: block;
    width: 100%;
    height: 100%;
}
.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.story-name {
    margin-top: 4px;
    font-size: 0.75rem;
    line-height: 1.1;
    color: #222;
    width: 66px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stories-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/*=====================modal========================*/
.costum-modal .modal-content {
    background: var(--bg-main);
    color: var(--text);
    border: 1px solid rgba(203, 161, 53, 0.25); /* dourado translúcido */
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.costum-modal .modal-header {
    background: linear-gradient(180deg, var(--brand), var(--wine));
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.costum-modal .modal-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.costum-modal .btn-close {
    filter: invert(1) contrast(120%);
    opacity: 0.9;
}
.costum-modal .btn-close:hover {
    opacity: 1;
}

.costum-modal .modal-body {
    background: var(--bg-main);
}

/* Footer da modal: texto mais legível */
.costum-modal .modal-footer {
    background: #15151a; /* um tom + claro que #0f0f12 */
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.costum-modal .modal-footer small,
.costum-modal .modal-footer .text-muted {
    color: var(--gold) !important; /* quase branco */
    opacity: 1 !important; /* garante que não fique “lavado” */
}

/* Se tiver links no footer da modal */
.costum-modal .modal-footer a {
    color: var(--gold);
    text-decoration: none;
}
.costum-modal .modal-footer a:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Botões padrão dentro das modais da marca */
.costum-modal .btn.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}
.costum-modal .btn.btn-primary:hover,
.costum-modal .btn.btn-primary:focus {
    background-color: var(--wine);
    border-color: var(--wine);
    color: var(--text);
}

.costum-modal .btn.btn-outline-primary {
    color: var(--gold);
    border-color: var(--gold);
    font-weight: 600;
    background: transparent;
}
.costum-modal .btn.btn-outline-primary:hover,
.costum-modal .btn.btn-outline-primary:focus {
    color: var(--bg-main);
    background-color: var(--gold);
    border-color: var(--gold);
}

/* Foco visível e backdrop mais escuro */
.costum-modal .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(203, 161, 53, 0.35);
    outline: none;
}
.modal-backdrop.show {
    opacity: 0.3;
}

/* Transições suaves */
@media (prefers-reduced-motion: no-preference) {
    .costum-modal .modal-content {
        transition: transform 0.2s ease, box-shadow 0.2s ease,
            border-color 0.2s ease;
    }
    .costum-modal .btn {
        transition: background-color 0.15s ease, color 0.15s ease,
            border-color 0.15s ease, box-shadow 0.15s ease;
    }
}

/* ====== Cartão da conta login e criar (forms) ====== */
/* Layout do container do form */
.auth-shell {
    max-width: 920px;
    margin: 0 auto;
}
.auth-card--plain {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.auth-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #5a5a5a;
}

/* Inputs bonitos e iguais */
.brand-form .form-label {
    color: #333 !important;
    font-weight: 600;
    margin-bottom: 0.45rem;
}
.brand-form .form-control,
.brand-form .form-select {
    height: 48px; /* mesma altura */
    background-color: #fff;
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px; /* cantos arredondados */
    width: 100%;
}
.brand-form .form-control[type="date"] {
    height: 48px;
}
.brand-form textarea.form-control {
    min-height: 120px;
}
.brand-form .form-control:focus,
.brand-form .form-select:focus {
    background-color: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 0.22rem rgba(203, 161, 53, 0.25);
}

/* Espaço vertical entre campos (g-4 já ajuda) */
.brand-form .mb-3 {
    margin-bottom: 0 !important;
} /* o tema bootstrap coloca mb-3; já usamos g-4 */

/* Checkboxes organizados */
.brand-form .form-check {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    margin-bottom: 8px;
}
.brand-form .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 8px;
    border-radius: 0.35rem;
    border: 1px solid rgba(0, 0, 0, 0.35);
}
.brand-form .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 0.15rem rgba(196, 0, 90, 0.15);
}
.brand-form .form-check-label {
    color: #333;
}

/* Ajuda/erros */
.brand-form .form-text {
    color: #6c757d;
}
.brand-form .invalid-feedback {
    color: #b1005a;
}

/* Botão padrão da marca */
.brand-form .btn.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    font-weight: 700;
}
.brand-form .btn.btn-primary:hover,
.brand-form .btn.btn-primary:focus {
    background-color: var(--wine);
    border-color: var(--wine);
    color: var(--text);
}

/* ====== MESSAGES (WhatsApp-style) – usa a paleta existente ====== */

/* =========================
   CONTAINER DO MÓDULO
   ========================= */
/* container do módulo: não deixa a página rolar */
.messages-page {
    height: var(--msg-module-h);
    margin-top: var(--nav-h-negative); /* compensa a navbar fixa */
    overflow: hidden;
    background: var(--bg-app); /* CLARO */
    color: var(--text-main); /* texto padrão escuro no layout */
}

/* layout base */
.messages-wrapper {
    height: 100%;
    display: flex;
}

/* =========================
   SIDEBAR (conversas)
   ========================= */
.messages-sidebar {
    width: 340px;
    max-width: 100%;
    background: #ffffff; /* CLARO */
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* busca fixa no topo da sidebar */
.conv-search {
    height: var(--msg-search-h);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff; /* CLARO */
    position: sticky;
    top: 0;
    z-index: 2;
}
.conv-search .input-group-text {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #666;
}
.conv-search input {
    background: #ffffff;
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.conv-search input::placeholder {
    color: #8a8f98;
}

/* lista com rolagem própria */
.conversations {
    height: calc(100% - var(--msg-search-h));
    overflow-y: auto;
}
.conversations::-webkit-scrollbar,
.chat-scroll::-webkit-scrollbar {
    width: 8px;
}
.conversations::-webkit-scrollbar-thumb,
.chat-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
.conversations::-webkit-scrollbar-track,
.chat-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.conv-item {
    cursor: pointer;
    color: #222;
    transition: background 0.15s ease, border-color 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.conv-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
.conv-item.active {
    background: rgba(203, 161, 53, 0.14);
    border-left: 3px solid var(--gold);
}
.conv-item .avatar {
    width: 46px;
    height: 46px;
    background: #eceff3;
    border-radius: 50%;
}

/* =========================
   ÁREA PRINCIPAL (chat)
   ========================= */
.messages-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%; /* importante p/ o calc() do chat-scroll */
    background: #ffffff; /* CLARO */
}

.messages-header {
    height: var(--msg-header-h);
    background: #ffffff;
    color: #222; /* CLARO */
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}
.messages-header .text-muted {
    color: #6f7782 !important;
}
.messages-header .btn.btn-sm {
    color: #333;
    border-color: rgba(0, 0, 0, 0.18);
}
.messages-header .btn.btn-sm:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.25);
    color: #111;
}

/* histórico com rolagem própria (NÃO a página) */
.chat-scroll {
    /* mantém tua rolagem + garante que o composer não cubra nada */
    height: calc(100% - var(--msg-composer-h));
    overflow-y: auto !important;
    padding: 16px;
    padding-bottom: calc(var(--msg-composer-h) + 8px); /* espaço seguro */
    background: #f5f6f8; /* CLARO */
}
/* miniaturas redondas cortadas certinho */
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* =========================
   BOLHAS
   ========================= */
.bubble {
    max-width: min(75%, 560px);
    padding: 0.6rem 0.85rem;
    border-radius: 16px;
    margin-bottom: 0.35rem;
    position: relative;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    color: #fff; /* texto branco por padrão */
}

/* RECEBIDAS = VINHO, texto branco */
.bubble.in {
    background: var(--wine) !important; /* #5e0046 */
    border: 1px solid #480035 !important;
    color: #fff !important;
}

/* ENVIADAS = DOURADO, texto branco */
.bubble.out {
    background: var(--gold) !important; /* #cba135 */
    border: 1px solid #a7821f !important;
    color: #fff !important;
}

.msg-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 8px;
}
.msg-row.in {
    justify-content: flex-start;
}
.msg-row.out {
    justify-content: flex-end;
}

/* timestamps legíveis nos dois lados */
.timestamp {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.92); /* branco sutil sobre vinho/dourado */
}

/* =========================
   COMPOSER (sempre visível)
   ========================= */
.composer {
    height: var(--msg-composer-h);
    flex: 0 0 var(--msg-composer-h);
    background: #ffffff; /* CLARO */
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;

    /* chave p/ não sumir: */
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.composer-form {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.composer-input {
    flex: 1 1 auto;
    height: 40px; /* ligeiramente maior p/ toque */
    line-height: 40px;
    background: #ffffff; /* CLARO */
    color: #111;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 0 0.75rem;
}
.composer-input::placeholder {
    color: #6a6a6a;
}
.btn-light.btn-sm {
    background: #f2f2f5;
    color: #111;
    border: 1px solid #d9d9df;
    height: 40px;
    border-radius: 10px;
}
.btn-primary.btn-sm {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    height: 40px;
    border-radius: 10px;
}
.btn-primary.btn-sm:hover {
    background: #a3004a;
    border-color: #a3004a;
}

/* =========================
   RESPONSIVO
   ========================= */
@media (max-width: 992px) {
    .messages-wrapper {
        flex-direction: column;
    }
    .messages-sidebar {
        width: 100%;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
}

/***********************************/
/* ========video chat ===============*/

/* --- Layout geral --- */
.vc-page {
    height: calc(90vh - 77px);
    margin-top: -77px;
    background: #0b0b0d;
}
.vc-shell {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1rem;
    height: 100%;
}
@media (max-width: 992px) {
    .vc-shell {
        grid-template-columns: 1fr;
    }
}

/* --- Stage de vídeo --- */
.vc-stage {
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
}
.vc-videos {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.vc-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    border-radius: 0.75rem;
}
.vc-pip {
    position: absolute;
    right: 1rem;
    bottom: 5.5rem;
    width: 260px;
    max-width: 40%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@media (max-width: 576px) {
    .vc-pip {
        width: 180px;
    }
}
.vc-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: rgba(0, 0, 0, 0.55);
    color: #eaeaea;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
}
.vc-name {
    position: absolute;
    left: 1rem;
    bottom: 6.2rem;
    background: rgba(0, 0, 0, 0.55);
    color: #eaeaea;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.9rem;
}

/* --- Barra de controles --- */
.vc-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.55) 35%,
        rgba(0, 0, 0, 0.75) 100%
    );
}
.vc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #1b1b1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eaeaea;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    min-width: 44px;
    min-height: 44px;
}
.vc-btn:hover {
    background: #232329;
}
.vc-btn.danger {
    background: #c4005a;
    border-color: #c4005a;
}
.vc-btn.active {
    outline: 2px solid #cba135;
}

/* --- Sidebar --- */
.vc-side {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.vc-panel {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    color: #eaeaea;
}
.vc-panel + .vc-panel {
    margin-top: 1rem;
}
.vc-panel header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vc-participants {
    max-height: 32vh;
    overflow: auto;
}
.vc-participant {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.vc-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2ecc71;
}
.vc-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.vc-chat-body {
    flex: 1;
    overflow: auto;
    padding: 1rem;
}
.vc-msg {
    margin-bottom: 0.75rem;
}
.vc-msg .from {
    font-size: 0.8rem;
    opacity: 0.7;
}
.vc-msg .bubble {
    background: #1b1b1f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-block;
    padding: 0.5rem 0.7rem;
    border-radius: 0.7rem;
    margin-top: 0.15rem;
}
.vc-chat-send {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.vc-chat-send .form-control {
    background: #141417;
    border: none;
    color: #eaeaea;
}
.vc-chat-send .btn {
    background: #cba135;
    border: none;
    color: #131313;
}
.vc-chat-send .btn:hover {
    filter: brightness(1.05);
}

/*=========================
carousel publicidade
0000000000000000000000000*/
.stories-carousel {
    scroll-snap-type: x mandatory;
}
.story-item {
    scroll-snap-align: start;
    text-align: center;
}
.story-img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #ccc;
    transition: transform 0.2s ease;
}
.story-img:hover {
    transform: scale(1.05);
    border-color: #cba135; /* dourado opcional */
}
.story-title {
    font-size: 0.9rem;
    margin-top: 6px;
    color: #fff;
}
.stories-carousel::-webkit-scrollbar {
    height: 6px;
}
.stories-carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}
/* wrapper: controla altura e posiciona as setas nas laterais */
.stories-wrap {
    position: relative;
    overflow: hidden; /* nada vaza pra baixo */
    padding-inline: 44px; /* espaço interno p/ as setas */
}

/* trilho horizontal */
.stories-carousel {
    display: flex;
    flex-wrap: nowrap; /* NÃO quebrar linha */
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.stories-carousel::-webkit-scrollbar {
    display: none;
}

/* item e imagem retangular */
.story-item {
    width: 120px;
    flex: 0 0 auto;
    text-align: center;
    scroll-snap-align: start;
}
.story-img {
    width: 120px;
    height: 176px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: block;
}
.story-img:hover {
    transform: scale(1.04);
    border-color: #cba135;
}
.story-title {
    font-size: 0.9rem;
    margin-top: 6px;
}

/* setas: uma em cada lado, centralizadas verticalmente */
.stories-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.stories-nav-left {
    left: 6px;
}
.stories-nav-right {
    right: 6px;
}
.stories-nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

/* responsivo */
@media (min-width: 992px) {
    .story-item,
    .story-img {
        width: 130px;
    }
    .story-img {
        height: 190px;
    }
}
