/*
CAMINHO COMPLETO: C:\Users\vlula\OneDrive\Área de Trabalho\Projetos Backup\NETTSAN_CHAT\static\css\app.css
DATA E HORA DO ULTIMO RECODE: 2026-09-06 12:40 -03:00
MOTIVO DA ALTERACAO: Padronizar portal, login e demais telas NETTCONNECT e tornar a sidebar retratil por hover no desktop.
*/

:root {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #0b1736;
    background: #f7f9fc;
    --navy: #0b1736;
    --navy-soft: #10254c;
    --blue: #168bff;
    --blue-strong: #0877ef;
    --cyan: #19c6e6;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --surface-blue: #eef7ff;
    --border: #e2e8f0;
    --text: #0b1736;
    --muted: #6d7890;
    --green: #25d366;
    --facebook: #1877f2;
    --danger: #e94e5e;
    --shadow: 0 12px 34px rgba(11, 23, 54, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--surface-soft);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-body {
    overflow-x: hidden;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    padding: 24px 16px 20px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 18% 5%, rgba(22, 139, 255, 0.2), transparent 28%),
        linear-gradient(180deg, #0b1736 0%, #0c2145 100%);
    color: #ffffff;
    z-index: 20;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-mark span {
    width: 13px;
    height: 31px;
    position: absolute;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
    transform: rotate(-1deg);
    box-shadow: 0 5px 18px rgba(22, 139, 255, 0.26);
}

.brand-mark span:first-child {
    left: 6px;
    transform: skewY(34deg);
}

.brand-mark span:last-child {
    right: 6px;
    transform: skewY(-34deg);
}

.brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 18px;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #a8bad7;
}

.sidebar-nav {
    margin-top: 34px;
    display: grid;
    gap: 6px;
}

.nav-item {
    min-height: 48px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 11px;
    color: #dce8fb;
    font-size: 14px;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--blue), #0f7cf0);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(22, 139, 255, 0.28);
}

.nav-item.disabled {
    opacity: 0.55;
    cursor: default;
}

.nav-item small {
    margin-left: auto;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9eb1ce;
}

.nav-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 850;
}

.sidebar-footer-card {
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(22, 139, 255, 0.14), rgba(25, 198, 230, 0.05));
}

.sidebar-footer-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: #78c9ff;
}

.sidebar-footer-card strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

.sidebar-footer-card p {
    margin: 8px 0 0;
    color: #a9bad2;
    font-size: 11px;
    line-height: 1.45;
}

.app-main {
    grid-column: 2;
    min-width: 0;
}

.app-topbar {
    min-height: 74px;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.topbar-search {
    width: min(520px, 43vw);
    min-height: 42px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #f8fafc;
    color: #99a4b6;
    font-size: 13px;
}

.search-dot {
    width: 13px;
    height: 13px;
    border: 2px solid #91a0b6;
    border-radius: 50%;
    position: relative;
}

.search-dot::after {
    content: "";
    width: 6px;
    height: 2px;
    position: absolute;
    right: -5px;
    bottom: -3px;
    transform: rotate(45deg);
    border-radius: 3px;
    background: #91a0b6;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.connection-chip {
    min-height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: #34415b;
    font-size: 12px;
    font-weight: 750;
}

.connection-chip > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #18b875;
    box-shadow: 0 0 0 4px rgba(24, 184, 117, 0.1);
}

.user-chip {
    min-width: 0;
    padding: 4px 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9efff, #b9dcff);
    color: var(--navy);
    font-size: 13px;
    font-weight: 850;
}

.user-copy {
    max-width: 150px;
    display: grid;
    line-height: 1.2;
}

.user-copy strong,
.user-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy strong {
    font-size: 12px;
}

.user-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.app-content {
    width: min(1500px, calc(100% - 36px));
    margin: 0 auto;
    padding: 22px 0 42px;
}

.button {
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-strong));
    color: #ffffff;
    font-weight: 750;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(22, 139, 255, 0.2);
}

.button:hover {
    filter: brightness(0.98);
}

.button.secondary {
    background: #eef3f8;
    color: #28364f;
    box-shadow: none;
}

.button.compact {
    min-height: 36px;
    padding: 0 12px;
}

.topbar-cta {
    white-space: nowrap;
}

.flash {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #f1d89c;
    border-radius: 11px;
    background: #fff8df;
    color: #6d551a;
}

.flash.error {
    border-color: #ffc8ce;
    background: #fff0f2;
    color: #a52d3a;
}

.dashboard-intro {
    min-height: 120px;
    padding: 0 4px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-intro-copy h1 {
    margin: 6px 0 5px;
    font-size: clamp(28px, 3vw, 43px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.dashboard-intro-copy p {
    margin: 0;
    color: #34415b;
    font-size: 17px;
    font-weight: 650;
}

.intro-note {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 850;
    color: #7b8799;
}

.eyebrow.blue {
    color: var(--blue);
}

.channel-hero {
    min-width: 410px;
    min-height: 104px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e1efff;
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 20%, rgba(25, 198, 230, 0.13), transparent 25%),
        linear-gradient(135deg, #f4faff, #e9f5ff);
}

.channel-hero::after {
    content: "";
    width: 145px;
    height: 145px;
    position: absolute;
    right: -70px;
    top: -82px;
    border: 23px solid rgba(22, 139, 255, 0.08);
    border-radius: 50%;
}

.channel-badge {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    position: relative;
    z-index: 1;
    border-radius: 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(11, 23, 54, 0.12);
}

.channel-badge.whatsapp,
.preview-avatar {
    background: var(--green);
}

.channel-badge.instagram,
.instagram-bg {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 52%, #fcb045 100%);
}

.channel-badge.facebook,
.facebook-bg {
    background: var(--facebook);
}

.channel-badge.small {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px;
    font-size: 11px;
}

.channel-hero-copy {
    margin-left: 8px;
    display: grid;
    position: relative;
    z-index: 1;
    line-height: 1.25;
}

.channel-hero-copy strong {
    font-size: 15px;
}

.channel-hero-copy span {
    color: #4d5c74;
    font-size: 12px;
}

.metric-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    min-width: 0;
    min-height: 118px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(11, 23, 54, 0.035);
}

.metric-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 13px;
    background: var(--surface-blue);
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.metric-card > div {
    min-width: 0;
    display: grid;
}

.metric-label {
    color: #4e5d75;
    font-size: 12px;
    font-weight: 700;
}

.metric-value {
    margin: 3px 0 2px;
    font-size: 27px;
    line-height: 1;
}

.metric-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8994a7;
    font-size: 10px;
}

.dashboard-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(390px, 0.95fr);
    gap: 14px;
    align-items: stretch;
}

.dashboard-side {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(11, 23, 54, 0.04);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-heading h2 {
    margin: 4px 0 0;
    font-size: 19px;
    letter-spacing: -0.025em;
}

.compact-heading h2 {
    font-size: 17px;
}

.text-link {
    color: var(--blue-strong);
    font-size: 11px;
    font-weight: 800;
}

.conversation-panel {
    min-height: 520px;
}

.conversation-tabs {
    margin-top: 16px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    border-bottom: 1px solid #edf1f6;
}

.conversation-tab {
    min-height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid #e6ebf2;
    border-radius: 9px;
    color: #647086;
    font-size: 11px;
    font-weight: 750;
}

.conversation-tab.active {
    border-color: #bfe0ff;
    background: #eef7ff;
    color: var(--blue-strong);
}

.mini-channel {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mini-channel.whatsapp {
    background: var(--green);
}

.mini-channel.instagram {
    background: #e940b6;
}

.mini-channel.facebook {
    background: var(--facebook);
}

.conversation-preview {
    min-height: 398px;
    display: grid;
    grid-template-columns: minmax(255px, 0.85fr) minmax(0, 1.15fr);
}

.preview-list {
    padding: 12px 12px 0 0;
    border-right: 1px solid #edf1f6;
}

.preview-row {
    min-height: 72px;
    padding: 10px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-radius: 11px;
}

.preview-row + .preview-row {
    margin-top: 4px;
}

.preview-row.active {
    background: #eff7ff;
}

.preview-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.preview-row > div {
    min-width: 0;
    display: grid;
}

.preview-row strong {
    font-size: 12px;
}

.preview-row span:not(.preview-avatar) {
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7b8799;
    font-size: 10px;
}

.preview-row small {
    color: #9aa5b6;
    font-size: 9px;
}

.preview-chat {
    padding: 30px 18px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.preview-chat-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: #ecf6ff;
    color: var(--blue-strong);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
}

.preview-chat h3 {
    margin: 13px 0 6px;
    font-size: 19px;
}

.preview-chat > p {
    max-width: 500px;
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.chat-bubble {
    max-width: 84%;
    padding: 11px 13px;
    border-radius: 13px;
    font-size: 11px;
    line-height: 1.45;
}

.chat-bubble + .chat-bubble {
    margin-top: 9px;
}

.chat-bubble.inbound {
    background: #f1f4f8;
    color: #41506a;
    border-bottom-left-radius: 4px;
}

.chat-bubble.outbound {
    margin-left: auto;
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, var(--blue), #0c79ee);
    color: #ffffff;
}

.preview-chat .button {
    margin-top: auto;
}

.connected-channel-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.connected-channel-card {
    min-width: 0;
    min-height: 120px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fbfdff;
}

.connected-channel-copy {
    min-width: 0;
    display: grid;
    align-content: start;
}

.connected-channel-copy strong {
    font-size: 11px;
}

.connected-channel-copy small {
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8995a7;
    font-size: 9px;
    line-height: 1.3;
}

.status {
    width: max-content;
    max-width: 100%;
    margin-top: 6px;
    padding: 4px 7px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
}

.status.connected {
    background: #dcf8e9;
    color: #0e8c51;
}

.status.disconnected {
    background: #eff2f6;
    color: #677387;
}

.automation-card-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.automation-card {
    min-height: 152px;
    padding: 13px;
    border: 1px solid #e7edf4;
    border-radius: 12px;
    background: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.automation-card:hover {
    transform: translateY(-2px);
    border-color: #bcdcff;
    box-shadow: 0 8px 20px rgba(22, 139, 255, 0.08);
}

.automation-symbol {
    width: 31px;
    height: 31px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #edf6ff;
    color: var(--blue-strong);
    font-size: 9px;
    font-weight: 900;
}

.automation-card strong {
    display: block;
    font-size: 11px;
    line-height: 1.35;
}

.automation-card p {
    margin: 6px 0 0;
    color: #7c889a;
    font-size: 9px;
    line-height: 1.45;
}

.dashboard-lower-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
    gap: 14px;
}

.soft-label {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #7b8798;
    font-size: 9px;
    font-weight: 750;
}

.chart-placeholder {
    min-height: 188px;
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 24px;
}

.chart-bars {
    height: 138px;
    padding: 12px 13px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 12px;
    position: relative;
    border-left: 1px solid #e7edf4;
    border-bottom: 1px solid #e7edf4;
    background: repeating-linear-gradient(to top, transparent 0 33px, #f1f4f8 33px 34px);
}

.chart-bars span {
    width: 26px;
    min-height: 16px;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.chart-placeholder p {
    margin: 0;
    color: #7c899c;
    font-size: 10px;
    line-height: 1.55;
}

.funnel-list {
    margin-top: 16px;
    display: grid;
    gap: 9px;
}

.funnel-list > div {
    min-height: 34px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #edf1f5;
    border-radius: 9px;
    background: #fbfcfe;
}

.funnel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

.funnel-dot.success {
    background: #18b875;
}

.funnel-list strong {
    font-size: 10px;
}

.funnel-list small {
    color: #8390a3;
    font-size: 10px;
    font-weight: 800;
}

.public-body {
    background:
        radial-gradient(circle at 10% 5%, rgba(22, 139, 255, 0.11), transparent 25%),
        #f7f9fc;
}

.public-topbar {
    min-height: 72px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
}

.brand-public .brand-copy strong {
    color: var(--navy);
}

.brand-public .brand-copy small {
    color: #7e8ba0;
}

.subtitle {
    color: #6a7486;
    font-size: 12px;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 32px auto;
}

.public-container {
    min-height: calc(100vh - 136px);
}

.auth-card {
    width: min(460px, 100%);
    margin: 70px auto;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd8e5;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #8bc6ff;
    box-shadow: 0 0 0 3px rgba(22, 139, 255, 0.1);
}

.helper {
    margin-top: 18px;
    color: var(--muted);
}

.hero,
.next-step,
.channel-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(11, 23, 54, 0.035);
}

.hero,
.next-step {
    padding: 26px;
}

.hero h1,
.section-heading h2,
.next-step h2 {
    margin: 6px 0 8px;
}

.section-heading {
    margin: 34px 0 16px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.channel-card {
    padding: 22px;
}

.next-step {
    margin-top: 32px;
}

.response-style-preview {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 218px minmax(0, 1fr);
    }

    .sidebar {
        width: 218px;
    }

    .topbar-search {
        display: none;
    }

    .dashboard-intro {
        align-items: flex-start;
    }

    .channel-hero {
        min-width: 330px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 14px 16px;
    }

    .sidebar-nav {
        margin-top: 16px;
        display: flex;
        overflow-x: auto;
    }

    .nav-item {
        min-width: max-content;
    }

    .sidebar-footer-card,
    .nav-item small {
        display: none;
    }

    .app-topbar {
        position: static;
        padding: 10px 16px;
    }

    .connection-chip,
    .user-copy,
    .topbar-cta {
        display: none;
    }

    .app-content {
        width: min(100% - 24px, 760px);
        padding-top: 16px;
    }

    .dashboard-intro {
        display: grid;
    }

    .channel-hero {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .conversation-preview {
        grid-template-columns: 1fr;
    }

    .preview-list {
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid #edf1f6;
    }

    .preview-chat {
        min-height: 330px;
    }

    .connected-channel-grid,
    .automation-card-grid {
        grid-template-columns: 1fr;
    }

    .connected-channel-card {
        min-height: 90px;
    }

    .chart-placeholder {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand-copy strong {
        font-size: 16px;
    }

    .dashboard-intro-copy h1 {
        font-size: 30px;
    }

    .dashboard-intro-copy p {
        font-size: 15px;
    }

    .channel-hero {
        flex-wrap: wrap;
    }

    .channel-hero-copy {
        width: 100%;
        margin: 4px 0 0;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 14px;
    }

    .panel-heading {
        align-items: flex-start;
    }

    .conversation-tabs {
        margin-inline: -2px;
    }

    .preview-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .preview-row small {
        display: none;
    }

    .public-topbar {
        padding: 12px 16px;
    }

    .public-topbar .subtitle {
        display: none;
    }

    .container {
        width: min(100% - 24px, 1100px);
    }

    .channel-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================== */
/* PADRAO GLOBAL NETTCONNECT - PORTAL, TELAS INTERNAS E SIDEBAR RETRATIL      */
/* ========================================================================== */

.app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar {
    width: 72px;
    padding: 24px 12px 20px;
    overflow: hidden;
    transition: width 0.24s ease, box-shadow 0.24s ease;
}

.sidebar:hover,
.sidebar:focus-within {
    width: 248px;
    box-shadow: 18px 0 40px rgba(5, 18, 43, 0.22);
}

.sidebar .brand {
    width: 224px;
    padding: 0 5px;
}

.sidebar .brand-mark {
    width: 38px;
    flex-basis: 38px;
}

.sidebar-reveal {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-5px);
    transition: opacity 0.18s ease 0.03s, transform 0.18s ease 0.03s, visibility 0.18s ease;
}

.sidebar:hover .sidebar-reveal,
.sidebar:focus-within .sidebar-reveal {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar-nav {
    width: 224px;
}

.nav-item {
    width: 224px;
    padding-inline: 11px;
    white-space: nowrap;
}

.nav-label {
    min-width: 100px;
}

.sidebar-footer-card {
    width: 216px;
}

.app-main {
    grid-column: 2;
}

.app-topbar {
    min-height: 76px;
}

.app-content {
    width: min(1540px, calc(100% - 36px));
}

.page-heading-row {
    min-height: 118px;
    padding: 8px 4px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.page-heading-row h1 {
    margin: 6px 0 7px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-heading-row p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.page-channel-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-channel-pills > span {
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: #42506a;
    font-size: 12px;
    font-weight: 750;
}

.wa-dot,
.ig-dot,
.fb-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    flex: 0 0 9px;
    border-radius: 50%;
}

.wa-dot { background: #25d366; }
.ig-dot { background: linear-gradient(135deg, #833ab4, #fd1d1d 58%, #fcb045); }
.fb-dot { background: #1877f2; }

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    border-color: #dfe8f4;
    background:
        radial-gradient(circle at 92% 12%, rgba(25, 198, 230, 0.13), transparent 23%),
        radial-gradient(circle at 82% 86%, rgba(22, 139, 255, 0.1), transparent 28%),
        #ffffff;
}

.hero > div:first-child {
    max-width: 780px;
}

.hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.next-step {
    border-color: #e1e8f1;
    box-shadow: 0 10px 30px rgba(11, 23, 54, 0.045);
}

.next-step h2,
.section-heading h2 {
    letter-spacing: -0.025em;
}

.channel-card {
    border-color: #e2e9f2;
    box-shadow: 0 8px 24px rgba(11, 23, 54, 0.045);
}

.channel-card h3 {
    color: var(--navy);
}

.form-grid label {
    color: #25334d;
    font-size: 13px;
}

input,
select,
textarea {
    min-height: 45px;
    border-color: #d6deea;
    border-radius: 11px;
    background: #fbfcfe;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #bfcbdc;
}

.next-step table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e4eaf2;
    border-radius: 13px;
    background: #fff;
}

.next-step table th {
    padding: 13px 12px !important;
    background: #f6f9fc;
    color: #607089;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.next-step table td {
    padding: 13px 12px !important;
    color: #34415a;
    font-size: 12px;
    vertical-align: top;
}

.next-step table tr {
    border-color: #edf1f6 !important;
}

.integration-heading-badge {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.meta-selection-panel {
    padding: 24px;
}

.meta-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.meta-page-card {
    min-height: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e9f2;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.meta-page-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #1877f2;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.meta-page-copy {
    flex: 1;
}

.meta-page-copy h3 {
    margin: 0 0 10px;
}

.meta-page-copy p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.meta-page-card form {
    margin-top: 18px;
}

/* Inbox */
.inbox-shell {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.inbox-list-panel {
    min-width: 0;
    border-right: 1px solid #e8edf4;
    background: #fff;
}

.inbox-panel-head {
    min-height: 88px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf1f6;
}

.inbox-panel-head h2 {
    margin: 5px 0 0;
    font-size: 20px;
}

.inbox-count {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-blue);
    color: var(--blue-strong);
    font-size: 12px;
    font-weight: 850;
}

.inbox-filter-row {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 1px solid #edf1f6;
}

.inbox-conversation-list {
    max-height: 660px;
    overflow-y: auto;
}

.inbox-conversation-item {
    min-height: 78px;
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #f0f3f7;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.inbox-conversation-item:hover {
    background: #f8fbff;
}

.inbox-conversation-item.active {
    background: #eef7ff;
    box-shadow: inset 3px 0 0 var(--blue);
}

.inbox-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcecff;
    color: #165aab;
    font-size: 13px;
    font-weight: 900;
}

.inbox-avatar.instagram {
    color: #fff;
    background: linear-gradient(135deg, #833ab4, #fd1d1d 58%, #fcb045);
}

.inbox-avatar.facebook {
    color: #fff;
    background: #1877f2;
}

.inbox-avatar.large {
    width: 46px;
    height: 46px;
}

.inbox-conversation-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.inbox-conversation-copy > span:last-child {
    overflow: hidden;
    color: #77849a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-name-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.inbox-name-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.inbox-conversation-item > small {
    color: #99a4b4;
    font-size: 9px;
}

.inbox-empty-list {
    padding: 50px 25px;
    display: grid;
    justify-items: center;
    text-align: center;
}

.inbox-empty-list p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.empty-symbol {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-blue);
    color: var(--blue);
    font-weight: 900;
}

.inbox-chat-panel {
    min-width: 0;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 90% 5%, rgba(22, 139, 255, 0.06), transparent 24%),
        #fbfcfe;
}

.inbox-chat-head {
    min-height: 88px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e8edf4;
    background: #fff;
}

.inbox-contact-summary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.inbox-contact-summary > div {
    min-width: 0;
}

.inbox-contact-summary > div > span {
    display: block;
    margin-top: 4px;
    color: #8793a5;
    font-size: 10px;
}

.inbox-message-area {
    flex: 1;
    min-height: 480px;
    padding: 26px 24px;
    overflow-y: auto;
}

.inbox-day-label {
    width: max-content;
    margin: 0 auto 24px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #7d899a;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.message-row {
    margin-bottom: 13px;
    display: flex;
}

.message-row.outbound {
    justify-content: flex-end;
}

.message-bubble {
    width: min(620px, 78%);
    padding: 12px 14px;
    border: 1px solid #e1e7ef;
    border-radius: 15px 15px 15px 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(11, 23, 54, 0.035);
}

.message-row.outbound .message-bubble {
    border-color: #168bff;
    border-radius: 15px 15px 4px 15px;
    background: linear-gradient(135deg, #168bff, #0877ef);
    color: #fff;
}

.message-bubble > span {
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.72;
}

.message-bubble p {
    margin: 6px 0 8px;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.55;
}

.message-bubble small {
    display: block;
    text-align: right;
    font-size: 9px;
    opacity: 0.65;
}

.inbox-empty-chat {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 30px;
}

.inbox-empty-chat h2,
.inbox-empty-chat h3 {
    margin: 8px 0 6px;
}

.inbox-empty-chat p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.inbox-empty-chat .empty-symbol {
    margin-inline: auto;
}

.empty-channel-stack {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
}

.inbox-composer-preview {
    min-height: 70px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #e8edf4;
    background: #fff;
}

.composer-placeholder {
    flex: 1;
    min-height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    border: 1px solid #e0e6ef;
    border-radius: 11px;
    background: #f8fafc;
    color: #9aa5b5;
    font-size: 11px;
}

/* Public header */
.public-body {
    background: #ffffff;
}

.public-topbar {
    min-height: 76px;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(224, 231, 240, 0.88);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.public-nav a,
.public-login-link {
    color: #4e5d76;
    font-size: 12px;
    font-weight: 700;
}

.public-nav a:hover,
.public-login-link:hover {
    color: var(--blue);
}

.public-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-main {
    min-height: calc(100vh - 76px);
}

.flash-stack {
    position: fixed;
    top: 88px;
    left: 50%;
    z-index: 80;
    width: min(520px, calc(100% - 28px));
    transform: translateX(-50%);
}

.public-main > .flash-stack + section,
.app-content > .flash-stack + section {
    margin-top: 0;
}

/* Portal */
.portal-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(25, 198, 230, 0.16), transparent 24%),
        radial-gradient(circle at 90% 75%, rgba(22, 139, 255, 0.13), transparent 31%),
        linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.portal-hero::before {
    content: "";
    width: 460px;
    height: 460px;
    position: absolute;
    right: -190px;
    top: -240px;
    border: 80px solid rgba(22, 139, 255, 0.035);
    border-radius: 50%;
}

.portal-hero-grid {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    align-items: center;
    gap: 58px;
    padding-block: 72px;
}

.portal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-strong);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.portal-kicker::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.portal-hero-copy h1 {
    margin: 16px 0 18px;
    max-width: 610px;
    font-size: clamp(42px, 5.2vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.portal-hero-copy h1 span {
    color: var(--blue);
}

.portal-hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: #5f6d83;
    font-size: 17px;
    line-height: 1.65;
}

.portal-hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.portal-primary {
    min-height: 48px;
    padding-inline: 24px;
}

.portal-secondary {
    min-height: 48px;
}

.portal-proof-line {
    margin-top: 28px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.portal-proof-line span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #728096;
    font-size: 10px;
    font-weight: 700;
}

.portal-proof-line i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1ab879;
    box-shadow: 0 0 0 4px rgba(26, 184, 121, 0.1);
}

.portal-product-stage {
    min-height: 500px;
    position: relative;
    display: grid;
    place-items: center;
}

.portal-stage-glow {
    width: 420px;
    height: 420px;
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 139, 255, 0.17), rgba(25, 198, 230, 0.04) 55%, transparent 72%);
    filter: blur(3px);
}

.portal-mini-dashboard {
    width: min(610px, 100%);
    height: 390px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 34px 80px rgba(11, 23, 54, 0.22);
    transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}

.mini-dash-sidebar {
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, #0b1736, #0c2145);
}

.mini-brand-mark {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 9px 3px 9px 3px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.mini-nav {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
}

.mini-nav.active {
    background: var(--blue);
}

.mini-dash-main {
    min-width: 0;
    background: #f6f9fc;
}

.mini-dash-top {
    height: 54px;
    border-bottom: 1px solid #e7edf5;
    background: #fff;
}

.mini-dash-content {
    height: calc(100% - 54px);
    padding: 16px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 12px;
}

.mini-conversations,
.mini-chat {
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    background: #fff;
}

.mini-conversations {
    padding: 14px;
}

.mini-conversations > strong {
    display: block;
    margin-bottom: 13px;
    font-size: 11px;
}

.mini-conversation {
    height: 47px;
    margin-bottom: 7px;
    padding: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
}

.mini-conversation.active {
    background: #eef7ff;
}

.mini-conversation i {
    width: 110px;
    height: 7px;
    border-radius: 99px;
    background: #dce3ec;
}

.mini-chat {
    padding: 14px;
}

.mini-chat-head {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
    font-size: 11px;
    font-weight: 800;
}

.mini-msg {
    width: max-content;
    max-width: 82%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 11px 11px 11px 3px;
    background: #eef2f6;
    color: #657186;
    font-size: 9px;
}

.mini-msg.right {
    margin-left: auto;
    border-radius: 11px 11px 3px 11px;
    background: var(--blue);
    color: #fff;
}

.mini-msg.short {
    width: 90px;
}

.portal-floating-channel {
    min-width: 176px;
    padding: 11px 13px;
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(222, 231, 241, 0.85);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 15px 36px rgba(11, 23, 54, 0.13);
}

.portal-floating-channel strong,
.portal-floating-channel small {
    display: block;
}

.portal-floating-channel strong {
    font-size: 11px;
}

.portal-floating-channel small {
    margin-top: 3px;
    color: #8994a6;
    font-size: 8px;
}

.whatsapp-card { left: -8px; top: 88px; }
.instagram-card { right: -14px; top: 188px; }
.facebook-card { right: 26px; bottom: 42px; }

.portal-trust {
    border-block: 1px solid #edf1f6;
    background: #fff;
}

.portal-trust .portal-shell {
    min-height: 112px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 30px;
}

.portal-trust p {
    margin: 0;
    color: #66748a;
    font-size: 12px;
    line-height: 1.55;
}

.portal-trust-items {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #94a0b1;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.07em;
}

.portal-section {
    padding: 92px 0;
    background: #fff;
}

.portal-section-soft {
    background:
        radial-gradient(circle at 100% 0, rgba(22, 139, 255, 0.07), transparent 28%),
        #f7fafe;
}

.portal-section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.portal-section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.portal-section-heading.centered .portal-kicker {
    justify-content: center;
}

.portal-section-heading h2,
.portal-how-copy h2,
.portal-cta-card h2 {
    margin: 13px 0 12px;
    font-size: clamp(30px, 3.7vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.portal-section-heading p,
.portal-how-copy > p,
.portal-cta-card p {
    margin: 0;
    color: #6a778b;
    font-size: 14px;
    line-height: 1.65;
}

.portal-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.portal-benefit-card {
    min-height: 248px;
    padding: 24px;
    border: 1px solid #e3eaf2;
    border-radius: 17px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    box-shadow: 0 10px 34px rgba(11, 23, 54, 0.04);
}

.feature-symbol {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--surface-blue);
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.portal-benefit-card h3 {
    margin: 24px 0 10px;
    font-size: 18px;
    letter-spacing: -0.025em;
}

.portal-benefit-card p {
    margin: 0;
    color: #748198;
    font-size: 12px;
    line-height: 1.65;
}

.portal-how-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 70px;
}

.portal-how-copy > .button {
    margin-top: 25px;
}

.portal-steps {
    display: grid;
    gap: 10px;
}

.portal-steps article {
    min-height: 98px;
    padding: 17px 18px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e9f2;
    border-radius: 15px;
    background: #fff;
}

.portal-steps article > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), #0b72dd);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.portal-steps strong {
    font-size: 14px;
}

.portal-steps p {
    margin: 5px 0 0;
    color: #7a879a;
    font-size: 11px;
}

.portal-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.portal-channel-card {
    min-height: 170px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 17px;
    border: 1px solid #e1e8f1;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(11, 23, 54, 0.04);
}

.channel-badge.large {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 15px;
    font-size: 13px;
}

.portal-channel-card h3 {
    margin: 6px 0 8px;
    font-size: 18px;
}

.portal-channel-card p {
    margin: 0;
    color: #77849a;
    font-size: 12px;
    line-height: 1.6;
}

.portal-dark-section {
    padding: 92px 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 15%, rgba(22, 139, 255, 0.27), transparent 24%),
        radial-gradient(circle at 90% 80%, rgba(25, 198, 230, 0.15), transparent 27%),
        linear-gradient(145deg, #09152f, #0c2145);
}

.portal-section-heading.light h2 {
    color: #fff;
}

.portal-dark-section .portal-kicker {
    color: #78c9ff;
}

.portal-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.portal-feature-grid article {
    min-height: 135px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
}

.portal-feature-grid article > span {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(22, 139, 255, 0.23);
    color: #7bd6ff;
    font-size: 9px;
    font-weight: 900;
}

.portal-feature-grid strong {
    display: block;
    font-size: 13px;
}

.portal-feature-grid p {
    margin: 7px 0 0;
    color: #aebdd2;
    font-size: 10px;
    line-height: 1.55;
}

.portal-final-cta {
    padding: 74px 0;
    background: #f7fafe;
}

.portal-cta-card {
    min-height: 245px;
    padding: 38px 42px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 22%, rgba(25, 198, 230, 0.22), transparent 30%),
        linear-gradient(135deg, #0b1736, #0d2c5e);
    color: #fff;
    box-shadow: 0 24px 54px rgba(11, 23, 54, 0.18);
}

.portal-cta-card > div:first-child {
    max-width: 680px;
}

.portal-cta-card .portal-kicker {
    color: #80d8ff;
}

.portal-cta-card p {
    color: #b8c7da;
}

.portal-cta-card .button.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.portal-footer {
    padding: 32px 0;
    border-top: 1px solid #e4eaf2;
    background: #fff;
}

.portal-footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.portal-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-footer-brand > div {
    display: grid;
}

.portal-footer-brand strong {
    font-size: 14px;
}

.portal-footer-brand small {
    margin-top: 2px;
    color: #8290a4;
    font-size: 8px;
    letter-spacing: 0.08em;
}

.portal-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-footer-links a,
.portal-footer-grid > p {
    color: #738095;
    font-size: 10px;
}

.portal-footer-grid > p {
    margin: 0;
    text-align: right;
}

/* Auth */
.auth-layout {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(480px, 1.05fr) minmax(430px, 0.95fr);
    background: #f7f9fc;
}

.auth-visual-panel {
    min-height: 680px;
    padding: 56px max(44px, calc((100vw - 1180px) / 2));
    padding-right: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 85% 18%, rgba(25, 198, 230, 0.24), transparent 25%),
        radial-gradient(circle at 20% 86%, rgba(22, 139, 255, 0.23), transparent 30%),
        linear-gradient(145deg, #09152f, #0d2b5a);
    color: #fff;
}

.auth-visual-panel::after {
    content: "";
    width: 430px;
    height: 430px;
    position: absolute;
    right: -250px;
    bottom: -260px;
    border: 74px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.auth-visual-content {
    width: min(560px, 100%);
    position: relative;
    z-index: 2;
}

.light-kicker {
    color: #83d9ff;
}

.auth-visual-content h1 {
    margin: 16px 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.01;
    letter-spacing: -0.05em;
}

.auth-visual-content > p {
    margin: 0;
    color: #b7c7da;
    font-size: 14px;
    line-height: 1.65;
}

.auth-channel-row {
    margin-top: 28px;
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.auth-channel-row > div {
    min-height: 52px;
    padding: 7px 12px 7px 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
}

.auth-channel-row strong {
    font-size: 10px;
}

.auth-preview-card {
    margin-top: 34px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
}

.auth-preview-head {
    padding-bottom: 13px;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-preview-head > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28c982;
}

.auth-preview-head strong {
    font-size: 11px;
}

.auth-preview-head small {
    color: #a9bad0;
    font-size: 8px;
}

.auth-preview-message {
    min-height: 58px;
    padding: 12px 4px;
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.auth-preview-message:last-child {
    border-bottom: 0;
}

.auth-preview-message > div {
    display: grid;
    gap: 4px;
}

.auth-preview-message strong {
    font-size: 10px;
}

.auth-preview-message span {
    color: #b7c5d8;
    font-size: 9px;
}

.auth-preview-message small {
    color: #8093ad;
    font-size: 8px;
}

.auth-form-side {
    padding: 46px;
    display: grid;
    place-items: center;
    background: #fff;
}

.auth-form-card {
    width: min(430px, 100%);
}

.auth-form-tag {
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.auth-form-card h2 {
    margin: 10px 0 8px;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.auth-form-card > p:not(.helper) {
    margin: 0;
    color: #7a879a;
    font-size: 13px;
    line-height: 1.55;
}

.auth-form {
    margin-top: 28px;
    gap: 17px;
}

.auth-form input {
    min-height: 49px;
    background: #f8fafc;
}

.auth-submit {
    min-height: 50px;
    margin-top: 3px;
}

.auth-helper {
    padding-top: 18px;
    border-top: 1px solid #edf1f6;
    text-align: center;
    font-size: 12px;
}

.auth-helper a {
    color: var(--blue-strong);
    font-weight: 800;
}

.auth-back-link {
    margin-top: 18px;
    display: block;
    text-align: center;
    color: #8a96a8;
    font-size: 10px;
    font-weight: 700;
}

.register-checks {
    margin-top: 34px;
    display: grid;
    gap: 10px;
}

.register-checks > div {
    min-height: 70px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
}

.register-checks > div > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(22, 139, 255, 0.25);
    color: #8edcff;
    font-size: 9px;
    font-weight: 900;
}

.register-checks p {
    margin: 0;
    color: #adbed3;
    font-size: 9px;
    line-height: 1.45;
}

.register-checks strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 11px;
}

/* Legal */
.legal-page {
    width: min(900px, calc(100% - 32px));
    margin: 46px auto 70px;
    padding: 38px 42px;
    border: 1px solid #e2e9f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.legal-page h1 {
    margin: 0 0 8px;
    font-size: 38px;
    letter-spacing: -0.04em;
}

.legal-page h2 {
    margin-top: 30px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
    color: #5f6d82;
    font-size: 13px;
    line-height: 1.7;
}

.legal-page a {
    color: var(--blue-strong);
    font-weight: 700;
}

/* Responsive overrides for the retractable sidebar and new pages */
@media (max-width: 1180px) and (min-width: 821px) {
    .app-shell {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .sidebar {
        width: 72px;
    }

    .sidebar:hover,
    .sidebar:focus-within {
        width: 238px;
    }

    .portal-hero-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
        gap: 30px;
    }

    .portal-floating-channel {
        transform: scale(0.92);
    }
}

@media (max-width: 960px) {
    .public-nav {
        display: none;
    }

    .portal-hero-grid,
    .portal-how-grid {
        grid-template-columns: 1fr;
    }

    .portal-hero-grid {
        padding-block: 60px;
    }

    .portal-product-stage {
        width: min(690px, 100%);
        margin: 0 auto;
    }

    .portal-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-trust .portal-shell {
        grid-template-columns: 1fr;
        padding-block: 24px;
    }

    .portal-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual-panel {
        min-height: auto;
        padding: 58px max(28px, calc((100vw - 760px) / 2));
    }

    .auth-preview-card {
        display: none;
    }

    .auth-form-side {
        padding-block: 54px;
    }

    .meta-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar,
    .sidebar:hover,
    .sidebar:focus-within {
        width: 100%;
        height: auto;
        position: static;
        padding: 12px 14px;
        overflow: visible;
        box-shadow: none;
    }

    .sidebar .brand {
        width: auto;
    }

    .sidebar-reveal {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .sidebar-nav {
        width: 100%;
        margin-top: 14px;
        display: flex;
        gap: 5px;
        overflow-x: auto;
    }

    .nav-item {
        width: auto;
        min-width: max-content;
    }

    .nav-item small,
    .sidebar-footer-card {
        display: none;
    }

    .page-heading-row {
        display: grid;
    }

    .page-channel-pills {
        justify-content: flex-start;
    }

    .inbox-shell {
        grid-template-columns: 1fr;
    }

    .inbox-list-panel {
        border-right: 0;
        border-bottom: 1px solid #e8edf4;
    }

    .inbox-conversation-list {
        max-height: 360px;
    }

    .portal-channel-grid {
        grid-template-columns: 1fr;
    }

    .portal-cta-card {
        display: grid;
    }

    .portal-footer-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .portal-footer-grid > p {
        text-align: center;
    }
}

@media (max-width: 620px) {
    .public-topbar {
        padding-inline: 16px;
    }

    .public-actions .public-login-link {
        display: none;
    }

    .public-actions .button {
        padding-inline: 12px;
    }

    .brand-public .brand-copy small {
        display: none;
    }

    .portal-shell {
        width: min(100% - 24px, 1180px);
    }

    .portal-hero-grid {
        min-height: 0;
        padding-block: 44px 56px;
    }

    .portal-hero-copy h1 {
        font-size: 42px;
    }

    .portal-hero-copy > p {
        font-size: 14px;
    }

    .portal-proof-line {
        display: grid;
    }

    .portal-product-stage {
        min-height: 390px;
    }

    .portal-mini-dashboard {
        height: 310px;
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .mini-dash-content {
        grid-template-columns: 1fr;
    }

    .mini-conversations {
        display: none;
    }

    .portal-floating-channel {
        min-width: 142px;
        transform: scale(0.84);
    }

    .whatsapp-card { left: -22px; top: 50px; }
    .instagram-card { right: -22px; top: 115px; }
    .facebook-card { right: 2px; bottom: 26px; }

    .portal-trust-items {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .portal-section,
    .portal-dark-section {
        padding: 68px 0;
    }

    .portal-benefit-grid,
    .portal-feature-grid,
    .meta-page-grid {
        grid-template-columns: 1fr;
    }

    .portal-benefit-card {
        min-height: 210px;
    }

    .portal-cta-card {
        padding: 28px;
    }

    .auth-visual-content h1 {
        font-size: 40px;
    }

    .auth-channel-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .auth-form-side {
        padding: 42px 20px;
    }

    .auth-form-card h2 {
        font-size: 30px;
    }

    .legal-page {
        margin-top: 24px;
        padding: 26px 20px;
    }

    .legal-page h1 {
        font-size: 31px;
    }

    .inbox-chat-head {
        align-items: flex-start;
    }

    .inbox-chat-head > .status {
        display: none;
    }

    .message-bubble {
        width: 90%;
    }
}
