:root {
    --bg: #070b14;
    --bg-soft: #0b1220;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-strong: rgba(255, 255, 255, 0.075);
    --border: rgba(255, 255, 255, 0.11);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --primary: #25f4b6;
    --primary-dark: #13c996;
    --purple: #7c5cff;
    --blue: #38bdf8;
    --orange: #f59e0b;
    --danger: #ef4444;
    --success: #22c55e;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #25f4b6 #07111c;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(37, 244, 182, 0.13), transparent 32%),
        radial-gradient(circle at 100% 18%, rgba(124, 92, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #07111c 0%, #070b14 45%, #111026 100%);
    color: var(--text);
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 14px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

button {
    transition: 0.2s ease;
}

button:hover {
    filter: brightness(1.06);
}

/* SCROLLBARS */

::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sidebar__scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.sidebar__scroll::-webkit-scrollbar-track {
    background: #07111c !important;
}

::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.sidebar__scroll::-webkit-scrollbar-thumb {
    background: #25f4b6 !important;
    border-radius: 999px;
    border: 2px solid #07111c;
}

::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.sidebar__scroll::-webkit-scrollbar-thumb:hover {
    background: #13c996 !important;
}

::-webkit-scrollbar-corner,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.sidebar__scroll::-webkit-scrollbar-corner {
    background: #07111c !important;
}

/* APP */

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: var(--sidebar-width);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background:
        radial-gradient(circle at 20% 5%, rgba(37, 244, 182, 0.10), transparent 35%),
        linear-gradient(180deg, rgba(3, 10, 22, 0.98), rgba(4, 12, 26, 0.98));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    z-index: 20;
    overflow: hidden !important;
}

.sidebar__scroll {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding: 18px 18px 24px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 0 2px;
}

.brand__icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #25f4b6, #5b7cfa);
    color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 20px 50px rgba(37, 244, 182, 0.28);
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__text strong {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.brand__text span {
    margin-top: 6px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.34em;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #cbd5e1;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 400;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.sidebar__link i {
    font-size: 17px;
    width: 22px;
    text-align: center;
}

.sidebar__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.sidebar__link.active {
    background: var(--primary);
    color: #03110d;
    box-shadow: 0 18px 45px rgba(37, 244, 182, 0.25);
}

.sidebar__plan {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(37, 244, 182, 0.16);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 24px;
}

.plan__icon {
    width: 44px;
    height: 44px;
    border-radius: 18px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 22px;
    border: 1px solid rgba(37, 244, 182, 0.28);
}

.sidebar__plan small {
    color: var(--muted);
    display: block;
    font-size: 11px;
}

.sidebar__plan strong {
    color: var(--primary);
    display: block;
    font-size: 19px;
    margin: 3px 0 12px;
}

.sidebar__plan button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.sidebar__collapse {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 30px;
    background: transparent;
    border: 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    font-size: 13px;
}

/* MAIN */

.main {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 24px;
}

.topbar {
    min-height: 82px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 28px;
    padding: 14px;
    margin-bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.topbar__search {
    flex: 1;
    max-width: 560px;
    height: 48px;
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.78);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    color: var(--muted);
}

.topbar__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.topbar__search input::placeholder {
    color: var(--muted-2);
}

.topbar__search span {
    font-size: 11px;
    color: var(--muted-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px 7px;
    white-space: nowrap;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dot {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #04110d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 18px;
    padding: 7px 12px 7px 7px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-info strong {
    font-size: 12px;
    color: #ffffff;
}

.user-info span {
    font-size: 10px;
    color: var(--muted);
}

.btn-new-lead {
    border: 0;
    border-radius: 18px;
    background: var(--primary);
    color: #04110d;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 18px 40px rgba(37, 244, 182, 0.22);
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* DASHBOARD */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.22em;
}

.dashboard-header h1 {
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 500;
    letter-spacing: -0.06em;
    margin: 8px 0 8px;
    color: #ffffff;
}

.dashboard-header p {
    color: #b6c2d8;
    margin: 0;
    max-width: 760px;
    font-size: 14px;
}

.dashboard-header__actions {
    display: flex;
    gap: 10px;
}

.btn-filter,
.panel-action {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    border-radius: 16px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-filter strong {
    color: #ffffff;
    font-weight: 700;
}

/* KPI */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.kpi-card,
.panel {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 28px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.kpi-card {
    padding: 22px;
    min-height: 164px;
}

.kpi-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.kpi-card span {
    color: var(--muted);
    font-size: 13px;
}

.kpi-card strong {
    display: block;
    margin-top: 9px;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.kpi-icon.purple {
    background: rgba(124, 92, 255, 0.12);
    color: var(--purple);
}

.kpi-icon.blue {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
}

.kpi-icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange);
}

.kpi-card__footer {
    margin-top: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-card__footer.positive {
    color: var(--primary);
}

/* PANELS */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 18px;
}

.panel {
    padding: 22px;
}

.panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.panel__header h2 {
    font-size: 19px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.panel__header p {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 13px;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.pipeline-stage {
    background: rgba(7, 11, 20, 0.72);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
}

.stage-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.stage-progress span {
    height: 100%;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}

.pipeline-stage strong {
    font-size: 13px;
    color: #ffffff;
}

.pipeline-stage h3 {
    margin: 12px 0 2px;
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
}

.pipeline-stage p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.chart-card {
    margin-top: 18px;
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    align-items: end;
}

.chart-card__info span {
    color: var(--muted);
    font-size: 13px;
}

.chart-card__info strong {
    display: block;
    font-size: 28px;
    font-weight: 600;
    margin: 6px 0;
    color: #ffffff;
}

.chart-card__info small {
    color: var(--primary);
    font-weight: 700;
}

.fake-chart {
    height: 150px;
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        rgba(255, 255, 255, 0.025);
    background-size: 100% 32px;
}

.fake-chart span {
    flex: 1;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, var(--primary), rgba(37, 244, 182, 0.12));
}

/* ACTIVITIES */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(7, 11, 20, 0.72);
    border: 1px solid var(--border);
}

.activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.activity-icon.success {
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
}

.activity-icon.warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange);
}

.activity-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.activity-item strong {
    font-size: 13px;
    color: #ffffff;
}

.activity-item p {
    color: var(--muted);
    font-size: 12px;
    margin: 4px 0;
}

.activity-item small {
    color: var(--muted-2);
    font-size: 12px;
}

/* TABLE */

.leads-panel {
    overflow: hidden;
}

.nexus-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.nexus-table thead {
    background: rgba(255, 255, 255, 0.045);
}

.nexus-table th {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 16px;
    font-weight: 700;
}

.nexus-table td {
    padding: 16px;
    border-top: 1px solid var(--border);
    color: #dbeafe;
    vertical-align: middle;
    font-size: 13px;
}

.nexus-table tbody tr {
    transition: 0.2s ease;
    cursor: pointer;
}

.nexus-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.nexus-table td strong {
    display: block;
    color: #fff;
    margin-bottom: 3px;
    font-weight: 600;
}

.nexus-table td span {
    color: var(--muted);
    font-size: 11px;
}

.badge-nexus,
.temperature {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px !important;
    font-weight: 700;
    white-space: nowrap;
}

.badge-nexus.success {
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary) !important;
}

.badge-nexus.info {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue) !important;
}

.badge-nexus.purple {
    background: rgba(124, 92, 255, 0.12);
    color: #b8a9ff !important;
}

.badge-nexus.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d !important;
}

.badge-nexus.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5 !important;
}

.temperature.hot {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5 !important;
}

.temperature.warm {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d !important;
}

/* LEADS PAGE */

.leads-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
}

.leads-panel-main {
    min-width: 0;
}

.lead-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.lead-tab {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    color: var(--muted);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lead-tab span {
    color: var(--primary);
    background: rgba(37, 244, 182, 0.10);
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 11px;
}

.lead-tab.active {
    background: var(--primary);
    color: #03110d;
    border-color: var(--primary);
}

.lead-tab.active span {
    background: rgba(3, 17, 13, 0.12);
    color: #03110d;
}

.lead-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.lead-score {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 90px;
}

.lead-score strong {
    margin: 0 !important;
    font-size: 13px;
    color: #fff;
}

.lead-score span {
    width: 54px;
    height: 7px;
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.lead-score span i {
    height: 100%;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}

.leads-followup-panel {
    position: sticky;
    top: 24px;
}

.followup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.followup-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 20px;
}

.followup-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.followup-avatar.purple {
    background: rgba(124, 92, 255, 0.12);
    color: #b8a9ff;
}

.followup-avatar.blue {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
}

.followup-avatar.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.followup-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.followup-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.followup-item small {
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.followup-button {
    margin-top: 16px;
    width: 100%;
    border: 1px solid rgba(37, 244, 182, 0.22);
    background: rgba(37, 244, 182, 0.10);
    color: var(--primary);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* JS STATES */

.sidebar-collapsed .sidebar {
    width: 92px;
}

.sidebar-collapsed .main {
    width: calc(100% - 92px);
    margin-left: 92px;
}

.sidebar-collapsed .brand__text,
.sidebar-collapsed .sidebar__link span,
.sidebar-collapsed .sidebar__plan,
.sidebar-collapsed .sidebar__collapse span {
    display: none;
}

.sidebar-collapsed .sidebar__link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar-collapsed .sidebar__brand {
    justify-content: center;
}

.is-clicked {
    transform: scale(0.97);
}

.selected-row {
    background: rgba(37, 244, 182, 0.06);
}

/* RESPONSIVO */

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .leads-layout {
        grid-template-columns: 1fr;
    }

    .pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leads-followup-panel {
        position: static;
    }
}

@media (max-width: 991px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: relative !important;
        width: 100%;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .sidebar__scroll {
        height: auto;
        max-height: none;
        overflow: visible !important;
        padding: 22px 18px;
    }

    .sidebar__brand {
        margin-bottom: 28px;
    }

    .sidebar__nav {
        gap: 8px;
    }

    .sidebar__link {
        padding: 14px 16px;
        font-size: 15px;
    }

    .sidebar__plan {
        margin-top: 24px;
        padding: 18px;
    }

    .plan__icon {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    .sidebar__collapse {
        margin-top: 16px;
        padding: 12px;
    }

    .main {
        width: 100%;
        margin-left: 0;
        padding: 16px;
    }

    .topbar,
    .dashboard-header,
    .topbar__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar__search {
        max-width: 100%;
        width: 100%;
    }

    .user-menu {
        justify-content: space-between;
    }

    .btn-new-lead {
        justify-content: center;
    }

    .dashboard-header__actions,
    .lead-filters {
        flex-wrap: wrap;
    }

    .chart-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .kpi-grid,
    .pipeline-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .kpi-card {
        border-radius: 22px;
        padding: 18px;
    }

    .dashboard-header h1 {
        font-size: 34px;
    }

    .topbar {
        border-radius: 22px;
    }

    .lead-tab,
    .btn-filter,
    .panel-action {
        width: 100%;
        justify-content: center;
    }

    .followup-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .followup-item small {
        grid-column: 2;
    }
}


/* PIPELINE PAGE */

.pipeline-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.pipeline-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(260px, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.pipeline-column {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 28px;
    padding: 16px;
    min-height: 650px;
    backdrop-filter: blur(18px);
}

.pipeline-column__header {
    border: 1px solid rgba(37, 244, 182, 0.18);
    background: rgba(37, 244, 182, 0.08);
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pipeline-column__header strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pipeline-column__header span,
.pipeline-column__header small {
    color: var(--muted);
    font-size: 11px;
}

.pipeline-column__header.blue {
    border-color: rgba(56, 189, 248, 0.22);
    background: rgba(56, 189, 248, 0.08);
}

.pipeline-column__header.purple {
    border-color: rgba(124, 92, 255, 0.22);
    background: rgba(124, 92, 255, 0.08);
}

.pipeline-column__header.orange {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.08);
}

.pipeline-column__header.success {
    border-color: rgba(34, 197, 94, 0.22);
    background: rgba(34, 197, 94, 0.08);
}

.deal-card {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.74);
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 12px;
    transition: 0.2s ease;
}

.deal-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.055);
}

.deal-card__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.deal-card__top strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.deal-card h3 {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    margin: 14px 0 12px;
}

.deal-card p,
.deal-card small {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    margin: 0 0 7px;
}

.priority {
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.priority.high {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.priority.medium {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.priority.low {
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
}

.priority.won {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.add-deal-button {
    width: 100%;
    border: 1px dashed rgba(37, 244, 182, 0.35);
    background: rgba(37, 244, 182, 0.06);
    color: var(--primary);
    border-radius: 18px;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pipeline-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.forecast-box span {
    color: var(--muted);
    font-size: 12px;
}

.forecast-box strong {
    display: block;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0 18px;
}

.forecast-progress div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.forecast-progress small {
    color: var(--muted);
    font-size: 11px;
}

.forecast-progress > span {
    height: 9px;
    width: 100%;
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.forecast-progress > span i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 999px;
}

.goal-list,
.seller-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goal-item,
.seller-item {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 18px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.goal-item strong,
.seller-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.goal-item span,
.seller-item small {
    color: var(--muted);
    font-size: 11px;
}

.goal-item small {
    color: var(--primary);
    font-weight: 700;
}

.seller-item > span {
    width: 32px;
    height: 32px;
    border-radius: 14px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

@media (max-width: 1400px) {
    .pipeline-page-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-summary {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .pipeline-summary {
        display: flex;
    }

    .pipeline-board {
        grid-template-columns: repeat(5, 280px);
    }
}


/* CORREÇÃO ROLAGEM HORIZONTAL DO PIPELINE */

.pipeline-page-grid {
    overflow: hidden;
}

.pipeline-board {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: visible;
    display: grid;
    grid-template-columns: repeat(5, 280px);
    gap: 16px;
    padding-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: #25f4b6 #07111c;
}

.pipeline-board::-webkit-scrollbar {
    height: 10px;
}

.pipeline-board::-webkit-scrollbar-track {
    background: #07111c;
    border-radius: 999px;
}

.pipeline-board::-webkit-scrollbar-thumb {
    background: #25f4b6;
    border-radius: 999px;
    border: 2px solid #07111c;
}

.pipeline-board::-webkit-scrollbar-thumb:hover {
    background: #13c996;
}

.pipeline-column {
    min-width: 280px;
}


/* AGENDA PAGE */

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.agenda-day {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.48);
    border-radius: 24px;
    padding: 16px;
}

.agenda-day__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.agenda-day__header strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.agenda-day__header span {
    color: var(--muted);
    font-size: 12px;
}

.agenda-event {
    display: grid;
    grid-template-columns: 72px 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 20px;
    margin-bottom: 12px;
    transition: 0.2s ease;
}

.agenda-event:last-child {
    margin-bottom: 0;
}

.agenda-event:hover {
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-1px);
}

.agenda-event__time strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.agenda-event__time span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.agenda-event__icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.agenda-event__icon.success {
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
}

.agenda-event__icon.blue {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
}

.agenda-event__icon.purple {
    background: rgba(124, 92, 255, 0.12);
    color: #b8a9ff;
}

.agenda-event__icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.agenda-event__icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.agenda-event__content strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.agenda-event__content span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.agenda-event__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.agenda-event__meta small {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .agenda-day__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-event {
        grid-template-columns: 1fr;
    }

    .agenda-event__meta {
        align-items: flex-start;
    }
}


/* RELATÓRIOS PAGE */

.reports-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 18px;
}

.report-chart-panel {
    min-height: 360px;
}

.report-bars {
    height: 250px;
    display: flex;
    align-items: end;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        rgba(7, 11, 20, 0.62);
    background-size: 100% 42px;
    border-radius: 24px;
}

.report-bar {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 10px;
    align-items: center;
}

.report-bar span {
    width: 100%;
    max-width: 54px;
    display: block;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, rgba(37, 244, 182, 0.95), rgba(37, 244, 182, 0.15));
    box-shadow: 0 18px 38px rgba(37, 244, 182, 0.14);
}

.report-bar.active span {
    background: linear-gradient(180deg, var(--primary), var(--purple));
}

.report-bar small {
    color: var(--muted);
    font-size: 11px;
}

.conversion-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.conversion-item {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 20px;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.conversion-item strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.conversion-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.conversion-item small {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.conversion-progress {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.conversion-progress i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}

.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.report-card {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 22px;
    padding: 16px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
}

.report-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.report-card__icon.blue {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
}

.report-card__icon.purple {
    background: rgba(124, 92, 255, 0.12);
    color: #b8a9ff;
}

.report-card__icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.report-card strong {
    color: #fff;
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.report-card span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

.report-card button {
    grid-column: 1 / -1;
    margin-top: 4px;
    border: 1px solid rgba(37, 244, 182, 0.22);
    background: rgba(37, 244, 182, 0.08);
    color: var(--primary);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1200px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .report-cards-grid {
        grid-template-columns: 1fr;
    }

    .report-bars {
        gap: 10px;
        padding: 12px;
    }
}

/* AUTOMAÇÃO PAGE */

.automation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.automation-builder-panel {
    min-height: 520px;
}

.automation-flow {
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 244, 182, 0.08), transparent 38%),
        rgba(7, 11, 20, 0.58);
    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.automation-node {
    width: min(100%, 560px);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 22px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.automation-node.small {
    width: 100%;
}

.automation-node.success {
    border-color: rgba(37, 244, 182, 0.22);
    background: rgba(37, 244, 182, 0.07);
}

.automation-node__icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.automation-node__icon.whatsapp {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.automation-node__icon.blue {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
}

.automation-node__icon.purple {
    background: rgba(124, 92, 255, 0.12);
    color: #b8a9ff;
}

.automation-node__icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.automation-node__icon.success {
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
}

.automation-node strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.automation-node span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.automation-line {
    width: 2px;
    height: 34px;
    background: linear-gradient(180deg, var(--primary), rgba(37, 244, 182, 0.08));
}

.automation-split {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.automation-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.automation-status-list,
.integration-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.automation-status,
.integration-item {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 18px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.automation-status strong,
.integration-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.automation-status span,
.integration-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.status-online,
.status-warning,
.status-danger {
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.status-online {
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
}

.status-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.status-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.integration-item {
    justify-content: flex-start;
}

.integration-item small {
    margin-left: auto;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.integration-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.integration-icon.whatsapp {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.integration-icon.purple {
    background: rgba(124, 92, 255, 0.12);
    color: #b8a9ff;
}

@media (max-width: 1200px) {
    .automation-grid {
        grid-template-columns: 1fr;
    }

    .automation-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .automation-split,
    .automation-side {
        grid-template-columns: 1fr;
    }

    .automation-flow {
        padding: 16px;
    }
}

/* WHATSAPP PAGE */

.whatsapp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.whatsapp-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
}

.whatsapp-conversations {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.58);
    border-radius: 24px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
}

.conversation-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.conversation-item:hover,
.conversation-item.active {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border);
}

.conversation-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.conversation-avatar.purple {
    background: rgba(124, 92, 255, 0.12);
    color: #b8a9ff;
}

.conversation-avatar.blue {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
}

.conversation-avatar.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.conversation-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.conversation-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item small {
    color: var(--muted-2);
    font-size: 10px;
    white-space: nowrap;
}

.whatsapp-chat {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.58);
    border-radius: 24px;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.chat-header strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.chat-header span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.chat-header button {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
}

.chat-body {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        radial-gradient(circle at 20% 10%, rgba(37, 244, 182, 0.06), transparent 35%),
        rgba(7, 11, 20, 0.35);
}

.chat-message {
    max-width: 72%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.chat-message p {
    margin: 0;
    color: #e5eefc;
    font-size: 12px;
    line-height: 1.55;
}

.chat-message small {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    color: var(--muted);
}

.chat-message.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 6px;
}

.chat-message.sent {
    align-self: flex-end;
    background: rgba(37, 244, 182, 0.12);
    border-color: rgba(37, 244, 182, 0.20);
    border-bottom-right-radius: 6px;
}

.chat-compose {
    padding: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-compose input {
    flex: 1;
    height: 42px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    border-radius: 16px;
    padding: 0 14px;
    outline: none;
    font-size: 13px;
}

.chat-compose input::placeholder {
    color: var(--muted-2);
}

.chat-compose button {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
}

.chat-compose .send-button {
    background: var(--primary);
    color: #03110d;
    border-color: var(--primary);
}

.whatsapp-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-list button {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 18px;
    padding: 13px;
    text-align: left;
    color: var(--text);
}

.template-list strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.template-list span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

@media (max-width: 1200px) {
    .whatsapp-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .whatsapp-layout {
        grid-template-columns: 1fr;
    }

    .whatsapp-side {
        grid-template-columns: 1fr;
    }

    .chat-message {
        max-width: 90%;
    }
}



/* CONFIGURAÇÕES PAGE */

.settings-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.settings-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-menu-item {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 20px;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    text-align: left;
    color: var(--text);
}

.settings-menu-item:hover,
.settings-menu-item.active {
    border-color: rgba(37, 244, 182, 0.28);
    background: rgba(37, 244, 182, 0.08);
}

.settings-menu-icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: rgba(37, 244, 182, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.settings-menu-icon.blue {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
}

.settings-menu-icon.purple {
    background: rgba(124, 92, 255, 0.12);
    color: #b8a9ff;
}

.settings-menu-icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.settings-menu-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.settings-menu-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.settings-field input,
.settings-field select {
    height: 46px;
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    color: var(--text);
    border-radius: 16px;
    padding: 0 14px;
    outline: none;
    font-size: 13px;
}

.settings-field select option {
    background: #07111c;
    color: var(--text);
}

.settings-switches {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-switch {
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.settings-switch strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.settings-switch span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    display: none;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: 0.2s ease;
}

.switch span::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 3px;
    left: 3px;
    border-radius: 999px;
    background: #fff;
    transition: 0.2s ease;
}

.switch input:checked + span {
    background: var(--primary);
}

.switch input:checked + span::before {
    transform: translateX(20px);
    background: #03110d;
}

.settings-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.integration-icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

@media (max-width: 1400px) {
    .settings-grid {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .settings-side {
        grid-column: 1 / -1;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .settings-grid,
    .settings-side,
    .settings-form {
        grid-template-columns: 1fr;
    }

    .settings-side {
        display: flex;
    }
}




/* USUÁRIOS PAGE */

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-actions form {
    margin: 0;
}

.user-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.user-action-btn.edit {
    color: var(--blue);
}

.user-action-btn.delete {
    color: #fca5a5;
}

.user-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}


/* FORMULÁRIO DE USUÁRIOS */

.user-form-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.user-form-actions .btn-new-lead,
.user-form-actions .btn-filter {
    text-decoration: none;
}

@media (max-width: 991px) {
    .user-form-grid,
    .user-form {
        grid-template-columns: 1fr;
    }

    .user-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .user-form-actions .btn-new-lead,
    .user-form-actions .btn-filter {
        width: 100%;
        justify-content: center;
    }
}


/* MINHA CONTA */

.account-password-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-password-form .followup-button {
    margin-top: 4px;
}


/* AUDITORIA - FILTROS E PAGINAÇÃO */

.audit-filter-panel {
    overflow: visible;
}

.audit-filters {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr 0.8fr auto;
    gap: 14px;
    align-items: end;
}

.audit-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.audit-filter-actions .btn-filter,
.audit-filter-actions .btn-new-lead {
    height: 46px;
    white-space: nowrap;
    text-decoration: none;
}

.audit-description {
    max-width: 380px;
    white-space: normal;
    line-height: 1.5;
    color: #dbeafe !important;
    font-weight: 500;
}

.audit-table td {
    vertical-align: top;
}

.audit-pagination {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 12px;
}

.audit-pagination__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.audit-page-link {
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.audit-page-link.active {
    background: var(--primary);
    color: #03110d;
    border-color: var(--primary);
}

@media (max-width: 1400px) {
    .audit-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .audit-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .audit-filters {
        grid-template-columns: 1fr;
    }

    .audit-filter-actions,
    .audit-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .audit-filter-actions .btn-filter,
    .audit-filter-actions .btn-new-lead {
        justify-content: center;
    }

    .audit-pagination__actions {
        justify-content: center;
    }
}

/* FORMULÁRIO DE LEADS */

.lead-form-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.lead-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-notes-field {
    grid-column: 1 / -1;
}

.settings-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(7, 11, 20, 0.72);
    color: var(--text);
    border-radius: 16px;
    padding: 14px;
    outline: none;
    font-size: 13px;
    resize: vertical;
    min-height: 120px;
}

.settings-field textarea::placeholder {
    color: var(--muted-2);
}

.lead-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.lead-form-actions .btn-new-lead,
.lead-form-actions .btn-filter {
    text-decoration: none;
}

@media (max-width: 991px) {
    .lead-form-grid,
    .lead-form {
        grid-template-columns: 1fr;
    }

    .lead-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .lead-form-actions .btn-new-lead,
    .lead-form-actions .btn-filter {
        width: 100%;
        justify-content: center;
    }
}