:root {
    --color-bg-page: #0D0D17;
    --color-bg-shell: #131320;
    --color-bg-sidebar-icons: #111118;
    --color-bg-sidebar-menu: #18181F;
    --color-bg-card: #1E1E2A;
    --color-bg-elevated: #252530;
    --color-border: #2A2A38;
    --color-border-soft: rgba(255, 255, 255, 0.05);
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #C0C0D0;
    --color-text-muted: #7A7A90;
    --color-text-soft: #50505E;
    --color-primary: #4ECDC4;
    --color-primary-hover: #38B2AC;
    --color-orange: #F6A623;
    --color-blue: #4A90D9;
    --color-purple: #9B59B6;
    --color-pink: #E056A0;
    --color-success: #2ECC71;
    --color-danger: #E74C3C;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-main: 0 16px 40px rgba(0, 0, 0, 0.35);
    --font-family: "Nunito Sans", "DM Sans", system-ui, sans-serif;
    --sidebar-width: 196px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg-page);
    color: var(--color-text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-size: 14px;
}

/* ── SIDEBAR ICONS ── */
.sidebar-icons {
    width: 62px;
    background: var(--color-bg-sidebar-icons);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 6px;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-icons .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), #2aa89f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.sidebar-icons .logo-icon svg {
    width: 20px;
    height: 20px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.18s;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
}

.icon-btn.active {
    color: var(--color-primary);
    background: rgba(78, 205, 196, 0.1);
}

.icon-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 0 3px 3px 0;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.sidebar-icons .spacer {
    flex: 1;
}

/* ── SIDEBAR MENU ── */
.sidebar-menu {
    width: var(--sidebar-width);
    background: var(--color-bg-sidebar-menu);
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
    overflow-y: auto;
    transition: width 0.28s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}

.sidebar-menu.collapsed {
    width: 0;
    padding: 20px 0;
}

.sidebar-menu::-webkit-scrollbar {
    width: 3px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.brand-block {
    padding: 0 8px 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
    white-space: nowrap;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.3px;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-soft);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0 8px;
    margin: 10px 0 6px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar-menu.collapsed .nav-section-label {
    opacity: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.18s;
    margin-bottom: 2px;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
}

.nav-item.active {
    background: rgba(78, 205, 196, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.nav-item .nav-label {
    transition: opacity 0.2s, width 0.28s;
}

.sidebar-menu.collapsed .nav-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.whatsapp-card {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

.sidebar-menu.collapsed .whatsapp-card {
    opacity: 0;
    pointer-events: none;
}

.wz-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wz-dot {
    width: 8px;
    height: 8px;
    background: #25D166;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(37, 209, 102, 0.5);
    flex-shrink: 0;
}

.wz-label {
    font-size: 12px;
    font-weight: 600;
    color: #25D166;
}

.wz-sub {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.plan-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.plan-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.plan-info .plan-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.plan-info .plan-type {
    font-size: 11px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.plan-info {
    transition: opacity 0.2s;
}

.sidebar-menu.collapsed .plan-info {
    opacity: 0;
}

/* ── COLLAPSE TOGGLE ── */
.toggle-sidebar {
    position: absolute;
    top: 50%;
    left: 62px;
    transform: translateY(-50%);
    width: 20px;
    height: 40px;
    background: var(--color-bg-sidebar-menu);
    border: 1px solid var(--color-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: var(--color-text-muted);
    transition: left 0.28s cubic-bezier(.4, 0, .2, 1), background 0.15s;
}

.toggle-sidebar:hover {
    background: var(--color-bg-elevated);
    color: var(--color-primary);
}

.toggle-sidebar svg {
    width: 12px;
    height: 12px;
    transition: transform 0.28s;
}

.toggle-sidebar.collapsed svg {
    transform: rotate(180deg);
}

/* ── MAIN ── */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-bg-shell);
}

/* ── HEADER ── */
.header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    background: var(--color-bg-shell);
}

.search-bar {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 9px 16px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.search-bar svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-family: var(--font-family);
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--color-text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.notif-btn {
    width: 36px;
    height: 36px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    position: relative;
}

.notif-btn svg {
    width: 17px;
    height: 17px;
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: var(--color-danger);
    border-radius: 50%;
    border: 2px solid var(--color-bg-shell);
}

.user-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 6px 12px 6px 8px;
    cursor: pointer;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.user-sub {
    font-size: 11px;
    color: var(--color-text-muted);
}

.chevron {
    color: var(--color-text-muted);
    margin-left: 4px;
}

.chevron svg {
    width: 14px;
    height: 14px;
}

/* ── CONTENT AREA ── */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content::-webkit-scrollbar {
    width: 4px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

/* ── PAGE VISIBILITY ── */
.page {
    display: none;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    animation: fadeUp 0.3s ease both;
}

.page.active {
    display: flex;
}

/* ── SHARED COMPONENTS ── */
.greeting-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.greeting h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.greeting p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-weight: 400;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 12.5px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.date-filter svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.5fr;
    gap: 16px;
}

.kpi-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-main);
}

.kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.kpi-icon svg {
    width: 18px;
    height: 18px;
}

.kpi-icon.orange {
    background: rgba(246, 166, 35, 0.15);
    color: var(--color-orange);
}

.kpi-icon.teal {
    background: rgba(78, 205, 196, 0.15);
    color: var(--color-primary);
}

.kpi-icon.blue {
    background: rgba(74, 144, 217, 0.15);
    color: var(--color-blue);
}

.kpi-icon.purple {
    background: rgba(155, 89, 182, 0.15);
    color: var(--color-purple);
}

.kpi-icon.pink {
    background: rgba(224, 86, 160, 0.15);
    color: var(--color-pink);
}

.kpi-icon.success {
    background: rgba(46, 204, 113, 0.15);
    color: var(--color-success);
}

.kpi-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.kpi-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    margin-top: 10px;
}

.kpi-badge.pos {
    background: rgba(46, 204, 113, 0.12);
    color: var(--color-success);
}

.kpi-badge.neg {
    background: rgba(231, 76, 60, 0.12);
    color: var(--color-danger);
}

.kpi-badge svg {
    width: 11px;
    height: 11px;
}

.card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.card-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.15s;
}

.btn-ghost:hover {
    color: var(--color-text-secondary);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost.active {
    color: var(--color-primary);
    border-color: rgba(78, 205, 196, 0.3);
    background: rgba(78, 205, 196, 0.06);
}

.btn-primary {
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #0D0D17;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-primary svg {
    width: 14px;
    height: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
}

.badge.success {
    background: rgba(46, 204, 113, 0.12);
    color: var(--color-success);
}

.badge.danger {
    background: rgba(231, 76, 60, 0.12);
    color: var(--color-danger);
}

.badge.warning {
    background: rgba(246, 166, 35, 0.12);
    color: var(--color-orange);
}

.badge.info {
    background: rgba(74, 144, 217, 0.12);
    color: var(--color-blue);
}

.badge.purple {
    background: rgba(155, 89, 182, 0.12);
    color: var(--color-purple);
}

.badge.muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

canvas {
    display: block;
}

/* ═══════════════════════════════════
   PAGE: DASHBOARD
═══════════════════════════════════ */
.bar-chart-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.row2 {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}

.table-head {
    display: grid;
    grid-template-columns: 28px 1fr 140px 70px;
    gap: 10px;
    padding: 0 4px 10px;
    border-bottom: 1px solid var(--color-border-soft);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-soft);
}

.table-row {
    display: grid;
    grid-template-columns: 28px 1fr 140px 70px;
    gap: 10px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--color-border-soft);
    align-items: center;
    transition: background 0.15s;
    border-radius: 8px;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-row:last-child {
    border-bottom: none;
}

.row-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-soft);
    text-align: center;
}

.row-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.bar-wrap {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
}

.pct-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    text-align: center;
}

.donut-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-center-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.donut-center-lbl {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.legend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legend-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-lbl {
    font-size: 12.5px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.legend-val {
    font-size: 12.5px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.row3 {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 16px;
}

.gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-top: -10px;
}

.gauge-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
    text-align: center;
}

.earnings-big {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 4px 0;
}

.earnings-desc {
    font-size: 12px;
    color: var(--color-text-muted);
}

.funnel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funnel-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.funnel-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.funnel-item-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.funnel-bar-bg {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.funnel-bar-fill {
    height: 100%;
    border-radius: 6px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--color-border-soft);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot-wrap {
    padding-top: 3px;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.activity-body {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.activity-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 11px;
    color: var(--color-text-soft);
    flex-shrink: 0;
    padding-top: 2px;
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ═══════════════════════════════════
   PAGE: CONVERSAS
═══════════════════════════════════ */
.conversations-layout {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    gap: 0;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.conv-list-panel {
    background: var(--color-bg-card);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.conv-list-header {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
}

.conv-list-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.conv-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.conv-search svg {
    width: 13px;
    height: 13px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.conv-search input {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 12.5px;
    color: var(--color-text-secondary);
    width: 100%;
}

.conv-search input::placeholder {
    color: var(--color-text-muted);
}

.conv-filters {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
}

.conv-filters::-webkit-scrollbar {
    display: none;
}

.conv-filter-btn {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    background: none;
    font-family: var(--font-family);
}

.conv-filter-btn.active {
    background: rgba(78, 205, 196, 0.1);
    color: var(--color-primary);
    border-color: rgba(78, 205, 196, 0.3);
}

.conv-list {
    flex: 1;
    overflow-y: auto;
}

.conv-list::-webkit-scrollbar {
    width: 3px;
}

.conv-list::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.conv-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--color-border-soft);
}

.conv-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.conv-item.active {
    background: rgba(78, 205, 196, 0.06);
    border-right: 2px solid var(--color-primary);
}

.conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}

.conv-avatar .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #25D166;
    border-radius: 50%;
    border: 2px solid var(--color-bg-card);
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.conv-last {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.conv-time {
    font-size: 11px;
    color: var(--color-text-soft);
}

.conv-unread {
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #0D0D17;
}

/* Chat panel */
.chat-panel {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-shell);
}

.chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-info {
    flex: 1;
}

.chat-header-name {
    font-size: 15px;
    font-weight: 700;
}

.chat-header-status {
    font-size: 12px;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-header-status span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--color-success);
    border-radius: 50%;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.msg-wrap {
    display: flex;
    gap: 8px;
}

.msg-wrap.out {
    flex-direction: row-reverse;
}

.msg-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.msg-wrap.in .msg-bubble {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    border-bottom-left-radius: 4px;
}

.msg-wrap.out .msg-bubble {
    background: rgba(78, 205, 196, 0.15);
    color: var(--color-text-primary);
    border-bottom-right-radius: 4px;
}

.msg-time {
    font-size: 10.5px;
    color: var(--color-text-soft);
    margin-top: 4px;
    text-align: right;
}

.msg-wrap.in .msg-time {
    text-align: left;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-top: auto;
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    outline: none;
}

.chat-input::placeholder {
    color: var(--color-text-muted);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0D0D17;
    flex-shrink: 0;
    transition: background 0.15s;
}

.chat-send-btn:hover {
    background: var(--color-primary-hover);
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
}

/* Client info panel */
.client-info-panel {
    background: var(--color-bg-sidebar-menu);
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.client-info-panel::-webkit-scrollbar {
    width: 3px;
}

.client-info-panel::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.client-info-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.client-info-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 12px;
}

.client-info-name {
    font-size: 15px;
    font-weight: 700;
}

.client-info-phone {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 3px;
}

.client-info-tags {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.client-info-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.client-info-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text-soft);
    margin-bottom: 10px;
}

.client-info-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.client-info-stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.client-info-stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.client-note {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════
   PAGE: CLIENTES
═══════════════════════════════════ */
.clients-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.clients-table-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.clients-table-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.clients-table-controls .conv-search {
    flex: 1;
    max-width: 320px;
}

.ct-head {
    display: grid;
    grid-template-columns: 40px 1fr 130px 120px 100px 100px 80px;
    gap: 10px;
    padding: 0 8px 10px;
    border-bottom: 1px solid var(--color-border-soft);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ct-row {
    display: grid;
    grid-template-columns: 40px 1fr 130px 120px 100px 100px 80px;
    gap: 10px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border-soft);
    align-items: center;
    transition: background 0.15s;
    border-radius: 8px;
}

.ct-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ct-row:last-child {
    border-bottom: none;
}

.ct-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.ct-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.ct-phone {
    font-size: 12px;
    color: var(--color-text-muted);
}

.ct-text {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    background: none;
    font-family: var(--font-family);
}

.page-btn.active {
    background: var(--color-primary);
    color: #0D0D17;
    border-color: var(--color-primary);
}

.page-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════
   PAGE: AGENDAMENTOS
═══════════════════════════════════ */
.agen-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    height: 100%;
}

.calendar-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    background: var(--color-bg-elevated);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    transition: all 0.15s;
}

.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
}

.cal-nav-btn svg {
    width: 14px;
    height: 14px;
}

.cal-month {
    font-size: 16px;
    font-weight: 700;
}

.cal-view-tabs {
    display: flex;
    gap: 4px;
}

.cal-tab {
    padding: 5px 12px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--color-text-muted);
}

.cal-tab.active {
    background: rgba(78, 205, 196, 0.1);
    color: var(--color-primary);
}

.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.cal-day-name {
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-text-soft);
    padding: 4px 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    flex: 1;
}

.cal-cell {
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    min-height: 72px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.cal-cell:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cal-cell.other-month .cal-day-num {
    color: var(--color-text-soft);
}

.cal-cell.today {
    background: rgba(78, 205, 196, 0.06);
}

.cal-cell.today .cal-day-num {
    color: var(--color-primary);
    font-weight: 800;
}

.cal-cell.selected {
    background: rgba(78, 205, 196, 0.1);
}

.cal-day-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
}

.cal-event {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-event.teal {
    background: rgba(78, 205, 196, 0.2);
    color: var(--color-primary);
}

.cal-event.blue {
    background: rgba(74, 144, 217, 0.2);
    color: var(--color-blue);
}

.cal-event.orange {
    background: rgba(246, 166, 35, 0.2);
    color: var(--color-orange);
}

.cal-event.purple {
    background: rgba(155, 89, 182, 0.2);
    color: var(--color-purple);
}

/* Appointments sidebar */
.agen-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.agen-side::-webkit-scrollbar {
    width: 3px;
}

.agen-side::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.agenda-item {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.agenda-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.agenda-item.teal::before {
    background: var(--color-primary);
}

.agenda-item.blue::before {
    background: var(--color-blue);
}

.agenda-item.orange::before {
    background: var(--color-orange);
}

.agenda-item.purple::before {
    background: var(--color-purple);
}

.agenda-item-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.agenda-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.agenda-item-service {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.agenda-item-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

/* ═══════════════════════════════════
   PAGE: AUTOMAÇÃO
═══════════════════════════════════ */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.auto-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.auto-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
}

.auto-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.auto-icon svg {
    width: 22px;
    height: 22px;
}

.auto-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.auto-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.auto-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.auto-stat {}

.auto-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.auto-stat-lbl {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-track {
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--color-border);
    transition: background 0.2s;
    position: absolute;
    top: 0;
    left: 0;
}

.toggle-switch input:checked+.toggle-track {
    background: var(--color-primary);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.toggle-switch input:checked~.toggle-thumb {
    transform: translateX(18px);
}

.auto-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-soft);
}

.auto-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.auto-trigger svg {
    width: 13px;
    height: 13px;
}

/* ═══════════════════════════════════
   PAGE: FUNIS
═══════════════════════════════════ */
.pipeline-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    height: 100%;
    overflow-x: auto;
}

.pipeline-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.pipeline-col-header {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pipeline-col-title {
    font-size: 13px;
    font-weight: 700;
}

.pipeline-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.pipeline-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: grab;
    transition: all 0.15s;
    box-shadow: var(--shadow-card);
}

.pipeline-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-main);
}

.pipeline-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.pipeline-card-service {
    font-size: 11.5px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.pipeline-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pipeline-card-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

.pipeline-card-time {
    font-size: 11px;
    color: var(--color-text-soft);
}

.pipeline-add {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.15s;
}

.pipeline-add:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
}

.pipeline-add svg {
    width: 14px;
    height: 14px;
}

/* ═══════════════════════════════════
   PAGE: TRANSMISSÕES
═══════════════════════════════════ */
.trans-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
}

.trans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trans-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.trans-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.trans-name {
    font-size: 15px;
    font-weight: 700;
}

.trans-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 3px;
}

.trans-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-soft);
}

.trans-metric {
    text-align: center;
}

.trans-metric-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-primary);
}

.trans-metric-lbl {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.trans-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.trans-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--color-primary);
}

/* Create campaign panel */
.create-campaign-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    display: block;
}

.form-input {
    width: 100%;
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 13px;
    color: var(--color-text-secondary);
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus {
    border-color: rgba(78, 205, 196, 0.4);
}

.form-input::placeholder {
    color: var(--color-text-soft);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    cursor: pointer;
}

/* ═══════════════════════════════════
   PAGE: RELATÓRIOS
═══════════════════════════════════ */
.relat-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.relat-row2 {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 16px;
}

.relat-row3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ═══════════════════════════════════
   PAGE: EQUIPE
═══════════════════════════════════ */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.team-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.2s;
}

.team-card:hover {
    transform: translateY(-2px);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 12px;
    position: relative;
}

.team-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-bg-card);
}

.team-online.online {
    background: #25D166;
}

.team-online.offline {
    background: var(--color-text-soft);
}

.team-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.team-role {
    font-size: 12.5px;
    color: var(--color-text-muted);
    margin-top: 3px;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.team-stat {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.team-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-primary);
}

.team-stat-lbl {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.team-card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.team-perms {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════
   PAGE: CONFIGURAÇÕES
═══════════════════════════════════ */
.config-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
}

.config-sidebar {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-card);
    align-self: start;
}

.config-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.config-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
}

.config-nav-item.active {
    background: rgba(78, 205, 196, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.config-nav-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.config-panel {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.config-section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.config-section-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 22px;
}

.config-divider {
    height: 1px;
    background: var(--color-border);
    margin: 20px 0;
}

.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.config-row-info .config-row-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.config-row-info .config-row-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.config-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.danger-zone {
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-top: 20px;
}

.danger-zone-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-danger);
    margin-bottom: 10px;
}

.btn-danger {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-danger);
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.15s;
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.18);
}

.plan-option {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    cursor: pointer;
    transition: all 0.15s;
}

.plan-option.selected {
    border-color: rgba(78, 205, 196, 0.5);
    background: rgba(78, 205, 196, 0.05);
}

.plan-option-name {
    font-size: 15px;
    font-weight: 700;
}

.plan-option-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 4px 0;
}

.plan-option-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.plan-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
