/* ChatTrade Front Topbar - login/logout/avatar */
.ct-front-topbar {
    position: sticky;
    top: 0;
    z-index: 12000;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 24px;
    background: rgba(2, 6, 23, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.ct-front-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    color: #fff;
    text-decoration: none;
}

.ct-front-brand:hover {
    color: #fff;
}

.ct-front-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #00c6ff, #0072ff 55%, #7c3aed);
    color: #fff;
    font-weight: 900;
    letter-spacing: -.05em;
    box-shadow: 0 0 34px rgba(0, 114, 255, .45);
}

.ct-front-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.ct-front-brand-copy strong {
    font-size: 18px;
    font-weight: 900;
}

.ct-front-brand-copy small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.ct-front-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.ct-front-nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: .18s ease;
}

.ct-front-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.ct-front-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 260px;
}

.ct-auth-user,
.ct-auth-guest {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ct-auth-user {
    padding: 7px 8px 7px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.ct-auth-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #00c6ff 52%, #7c3aed);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(0, 198, 255, .28);
}

.ct-auth-user-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
    padding-right: 4px;
}

.ct-auth-user-info strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.ct-auth-user-info small {
    margin-top: 5px;
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
}

.ct-auth-form {
    margin: 0;
}

.ct-auth-login,
.ct-auth-register,
.ct-auth-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    transition: .18s ease;
    cursor: pointer;
}

.ct-auth-login {
    color: #fff;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    box-shadow: 0 14px 32px rgba(0, 114, 255, .28);
}

.ct-auth-register {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
}

.ct-auth-logout {
    color: #fecaca;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .25);
}

.ct-auth-login:hover,
.ct-auth-register:hover,
.ct-auth-logout:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.ct-auth-login .material-symbols-outlined {
    font-size: 19px;
}

@media (max-width: 991px) {
    .ct-front-topbar {
        position: relative;
        flex-wrap: wrap;
        padding: 12px 14px;
    }

    .ct-front-brand {
        min-width: 0;
    }

    .ct-front-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-top: 4px;
    }

    .ct-front-account {
        min-width: 0;
    }
}

@media (max-width: 575px) {
    .ct-front-brand-copy small,
    .ct-auth-user-info,
    .ct-auth-register {
        display: none;
    }

    .ct-auth-user {
        padding: 6px;
    }

    .ct-auth-logout,
    .ct-auth-login {
        min-height: 40px;
        padding: 10px 12px;
    }

    .ct-front-nav-link {
        font-size: 13px;
        padding: 9px 12px;
    }
}


.ct-auth-avatar-link,
.ct-auth-user-info {
    color: inherit;
    text-decoration: none;
}

.ct-auth-avatar-link:hover,
.ct-auth-user-info:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
}

.ct-login-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    background: radial-gradient(circle at 20% 0%, rgba(0, 198, 255, .24), transparent 34%), rgba(15, 23, 42, .96);
    color: #fff;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .52);
    overflow: hidden;
}

.ct-login-modal .modal-title {
    font-weight: 900;
    letter-spacing: -.03em;
}

.ct-login-kicker {
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ct-login-help {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.45;
}

.ct-google-login {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    border-radius: 18px;
    color: #0f172a;
    background: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.ct-google-login:hover {
    color: #0f172a;
    filter: brightness(.96);
}

.ct-google-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #4285f4, #34a853 45%, #fbbc05 70%, #ea4335);
    font-weight: 900;
}

.ct-forgot-link {
    display: block;
    margin-top: 18px;
    color: #7dd3fc;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.ct-forgot-link:hover {
    color: #bae6fd;
}

/* Correção definitiva: modal de login acima da topbar/sidebar e fora de stacking conflict */
body.modal-open .ct-front-topbar {
    z-index: 1000 !important;
}

body.modal-open .sidebar {
    z-index: 900 !important;
}

.ct-login-modal.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 250000 !important;
    padding: 16px !important;
}

.ct-login-modal .modal-dialog {
    z-index: 250001 !important;
    margin: 1.75rem auto !important;
}

.modal-backdrop {
    z-index: 249999 !important;
}

body.modal-open {
    overflow: hidden !important;
}

.ct-register-user-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: #38bdf8;
    font-weight: 800;
    text-decoration: none;
}

.ct-register-user-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}


/* Sidebar toggle com cookie - não altera a barra de login */
.sidebar {
    display: flex;
    flex-direction: column;
    transition: transform .24s ease, opacity .24s ease;
}

.sidebar .logo-area,
.sidebar .menu-item,
.sidebar a.menu-item {
    flex: 0 0 auto;
}

.sidebar-toggle-bottom {
    margin-top: auto;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    padding: 13px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .06);
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.sidebar-toggle-bottom:hover {
    color: #fff;
    background: rgba(0, 198, 255, .16);
}

.sidebar-restore-button {
    position: fixed;
    left: 14px;
    bottom: 18px;
    z-index: 6500;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    display: none;
    place-items: center;
    color: #fff;
    background: rgba(15, 23, 42, .92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
    cursor: pointer;
}

body.front-sidebar-collapsed .sidebar {
    transform: translateX(-106%);
    opacity: 0;
    pointer-events: none;
}

body.front-sidebar-collapsed .content {
    margin-left: 0 !important;
}

body.front-sidebar-collapsed .sidebar-restore-button {
    display: grid;
}

@media (max-width: 991px) {
    .ct-front-topbar {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .ct-front-nav {
        grid-column: 1 / -1;
        order: initial;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .ct-front-account {
        justify-content: flex-end;
    }

    .sidebar {
        position: fixed !important;
        left: 0;
        top: 76px;
        width: min(270px, 86vw) !important;
        height: calc(100vh - 76px) !important;
        z-index: 6200;
    }

    .content {
        margin-left: 0 !important;
    }
}

@media (max-width: 575px) {
    .ct-front-topbar {
        padding: 10px 12px;
    }

    .ct-front-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .ct-auth-guest {
        gap: 6px;
    }
}

/* Ajustes finais: responsividade, sidebar discreta e páginas públicas */
.sidebar-divider {
    height: 1px;
    margin: 10px 4px 14px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}

.sidebar-toggle-bottom {
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    align-self: flex-start;
    margin-top: auto !important;
}

.sidebar-toggle-bottom .material-symbols-outlined {
    font-size: 23px;
}

.sidebar-toggle-text {
    display: none !important;
}

.ct-front-topbar {
    overflow: visible;
}

.ct-front-account {
    flex: 0 1 auto;
}

.ct-auth-guest {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.ct-auth-login,
.ct-auth-register,
.ct-auth-logout {
    white-space: nowrap;
}

.ct-public-page,
.ct-avatar-page {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.ct-public-hero,
.ct-avatar-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: clamp(28px, 4vw, 56px);
    border: 1px solid rgba(255,255,255,.10);
    background:
        radial-gradient(circle at 12% 10%, rgba(0,198,255,.22), transparent 28%),
        radial-gradient(circle at 92% 0%, rgba(124,58,237,.22), transparent 30%),
        linear-gradient(135deg, rgba(15,23,42,.96), rgba(2,6,23,.96));
    box-shadow: 0 26px 80px rgba(0,0,0,.32);
}

.ct-public-hero::after,
.ct-avatar-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -120px;
    border-radius: 999px;
    background: rgba(0,198,255,.12);
    filter: blur(6px);
    animation: ctFloatGlow 5s ease-in-out infinite alternate;
}

.ct-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #a78bfa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ct-public-hero h1,
.ct-avatar-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .98;
    font-weight: 950;
    letter-spacing: -.06em;
}

.ct-public-hero p,
.ct-avatar-hero p {
    margin: 18px 0 0;
    max-width: 780px;
    color: rgba(255,255,255,.76);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.55;
}

.ct-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.ct-faq-list details {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    padding: 0;
    background: rgba(15,23,42,.72);
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
    overflow: hidden;
}

.ct-faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ct-faq-list summary::-webkit-details-marker {
    display: none;
}

.ct-faq-list summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    color: #7dd3fc;
    background: rgba(125,211,252,.10);
}

.ct-faq-list details[open] summary::after {
    content: "−";
}

.ct-faq-list p {
    margin: 0;
    padding: 0 22px 22px;
    color: rgba(255,255,255,.70);
    line-height: 1.6;
}

.ct-avatar-card-centered {
    width: min(860px, 100%);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 30px;
    padding: clamp(22px, 3vw, 34px);
    background: rgba(15,23,42,.72);
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.ct-avatar-preview {
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 25%, rgba(0,198,255,.32), transparent 24%),
        linear-gradient(145deg, rgba(15,23,42,.95), rgba(2,6,23,.96));
    border: 1px solid rgba(255,255,255,.12);
}

.ct-avatar-face {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe0bd, #c68642);
    position: relative;
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.ct-avatar-face::before,
.ct-avatar-face::after {
    content: "";
    position: absolute;
    top: 58px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0f172a;
}

.ct-avatar-face::before { left: 42px; }
.ct-avatar-face::after { right: 42px; }

.ct-avatar-mouth {
    position: absolute;
    left: 50%;
    bottom: 38px;
    width: 44px;
    height: 13px;
    transform: translateX(-50%);
    border-radius: 0 0 40px 40px;
    background: #7f1d1d;
    animation: ctMouth 1.2s ease-in-out infinite;
}

.ct-avatar-info h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 950;
    letter-spacing: -.04em;
}

.ct-avatar-info p {
    margin: 14px 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
}

.ct-avatar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ct-avatar-pills span {
    border: 1px solid rgba(125,211,252,.20);
    border-radius: 999px;
    padding: 9px 12px;
    color: #bae6fd;
    background: rgba(14,165,233,.08);
    font-size: 13px;
    font-weight: 800;
}

@keyframes ctFloatGlow {
    from { transform: translateY(0); opacity: .55; }
    to { transform: translateY(-18px); opacity: .95; }
}

@keyframes ctMouth {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

@media (max-width: 991px) {
    .ct-front-topbar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ct-front-brand {
        min-width: 0 !important;
        max-width: 220px;
    }

    .ct-front-nav {
        display: none !important;
    }

    .ct-front-account {
        min-width: 0 !important;
        width: auto;
        justify-self: end;
    }

    .sidebar .logo-area {
        display: none !important;
    }

    .sidebar {
        padding-top: 16px !important;
    }

    .ct-faq-list {
        grid-template-columns: 1fr;
    }

    .ct-avatar-card-centered {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .ct-front-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .ct-front-brand {
        max-width: 165px;
    }

    .ct-front-brand-copy strong {
        font-size: 15px;
    }

    .ct-auth-login,
    .ct-auth-register,
    .ct-auth-logout {
        min-height: 38px !important;
        padding: 9px 10px !important;
        font-size: 12px !important;
    }

    .ct-auth-login .material-symbols-outlined {
        display: none;
    }

    .ct-auth-guest {
        gap: 6px;
    }

    .hero {
        padding: 26px !important;
        border-radius: 24px !important;
    }
}


/* Ajustes 2026-05: centralização, FAQ acordeon, slug, histórico e responsivo */
.content > .hero {
    width: min(1220px, 100%);
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.content > .hero h1,
.content > .hero p,
.content > .hero .status {
    margin-left: auto;
    margin-right: auto;
}

.client-page-center {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.client-page-center .client-brand-card {
    width: min(980px, 100%);
    margin: 0 auto 22px;
    justify-content: center;
}

.client-default-logo {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #e0f2fe;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 28%),
        linear-gradient(135deg, #0ea5e9, #2563eb 55%, #7c3aed);
    box-shadow: 0 18px 46px rgba(14,165,233,.28);
}

.client-default-logo .material-symbols-outlined {
    font-size: 42px;
}

.client-page-center .front-chat-shell {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.ct-faq-page {
    max-width: 980px;
}

.ct-faq-list {
    grid-template-columns: 1fr !important;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.ct-faq-list details {
    border-radius: 24px;
}

.ct-faq-list details[open] {
    border-color: rgba(56,189,248,.38);
    box-shadow: 0 24px 70px rgba(14,165,233,.14);
}

.front-history-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.front-history-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em;
    color: #cbd5e1;
    background: rgba(148,163,184,.12);
    border: 1px solid rgba(148,163,184,.18);
}

.front-history-status.is-open {
    color: #bbf7d0;
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.25);
}

.front-history-status.is-waiting {
    color: #fde68a;
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.26);
}

.front-history-status.is-progress {
    color: #bae6fd;
    background: rgba(14,165,233,.12);
    border-color: rgba(14,165,233,.26);
}

.front-history-status.is-finished {
    color: #e9d5ff;
    background: rgba(168,85,247,.12);
    border-color: rgba(168,85,247,.26);
}

@media (max-width: 991px) {
    .content {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .client-page-center .client-brand-card {
        justify-content: flex-start;
    }

    .sidebar-restore-button {
        left: auto !important;
        right: 14px !important;
        bottom: 18px !important;
        z-index: 9000 !important;
    }

    body.front-sidebar-collapsed .sidebar-restore-button {
        display: grid !important;
    }

    .sidebar-toggle-bottom {
        position: sticky;
        bottom: 10px;
    }
}

@media (max-width: 575px) {
    .client-brand-card {
        align-items: flex-start;
        gap: 12px;
        padding: 14px !important;
    }

    .client-brand-card img,
    .client-default-logo {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 16px;
    }

    .client-default-logo .material-symbols-outlined {
        font-size: 32px;
    }

    .client-brand-title {
        font-size: 22px !important;
    }
}


/* =========================================================
   FIX FINAL - topbar/menu responsivo sem scroll horizontal
========================================================= */
.ct-front-topbar {
    overflow: visible !important;
}

@media (max-width: 991px) {
    .ct-front-topbar {
        min-height: 76px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px 10px !important;
        padding: 10px 12px !important;
    }

    .ct-front-brand {
        min-width: 0 !important;
    }

    .ct-front-nav {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        overflow: hidden !important;
        padding-top: 0 !important;
    }

    .ct-front-nav-link {
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 6px !important;
        text-align: center !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }

    .ct-front-account {
        min-width: 0 !important;
        max-width: 46vw !important;
        overflow: hidden !important;
        justify-content: flex-end !important;
    }

    .ct-auth-user {
        max-width: 100% !important;
    }
}

@media (max-width: 575px) {
    .ct-front-topbar {
        min-height: 72px !important;
        grid-template-columns: auto 1fr !important;
        padding: 8px 10px !important;
    }

    .ct-front-brand-copy strong {
        font-size: 15px !important;
    }

    .ct-front-brand-mark,
    .ct-auth-avatar {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
        border-radius: 14px !important;
    }

    .ct-front-nav {
        display: none !important;
    }

    .ct-front-account {
        max-width: 56vw !important;
        justify-self: end !important;
    }

    .ct-auth-logout,
    .ct-auth-login {
        min-height: 38px !important;
        padding: 9px 11px !important;
        font-size: 12px !important;
    }
}


/* =========================================================
   AJUSTE DIEGO - HERO E CARD DA EMPRESA
   1) Hero com texto alinhado à esquerda
   2) Card da empresa com a mesma largura das demais boxes
========================================================= */

.content > .hero {
    text-align: left !important;
    padding-left: clamp(28px, 5vw, 72px) !important;
    padding-right: clamp(28px, 5vw, 72px) !important;
}

.content > .hero h1,
.content > .hero p,
.content > .hero .status {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

.content > .hero h1 {
    max-width: 920px !important;
}

.content > .hero p {
    max-width: 780px !important;
}

.client-page-center {
    width: 100% !important;
    max-width: 1220px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.client-page-center .client-brand-card {
    width: 100% !important;
    max-width: 1220px !important;
    min-height: 128px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    padding-left: clamp(24px, 4vw, 80px) !important;
    padding-right: clamp(24px, 4vw, 80px) !important;
}

.client-page-center .front-chat-shell {
    width: 100% !important;
    max-width: 1220px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 575px) {
    .content > .hero {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .client-page-center .client-brand-card {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}


/* =========================================================
   AJUSTE DIEGO - TOPO RESPONSIVO + BUSCA DE EMPRESAS
========================================================= */

.ct-front-topbar {
    display: grid !important;
    grid-template-columns: auto minmax(240px, 360px) 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 12px 20px !important;
}

.ct-front-topbar-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ct-front-brand {
    min-width: 0 !important;
}

.ct-front-brand-copy small {
    white-space: nowrap;
}

.topbar-sidebar-toggle {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 16px;
}

.ct-company-search {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    max-width: 360px;
    width: 100%;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.ct-company-search .material-symbols-outlined {
    font-size: 22px;
    color: rgba(255, 255, 255, .72);
}

.ct-company-search input {
    width: 100%;
    min-width: 0;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
    font-weight: 700;
}

.ct-company-search input::placeholder {
    color: rgba(255, 255, 255, .58);
}

.ct-front-nav {
    justify-content: center;
    min-width: 0;
}

.ct-front-account {
    justify-content: flex-end;
    min-width: 0;
}

/* Tablet */
@media (max-width: 1199px) {
    .ct-front-topbar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "brand search account"
            "nav nav nav";
        gap: 10px 14px;
    }

    .ct-front-topbar-left {
        grid-area: brand;
    }

    .ct-company-search {
        grid-area: search;
        max-width: none;
    }

    .ct-front-nav {
        grid-area: nav;
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible !important;
        padding: 4px 0 0;
    }

    .ct-front-account {
        grid-area: account;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ct-front-topbar {
        position: sticky;
        top: 0;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand account"
            "search search"
            "nav nav";
        width: 100%;
        overflow: visible !important;
        padding: 10px 12px !important;
    }

    .ct-front-topbar-left {
        width: 100%;
    }

    .ct-front-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .ct-front-brand-copy strong {
        font-size: 16px;
    }

    .ct-front-brand-copy small {
        font-size: 11px;
    }

    .ct-company-search {
        height: 42px;
        min-width: 0;
        max-width: none;
    }

    .ct-front-nav {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .ct-front-nav-link {
        width: 100%;
        min-width: 0 !important;
        padding: 9px 5px;
        font-size: 12px;
        text-align: center;
        border-radius: 12px;
    }

    .ct-front-account {
        transform: scale(.88);
        transform-origin: right center;
    }
}

@media (max-width: 520px) {
    .ct-front-topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "account"
            "search"
            "nav";
    }

    .ct-front-topbar-left,
    .ct-front-account {
        justify-content: center;
    }

    .ct-front-account {
        transform: scale(.92);
        transform-origin: center;
    }

    .ct-front-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   AJUSTE FINAL - TOPO RESPONSIVO + BUSCA À DIREITA
========================================================= */

.ct-front-topbar {
    display: grid !important;
    grid-template-columns: auto minmax(360px, 1fr) auto !important;
    grid-template-areas: "brand nav actions" !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 76px !important;
    overflow: visible !important;
}

.ct-front-topbar-left {
    grid-area: brand !important;
    display: inline-flex !important;
    align-items: center !important;
    min-width: 220px !important;
}

.ct-front-nav {
    grid-area: nav !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.ct-front-actions {
    grid-area: actions !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.ct-company-search {
    order: 1;
    position: relative !important;
    width: clamp(260px, 26vw, 420px) !important;
    max-width: 420px !important;
    min-width: 260px !important;
    flex: 0 1 420px !important;
}

.ct-front-account {
    order: 2;
    min-width: max-content !important;
}

.topbar-sidebar-restore {
    order: 3;
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important;
    z-index: auto !important;
    transform: none !important;
}

body:not(.front-sidebar-collapsed) .topbar-sidebar-restore .material-symbols-outlined {
    transform: rotate(180deg);
}

.sidebar-restore-button:not(.topbar-sidebar-restore) {
    display: none !important;
}

.ct-company-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 10050;
    padding: 8px;
    border-radius: 18px;
    background: rgba(15, 23, 42, .98);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
    backdrop-filter: blur(18px);
}

.ct-company-search-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ct-company-search-item:hover,
.ct-company-search-item:focus {
    background: rgba(0, 198, 255, .14);
}

.ct-company-search-item img,
.ct-company-search-logo-fallback {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.ct-company-search-item img {
    object-fit: contain;
    padding: 6px;
}

.ct-company-search-logo-fallback {
    display: inline-grid;
    place-items: center;
    color: #0f172a;
    font-weight: 900;
}

.ct-company-search-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ct-company-search-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.ct-company-search-copy span {
    display: flex;
    gap: 8px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.ct-company-search-empty {
    padding: 12px;
    color: rgba(255, 255, 255, .72);
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1280px) {
    .ct-front-topbar {
        grid-template-columns: auto 1fr !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        gap: 10px 14px !important;
    }

    .ct-front-actions {
        justify-self: end !important;
        max-width: 100%;
    }

    .ct-company-search {
        width: clamp(240px, 34vw, 360px) !important;
        min-width: 220px !important;
    }

    .ct-front-nav {
        justify-content: flex-end !important;
    }
}

@media (max-width: 900px) {
    .ct-front-topbar {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "brand"
            "actions"
            "nav" !important;
        justify-items: stretch !important;
        padding: 12px !important;
    }

    .ct-front-topbar-left {
        min-width: 0 !important;
        justify-content: flex-start !important;
    }

    .ct-front-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr auto auto !important;
        gap: 10px !important;
    }

    .ct-company-search {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .ct-front-account {
        min-width: 0 !important;
    }

    .ct-front-nav {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        justify-content: stretch !important;
    }

    .ct-front-nav-link {
        min-width: 0 !important;
        width: 100% !important;
        padding: 10px 6px !important;
        font-size: 12px !important;
        text-align: center !important;
    }
}

@media (max-width: 560px) {
    .ct-front-actions {
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "search toggle"
            "account account" !important;
    }

    .ct-company-search {
        grid-area: search !important;
    }

    .ct-front-account {
        grid-area: account !important;
        justify-content: center !important;
    }

    .topbar-sidebar-restore {
        grid-area: toggle !important;
    }

    .ct-front-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}


/* =========================================================
   FIX FINAL DIEGO - TOPO, BOTÃO ÚNICO E SEM QUEBRA MOBILE
========================================================= */

.ct-front-topbar {
    overflow: visible !important;
}

.ct-front-actions {
    overflow: visible !important;
}

.ct-menu-toggle-visible,
.topbar-sidebar-restore,
#frontSidebarRestore {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    flex: 0 0 46px !important;
    border-radius: 16px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    box-shadow: none !important;
}

#frontSidebarRestore .material-symbols-outlined {
    font-size: 26px !important;
}

body:not(.front-sidebar-collapsed) #frontSidebarRestore .material-symbols-outlined {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .ct-front-topbar {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "brand"
            "actions"
            "nav" !important;
        gap: 10px !important;
        min-height: auto !important;
    }

    .ct-front-topbar-left {
        justify-content: center !important;
        width: 100% !important;
    }

    .ct-front-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "search toggle"
            "account account" !important;
        align-items: center !important;
    }

    .ct-company-search {
        grid-area: search !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .ct-front-account {
        grid-area: account !important;
        justify-content: center !important;
        width: 100% !important;
        transform: none !important;
    }

    #frontSidebarRestore {
        grid-area: toggle !important;
    }

    .ct-front-nav {
        grid-area: nav !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
}

@media (max-width: 560px) {
    .ct-front-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ct-front-nav-link {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* FAQ client side */
.ct-faq-search {
    width: min(620px, 100%);
    margin: 24px auto 0;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.ct-faq-search input {
    width: 100%;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
    font-weight: 800;
}

.ct-faq-search input::placeholder {
    color: rgba(255,255,255,.58);
}

.ct-faq-empty {
    width: min(900px, 100%);
    margin: 18px auto;
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}


/* =========================================================
   FIX DEFINITIVO DIEGO - TOPO RESPONSIVO + BOTÃO VISÍVEL
   1 botão no canto superior direito do menu/topo
========================================================= */

.ct-front-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9000 !important;
    width: 100% !important;
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas: "brand nav actions" !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 10px 14px !important;
    overflow: visible !important;
}

.ct-front-topbar-left {
    grid-area: brand !important;
    min-width: 210px !important;
    display: flex !important;
    align-items: center !important;
}

.ct-front-nav {
    grid-area: nav !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.ct-front-nav-link {
    white-space: nowrap !important;
}

.ct-front-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: minmax(260px, 420px) auto 50px !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 12px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.ct-company-search {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 420px !important;
    margin: 0 !important;
}

.ct-front-account {
    min-width: max-content !important;
    max-width: 100% !important;
}

.topbar-sidebar-toggle-button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 10020 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 16px !important;
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.24) !important;
    cursor: pointer !important;
}

.topbar-sidebar-toggle-button:hover {
    background: rgba(0,198,255,.18) !important;
}

.topbar-sidebar-toggle-button .material-symbols-outlined {
    font-size: 26px !important;
    line-height: 1 !important;
}

body.front-sidebar-collapsed .topbar-sidebar-toggle-button .material-symbols-outlined {
    transform: rotate(180deg) !important;
}

/* Remove qualquer botão antigo/flutuante para não sobrepor */
.sidebar-restore-button,
.ct-front-sidebar-toggle,
.sidebar-toggle-top,
.topbar-sidebar-restore {
    display: none !important;
}

/* Tablet: primeira linha marca + ações, segunda linha menu organizado */
@media (max-width: 1280px) {
    .ct-front-topbar {
        grid-template-columns: auto 1fr !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        gap: 10px 14px !important;
    }

    .ct-front-actions {
        grid-template-columns: minmax(220px, 1fr) auto 50px !important;
        width: 100% !important;
        justify-self: end !important;
    }

    .ct-front-nav {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* Mobile: topo sem quebrar e menu em grid */
@media (max-width: 900px) {
    .ct-front-topbar {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "brand"
            "actions"
            "nav" !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .ct-front-topbar-left {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
    }

    .ct-front-actions {
        width: 100% !important;
        grid-template-columns: 1fr 50px !important;
        grid-template-areas:
            "search toggle"
            "account account" !important;
        gap: 10px !important;
    }

    .ct-company-search {
        grid-area: search !important;
        width: 100% !important;
        max-width: none !important;
    }

    .ct-front-account {
        grid-area: account !important;
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        justify-content: center !important;
        transform: none !important;
    }

    .topbar-sidebar-toggle-button {
        grid-area: toggle !important;
        justify-self: end !important;
    }

    .ct-front-nav {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        justify-content: stretch !important;
    }

    .ct-front-nav-link {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        padding: 9px 5px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 560px) {
    .ct-front-actions {
        grid-template-columns: 1fr 48px !important;
    }

    .ct-front-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ct-front-brand-copy strong {
        font-size: 17px !important;
    }

    .ct-front-brand-copy small {
        font-size: 11px !important;
    }
}


/* =========================================================
   FIX FINAL - TOPO FULL RESPONSIVO + FOOTER
========================================================= */

.ct-front-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9000 !important;
    width: 100% !important;
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: auto minmax(280px, 1fr) auto !important;
    grid-template-areas: "brand nav actions" !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 10px 16px !important;
    overflow: visible !important;
}

.ct-front-topbar-left {
    grid-area: brand !important;
    display: flex !important;
    align-items: center !important;
    min-width: 210px !important;
}

.ct-front-nav {
    grid-area: nav !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.ct-front-nav-link {
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}

.ct-front-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: minmax(220px, 420px) auto !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 12px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.ct-company-search {
    width: 100% !important;
    max-width: 420px !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.ct-front-account {
    min-width: max-content !important;
    max-width: 100% !important;
}

/* Remove botão do topo: agora o botão fica dentro da área do menu lateral */
.topbar-sidebar-toggle-button,
.topbar-sidebar-restore,
.sidebar-restore-button {
    display: none !important;
}

/* Responsivo intermediário */
@media (max-width: 1360px) {
    .ct-front-topbar {
        grid-template-columns: auto 1fr !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        gap: 10px 14px !important;
    }

    .ct-front-actions {
        width: 100% !important;
        justify-self: end !important;
        grid-template-columns: minmax(220px, 1fr) auto !important;
    }

    .ct-front-nav {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* Tablet / mobile */
@media (max-width: 900px) {
    .ct-front-topbar {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "brand"
            "actions"
            "nav" !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .ct-front-topbar-left {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
    }

    .ct-front-brand {
        min-width: 0 !important;
        justify-content: center !important;
    }

    .ct-front-actions {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "search"
            "account" !important;
        gap: 10px !important;
    }

    .ct-company-search {
        grid-area: search !important;
        width: 100% !important;
        max-width: none !important;
    }

    .ct-front-account {
        grid-area: account !important;
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        justify-content: center !important;
        transform: none !important;
    }

    .ct-front-nav {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .ct-front-nav-link {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        padding: 9px 5px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 560px) {
    .ct-front-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ct-front-brand-copy strong {
        font-size: 17px !important;
    }

    .ct-front-brand-copy small {
        font-size: 11px !important;
    }

    .ct-front-brand-mark {
        width: 42px !important;
        height: 42px !important;
        border-radius: 14px !important;
    }
}

/* Footer */
.ct-front-footer {
    width: 100%;
    margin-top: 48px;
    padding: 24px 16px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(2, 6, 23, .72);
}

.ct-front-footer-inner {
    width: min(1220px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.72);
    font-weight: 700;
    text-align: center;
    flex-wrap: wrap;
}

.ct-front-footer-inner strong {
    color: #fff;
}


/* =========================================================
   FIX FINAL v39 - TOPO FULL RESPONSIVO SEM BOTÃO NO TOPO
========================================================= */

.ct-front-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9000 !important;
    width: 100% !important;
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: minmax(180px, auto) minmax(260px, 1fr) minmax(320px, auto) !important;
    grid-template-areas: "brand nav actions" !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 16px !important;
    overflow: visible !important;
}

.ct-front-topbar-left {
    grid-area: brand !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.ct-front-brand {
    min-width: 0 !important;
}

.ct-front-brand-copy {
    min-width: 0 !important;
}

.ct-front-brand-copy strong,
.ct-front-brand-copy small {
    white-space: nowrap !important;
}

.ct-front-nav {
    grid-area: nav !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(4px, .7vw, 12px) !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.ct-front-nav-link {
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    padding-left: clamp(8px, .8vw, 14px) !important;
    padding-right: clamp(8px, .8vw, 14px) !important;
}

.ct-front-actions {
    grid-area: actions !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(210px, 420px) auto !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 12px !important;
    overflow: visible !important;
}

.ct-company-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 420px !important;
    margin: 0 !important;
}

.ct-front-account {
    min-width: max-content !important;
    max-width: 100% !important;
}

.topbar-sidebar-toggle-button,
.topbar-sidebar-restore,
.sidebar-restore-button,
.ct-front-sidebar-toggle,
.sidebar-toggle-top {
    display: none !important;
}

/* notebooks e telas médias */
@media (max-width: 1320px) {
    .ct-front-topbar {
        grid-template-columns: auto 1fr !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        gap: 10px 12px !important;
    }

    .ct-front-actions {
        grid-template-columns: minmax(220px, 1fr) auto !important;
        width: 100% !important;
        justify-self: end !important;
    }

    .ct-front-nav {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* tablets */
@media (max-width: 900px) {
    .ct-front-topbar {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "brand"
            "actions"
            "nav" !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .ct-front-topbar-left {
        width: 100% !important;
        justify-content: center !important;
    }

    .ct-front-actions {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "search"
            "account" !important;
        gap: 10px !important;
    }

    .ct-company-search {
        grid-area: search !important;
        width: 100% !important;
        max-width: none !important;
    }

    .ct-front-account {
        grid-area: account !important;
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        justify-content: center !important;
        transform: none !important;
    }

    .ct-front-nav {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        justify-content: stretch !important;
    }

    .ct-front-nav-link {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        padding: 9px 5px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
    }
}

/* celulares */
@media (max-width: 560px) {
    .ct-front-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ct-front-brand-mark {
        width: 42px !important;
        height: 42px !important;
        border-radius: 14px !important;
    }

    .ct-front-brand-copy strong {
        font-size: 17px !important;
    }

    .ct-front-brand-copy small {
        font-size: 11px !important;
    }
}

/* Footer */
.ct-front-footer {
    width: 100% !important;
    margin-top: 48px !important;
    padding: 24px 16px !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(2, 6, 23, .72) !important;
}

.ct-front-footer-inner {
    width: min(1220px, 100%) !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    color: rgba(255,255,255,.72) !important;
    font-weight: 700 !important;
    text-align: center !important;
    flex-wrap: wrap !important;
}

.ct-front-footer-inner strong {
    color: #fff !important;
}


/* =========================================================
   FIX DEFINITIVO v41 - TOPBAR FULL RESPONSIVO
   Estilo tipo Bootstrap/Material sem quebrar busca e menu
========================================================= */

.ct-front-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9000 !important;
    width: 100% !important;
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: minmax(210px, auto) minmax(360px, 1fr) minmax(420px, auto) !important;
    grid-template-areas: "brand nav actions" !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 16px !important;
    overflow: visible !important;
}

.ct-front-brand-row {
    grid-area: brand !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.ct-front-brand {
    min-width: 0 !important;
}

.ct-front-brand-copy {
    min-width: 0 !important;
}

.ct-front-brand-copy strong,
.ct-front-brand-copy small {
    white-space: nowrap !important;
}

.ct-top-nav-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    cursor: pointer !important;
}

.ct-front-nav {
    grid-area: nav !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    overflow: visible !important;
}

.ct-front-nav-link {
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    text-align: center !important;
}

.ct-front-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: minmax(240px, 420px) auto !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 12px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.ct-company-search {
    width: 100% !important;
    max-width: 420px !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.ct-front-account {
    min-width: max-content !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* Remove qualquer botão de sidebar do topo */
.topbar-sidebar-toggle-button,
.topbar-sidebar-restore,
.sidebar-restore-button,
.ct-front-sidebar-toggle,
.sidebar-toggle-top {
    display: none !important;
}

/* Telas médias: topo em duas linhas bem organizadas */
@media (max-width: 1400px) {
    .ct-front-topbar {
        grid-template-columns: auto minmax(360px, 1fr) !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        gap: 10px 14px !important;
    }

    .ct-front-actions {
        width: 100% !important;
        justify-self: end !important;
        grid-template-columns: minmax(240px, 1fr) auto !important;
    }

    .ct-front-nav {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* Tablet/mobile: usa botão de menu superior, busca fica fixa e visível */
@media (max-width: 992px) {
    .ct-front-topbar {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "brand"
            "actions"
            "nav" !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .ct-front-brand-row {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .ct-top-nav-toggle {
        display: inline-flex !important;
    }

    .ct-front-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "search"
            "account" !important;
        gap: 10px !important;
    }

    .ct-company-search {
        grid-area: search !important;
        width: 100% !important;
        max-width: none !important;
    }

    .ct-front-account {
        grid-area: account !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        transform: none !important;
    }

    .ct-front-nav {
        width: 100% !important;
        display: none !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding-top: 2px !important;
    }

    body.ct-top-nav-open .ct-front-nav {
        display: grid !important;
    }

    .ct-front-nav-link {
        width: 100% !important;
        padding: 11px 10px !important;
        border-radius: 14px !important;
        background: rgba(255,255,255,.07) !important;
        border: 1px solid rgba(255,255,255,.10) !important;
        font-size: 13px !important;
    }
}

@media (max-width: 560px) {
    .ct-front-topbar {
        padding: 8px !important;
    }

    .ct-front-brand-mark {
        width: 42px !important;
        height: 42px !important;
        border-radius: 14px !important;
    }

    .ct-front-brand-copy strong {
        font-size: 17px !important;
    }

    .ct-front-brand-copy small {
        font-size: 11px !important;
    }

    .ct-front-nav {
        grid-template-columns: 1fr !important;
    }
}

/* Mantém a busca do topo clicável acima do canvas/avatar do chat. */
.ct-front-topbar, .ct-front-topbar * { pointer-events: auto; }
.ct-company-search { z-index: 12020; }
.ct-company-search-results { z-index: 12030 !important; }


/* Página pública do avatar responsiva como a experiência do Admin */
.ct-avatar-card-centered {
    min-width: 0;
}

.ct-avatar-preview {
    width: 100%;
    min-width: 0;
    min-height: clamp(260px, 42vw, 480px);
}

.ct-avatar-face {
    width: clamp(112px, 18vw, 170px);
    height: clamp(112px, 18vw, 170px);
}

.ct-avatar-face::before,
.ct-avatar-face::after {
    top: 39%;
    width: clamp(12px, 2vw, 18px);
    height: clamp(12px, 2vw, 18px);
}

.ct-avatar-face::before { left: 28%; }
.ct-avatar-face::after { right: 28%; }

.ct-avatar-mouth {
    bottom: 25%;
    width: 30%;
}

@media (max-width: 991px) {
    .ct-avatar-card-centered {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .ct-avatar-preview {
        aspect-ratio: 16 / 10;
        min-height: clamp(230px, 38vh, 360px);
    }
}

@media (max-width: 575px) {
    .ct-avatar-page {
        padding-inline: 4px;
    }

    .ct-avatar-hero,
    .ct-avatar-card-centered {
        border-radius: 22px;
    }

    .ct-avatar-preview {
        aspect-ratio: 16 / 9;
        min-height: 220px;
    }
}
