/* ==========================================================================
   MEU ASSESSOR OS · DESIGN SYSTEM & MAIN STYLESHEET
   Luxury Executive Dark Mode, Glassmorphism, Micro-Animations & Responsive UI
   ========================================================================== */

/* ==========================================================================
   GLOBAL NATIVE APP SCROLLBAR SUPPRESSION (REMOVE ALL BROWSER SCROLLBARS)
   ========================================================================== */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

:root {
    /* Color Palette (KIT OS Deep Obsidian & Glassmorphism) */
    --bg-main: #070a12;
    --bg-surface: #0c121e;
    --bg-card: #111827;
    --bg-card-hover: #162235;
    --bg-input: #0e1726;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-focus: #06b6d4;

    /* Accent & Brand Colors (KIT OS Signature Emerald & Cyan Palette) */
    --brand-primary: #10b981;
    --brand-primary-light: #34d399;
    --brand-cyan: #06b6d4;
    --brand-cyan-light: #22d3ee;
    --brand-emerald: #10b981;
    --brand-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --brand-gradient-subtle: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.08));

    /* Remapped Semantic Tokens */
    --brand-purple: #10b981;
    --brand-indigo: #06b6d4;
    --brand-blue: #0284c7;
    --brand-rose: #f43f5e;
    --brand-amber: #f59e0b;

    /* WhatsApp UI Colors */
    --wa-green: #10b981;
    --wa-green-light: #34d399;
    --wa-bubble-me: #064e3b;
    --wa-bubble-advisor: #111c2e;
    --wa-check: #22d3ee;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.65);
    --shadow-glow-purple: 0 0 25px rgba(16, 185, 129, 0.3);
    --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.3);
    --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.3);
    --shadow-glow-primary: 0 0 25px rgba(16, 185, 129, 0.35);

    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-main: #f3f5f9;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f1f5f9;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-card: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --wa-bubble-advisor: #f0f2f5;
    --wa-bubble-me: #d9fdd3;
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Layout Structure */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    width: 280px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    z-index: 100;
    flex-shrink: 0;
    transition: transform var(--transition-smooth);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 6px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.brand-badge {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

/* WhatsApp Connected Status Card in Sidebar */
.whatsapp-status-card {
    background: rgba(0, 168, 132, 0.08);
    border: 1px solid rgba(0, 168, 132, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--wa-green-light);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.status-texts {
    display: flex;
    flex-direction: column;
}

.status-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.status-pill {
    background: rgba(0, 168, 132, 0.15);
    color: var(--wa-green-light);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 12px 10px 4px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.08));
    color: #fff;
    border-left: 3px solid var(--brand-primary);
}

.nav-icon {
    font-size: 16px;
}

.nav-label {
    flex: 1;
}

.nav-sublabel {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.12);
    color: var(--brand-cyan-light);
    font-weight: 600;
}

.nav-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-badge.count {
    background: var(--wa-green);
    color: #fff;
    font-weight: 700;
}

/* Sidebar Squad Mini-bar */
.sidebar-squad {
    padding: 14px 10px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 10px;
}

.squad-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.squad-avatars {
    display: flex;
    gap: 8px;
}

.squad-avatar-item {
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.squad-avatar-item:hover {
    transform: translateY(-2px);
}

.squad-avatar-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border-card);
}

.squad-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--wa-green-light);
    border-radius: 50%;
    border: 1.5px solid var(--bg-surface);
}

/* Sidebar User Footer */
.sidebar-user {
    padding: 12px 8px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-tier {
    font-size: 11px;
    color: var(--text-muted);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-main);
}

/* Top App Bar */
.top-bar {
    height: 70px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-trigger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
}

.page-title-box {
    display: flex;
    flex-direction: column;
}

.page-main-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.global-search-box {
    position: relative;
    width: 260px;
}

.global-search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 12.5px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.global-search-box input:focus {
    border-color: var(--brand-purple);
}

.global-search-box .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
}

.icon-action-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.icon-action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-rose);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tab Panels Visibility */
.tab-panel {
    display: none;
    padding: 24px;
    flex: 1;
    will-change: transform, opacity;
}

.tab-panel.active {
    display: block;
    animation: tabFadeIn 0.22s ease-out;
}

.tab-panel.active.slide-left {
    animation: tabSlideInFromRight 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tab-panel.active.slide-right {
    animation: tabSlideInFromLeft 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes tabFadeIn {
    from { opacity: 0.3; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tabSlideInFromRight {
    0% { opacity: 0.2; transform: translateX(65px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes tabSlideInFromLeft {
    0% { opacity: 0.2; transform: translateX(-65px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   WHATSAPP LIVE SIMULATOR (TAB 1)
   ========================================================================== */
.chat-dashboard-split {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 24px;
    align-items: start;
}

.wa-phone-container {
    display: flex;
    justify-content: center;
}

.wa-phone-frame {
    width: 100%;
    max-width: 440px;
    height: 740px;
    background: #0b141a;
    border-radius: 40px;
    border: 9px solid #232d36;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Phone Top Notch */
.wa-phone-notch {
    height: 34px;
    background: #111b21;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #aebac1;
    font-size: 12px;
    font-weight: 600;
}

.phone-camera-island {
    width: 70px;
    height: 14px;
    background: #000;
    border-radius: 12px;
}

.phone-icons {
    display: flex;
    gap: 6px;
    font-size: 11px;
}

/* WhatsApp In-App Header */
.wa-chat-header {
    height: 56px;
    background: #202c33;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-back-btn {
    background: transparent;
    border: none;
    color: #aebac1;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.wa-chat-avatar-stack {
    position: relative;
}

.wa-chat-avatar-stack img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.wa-active-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--wa-green-light);
    border-radius: 50%;
    border: 2px solid #202c33;
}

.wa-chat-info {
    flex: 1;
    overflow: hidden;
}

.wa-chat-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e9edef;
    font-size: 14px;
    font-weight: 600;
}

.wa-chat-members {
    font-size: 11px;
    color: #8696a0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-chat-actions {
    display: flex;
    gap: 8px;
}

.wa-action-icon {
    background: transparent;
    border: none;
    color: #aebac1;
    font-size: 18px;
    cursor: pointer;
}

/* WhatsApp Messages Flow */
.wa-messages-body {
    flex: 1;
    background-color: #0b141a;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 16px 16px;
    padding: 14px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-encryption-notice {
    background: #182229;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin: 4px 8px 10px 8px;
    text-align: center;
    font-size: 11px;
    color: #ffd279;
    line-height: 1.4;
    border: 1px solid rgba(255, 210, 121, 0.15);
}

/* Chat Bubbles */
.wa-bubble {
    max-width: 82%;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
}

/* User Message */
.wa-bubble.bubble-user {
    align-self: flex-end;
    background: var(--wa-bubble-me);
    color: #e9edef;
    border-top-right-radius: 2px;
}

/* Advisor Message */
.wa-bubble.bubble-advisor {
    align-self: flex-start;
    background: var(--wa-bubble-advisor);
    color: #e9edef;
    border-top-left-radius: 2px;
}

.advisor-bubble-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.advisor-bubble-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.advisor-bubble-name {
    font-weight: 700;
    font-size: 11.5px;
    color: var(--brand-purple);
}

.advisor-bubble-role {
    font-size: 10px;
    color: #8696a0;
}

/* Action Receipt in Bubble */
.bubble-action-receipt {
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--wa-green-light);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
}

.receipt-title {
    font-weight: 600;
    color: var(--wa-green-light);
    display: block;
    margin-bottom: 2px;
}

.receipt-item {
    color: #cbd5e1;
}

/* Bubble Meta (Time & Status) */
.bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 10px;
    color: #8696a0;
    margin-top: 4px;
}

.bubble-checks {
    color: var(--wa-check);
    font-weight: bold;
}

/* Simulated Audio Player in Bubble */
.bubble-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.audio-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wa-green);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
    flex: 1;
}

.audio-bar {
    width: 3px;
    background: #8696a0;
    border-radius: 2px;
    height: 10px;
}

.audio-duration {
    font-size: 11px;
    color: #8696a0;
}

/* WhatsApp Typing Indicator */
.wa-typing-indicator {
    padding: 6px 14px;
    background: #202c33;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 12px;
    align-self: flex-start;
    font-size: 12px;
    color: #8696a0;
}

.typing-advisor-avatar img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    background: var(--wa-green-light);
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* WhatsApp Bottom Input Dock */
.wa-input-dock {
    height: 60px;
    background: #202c33;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-dock-btn {
    background: transparent;
    border: none;
    color: #8696a0;
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.wa-dock-btn:hover {
    color: #e9edef;
}

.wa-input-wrapper {
    flex: 1;
    background: #2a3942;
    border-radius: 20px;
    padding: 0 14px;
    height: 40px;
    display: flex;
    align-items: center;
}

.wa-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #e9edef;
    font-size: 13.5px;
    font-family: var(--font-body);
}

.wa-input-wrapper input::placeholder {
    color: #8696a0;
}

.wa-send-btn {
    background: var(--wa-green);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    transition: transform var(--transition-fast);
}

.wa-send-btn:hover {
    transform: scale(1.05);
}

/* Right Control Sidebar in Chat */
.prompt-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.prompt-chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-purple);
    transform: translateX(4px);
}

.chip-advisor {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-cyan);
    background: rgba(6, 182, 212, 0.14);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    min-width: 54px;
    text-align: center;
}

.chip-text {
    font-size: 12.5px;
    color: var(--text-primary);
    flex: 1;
}

/* Live Execution Feed */
.execution-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--brand-purple);
}

.feed-item.feed-financas { border-color: var(--brand-emerald); }
.feed-item.feed-agenda { border-color: var(--brand-blue); }
.feed-item.feed-tarefas { border-color: var(--brand-amber); }

.feed-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-content {
    flex: 1;
}

.feed-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.feed-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.feed-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* ==========================================================================
   CARDS & COMMON COMPONENTS
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.card-header-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));
    color: #fff;
    box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-surface);
    border-color: var(--border-card);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Badges */
.badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.badge-subtle {
    background: rgba(16, 185, 129, 0.15);
    color: var(--brand-emerald);
}

.status-badge-live {
    background: rgba(37, 211, 102, 0.15);
    color: var(--wa-green-light);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   FINANCES MODULE (TAB 2)
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.kpi-icon-pill {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bg-emerald { background: rgba(16, 185, 129, 0.12); color: var(--brand-emerald); }
.bg-blue { background: rgba(59, 130, 246, 0.12); color: var(--brand-blue); }
.bg-rose { background: rgba(244, 63, 94, 0.12); color: var(--brand-rose); }
.bg-amber { background: rgba(245, 158, 11, 0.12); color: var(--brand-amber); }
.bg-purple { background: rgba(6, 182, 212, 0.14); color: var(--brand-cyan); }

.kpi-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.text-emerald { color: var(--brand-emerald); }
.text-rose { color: var(--brand-rose); }
.text-amber { color: var(--brand-amber); }

.kpi-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
}

.trend-up { color: var(--brand-emerald); font-weight: 600; }
.trend-down { color: var(--brand-rose); font-weight: 600; }
.kpi-sub { color: var(--text-muted); }

/* Open Finance Banks */
.banks-sync-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.connected-banks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bank-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.bank-pill:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-1px);
    background: rgba(6, 182, 212, 0.08);
}

.bank-pill.selected {
    border-color: var(--brand-primary);
    background: rgba(16, 185, 129, 0.16);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.bank-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.bank-badge-status {
    font-size: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--brand-emerald);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Bank Filter Bar & Chips */
.bank-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.bank-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bank-chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bank-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bank-chip:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.bank-chip.active {
    background: rgba(16, 185, 129, 0.16);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.bank-chip .chip-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.bank-chip-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-weight: 600;
}

.bank-chip.active .bank-chip-badge {
    background: var(--brand-primary);
    color: #fff;
}

.bank-pill-add {
    background: transparent;
    border: 1px dashed var(--border-card);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    color: var(--brand-cyan);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bank-pill-add:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--brand-cyan);
}

/* Transactions Table */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-group {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.tx-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.tx-conciliado { background: rgba(16, 185, 129, 0.15); color: var(--brand-emerald); }
.tx-pendente { background: rgba(245, 158, 11, 0.15); color: var(--brand-amber); }
.tx-pago { background: rgba(59, 130, 246, 0.15); color: var(--brand-blue); }

.tx-amount-positive { color: var(--brand-emerald); font-weight: 600; }
.tx-amount-negative { color: var(--brand-rose); font-weight: 600; }

/* ==========================================================================
   AGENDA MODULE (TAB 3)
   ========================================================================== */
.agenda-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.calendar-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-month-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    min-width: 170px;
    text-align: center;
}

.calendar-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-full);
    padding: 5px 13px;
    font-size: 11.5px;
    color: var(--brand-blue);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.calendar-status-badge:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.calendar-status-badge.is-connected {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--brand-emerald);
}

.calendar-status-badge.is-disconnected {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--brand-amber);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.calendar-day-cell {
    min-height: 80px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.calendar-day-cell:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-cyan);
}

.calendar-day-cell.is-today {
    border-color: var(--brand-cyan);
    background: rgba(6, 182, 212, 0.08);
}

.day-cell-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.calendar-day-cell.is-today .day-cell-num {
    color: var(--brand-cyan-light);
    font-weight: 700;
}

.day-event-tag {
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--brand-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

/* Advisor Tip Alert Box (Sofi) */
.advisor-alert-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.advisor-alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.advisor-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.advisor-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.advisor-badge {
    font-size: 10px;
    color: var(--brand-purple);
    font-weight: 600;
}

.advisor-alert-text {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
}

/* Events Timeline List */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-timeline-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--brand-blue);
}

.event-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.event-start { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.event-end { font-size: 11px; color: var(--text-muted); }

.event-details {
    flex: 1;
}

.event-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.event-location {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   KANBAN BOARD / TASKS (TAB 4)
   ========================================================================== */
.tasks-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.tasks-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
}

.kanban-column {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 480px;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.col-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.col-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.col-count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.kanban-cards-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
}

/* Kanban Card */
.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: grab;
    transition: all var(--transition-fast);
}

.task-card:hover {
    border-color: var(--brand-purple);
    transform: translateY(-2px);
}

.task-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.task-priority-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.priority-alta { background: rgba(244, 63, 94, 0.15); color: var(--brand-rose); }
.priority-media { background: rgba(245, 158, 11, 0.15); color: var(--brand-amber); }
.priority-baixa { background: rgba(16, 185, 129, 0.15); color: var(--brand-emerald); }

.task-project-tag {
    font-size: 10.5px;
    color: var(--text-muted);
}

.task-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.task-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-status-btn {
    background: transparent;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
}

/* ==========================================================================
   VAULT / ARQUIVOS (TAB 5)
   ========================================================================== */
.vault-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.vault-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vault-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.vault-chip.active, .vault-chip:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.1));
    border-color: var(--brand-primary);
    color: #fff;
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.vault-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all var(--transition-fast);
}

.vault-item-card:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-2px);
}

.vault-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vault-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.12);
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.vault-file-meta {
    flex: 1;
    overflow: hidden;
}

.vault-file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vault-file-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.vault-ocr-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--brand-emerald);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.3;
}

.vault-actions {
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   REMAINDERS & TEAM (TABS 6 & 7)
   ========================================================================== */
.reminders-grid, .team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.reminder-card, .team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reminder-header, .team-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reminder-time-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-cyan);
    background: rgba(6, 182, 212, 0.12);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.reminder-body {
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 500;
}

.reminder-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
}

.team-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* Connection tab */
.connection-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.qr-code-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.qr-caption {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-dialog {
    border: none;
    background: transparent;
    margin: auto;
    max-width: 520px;
    width: 90%;
    padding: 0;
}

.modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-purple);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-col {
    flex: 1;
}

.segmented-control {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 4px;
}

.segment-opt {
    flex: 1;
    cursor: pointer;
}

.segment-opt input {
    display: none;
}

.segment-label {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.segment-opt input:checked + .segment-despesa {
    background: rgba(244, 63, 94, 0.2);
    color: var(--brand-rose);
}

.segment-opt input:checked + .segment-receita {
    background: rgba(16, 185, 129, 0.2);
    color: var(--brand-emerald);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: #182229;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--wa-green-light);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Utilities */
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.p-4 { padding: 18px; }
.p-5 { padding: 24px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-muted); }

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .chat-dashboard-split {
        grid-template-columns: 1fr;
    }
    .wa-phone-container {
        justify-content: center;
    }
    .agenda-layout {
        grid-template-columns: 1fr;
    }
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
    .connection-grid {
        grid-template-columns: 1fr;
    }
}

/* Base Desktop & Responsive Helpers */
.sidebar-backdrop {
    display: none;
}
.mobile-bottom-nav {
    display: none;
}
.pill-short {
    display: none;
}
.pill-full {
    display: inline;
}

/* ==========================================================================
   MOBILE RESPONSIVE SYSTEM (MAX-WIDTH: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Touch Target & Base Optimization (Rock-Solid Grounding) */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
        position: relative;
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y;
    }

    .app-layout, .main-content, .tab-panel {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Backdrop for Drawer Menu */
    .sidebar-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .sidebar-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Sidebar Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 295px;
        max-width: 86vw;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
        padding-top: max(env(safe-area-inset-top, 0px), 14px);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--border-subtle);
        color: var(--text-primary);
        font-size: 16px;
        cursor: pointer;
    }
    .sidebar-nav .nav-item {
        min-height: 48px;
        padding: 10px 14px;
    }

    /* Top App Bar Mobile (Safe Area for iPhone Notch / Dynamic Island / Clock) */
    .top-bar {
        height: auto;
        min-height: calc(56px + max(env(safe-area-inset-top, 0px), 14px));
        padding-top: max(env(safe-area-inset-top, 0px), 14px);
        padding-bottom: 8px;
        padding-left: calc(12px + env(safe-area-inset-left, 0px));
        padding-right: calc(12px + env(safe-area-inset-right, 0px));
        gap: 8px;
        box-sizing: border-box;
    }
    .top-bar-left {
        gap: 10px;
        min-width: 0;
        flex: 1;
    }
    .mobile-menu-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-subtle);
        color: var(--text-primary);
        font-size: 20px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .page-title-box {
        min-width: 0;
    }
    .page-main-title {
        font-size: 14.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px;
    }
    .page-breadcrumb {
        display: none !important;
    }

    /* Top Bar Right & Controls */
    .top-bar-right {
        gap: 6px;
        flex-shrink: 0;
    }
    .global-search-box {
        display: none !important;
    }
    .desktop-only-btn {
        display: none !important;
    }

    /* Compact Profile Pills */
    .profile-toggle-group {
        padding: 2px;
        gap: 2px;
    }
    .profile-toggle-pill {
        padding: 4px 8px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 14px;
    }
    .pill-full {
        display: none;
    }
    .pill-short {
        display: inline;
    }

    /* Mobile Quick Action Button */
    .topbar-action-btn {
        padding: 6px 10px;
        height: 34px;
    }
    .topbar-action-btn .btn-text {
        display: none;
    }
    .topbar-action-btn .btn-icon {
        margin: 0;
        font-size: 14px;
    }

    /* Notifications Dropdown for Mobile */
    .notifications-dropdown {
        position: fixed !important;
        top: calc(58px + max(env(safe-area-inset-top, 0px), 14px)) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
        z-index: 2000;
    }

    /* Native Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(62px + env(safe-area-inset-bottom, 0px));
        background: rgba(14, 17, 26, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 900;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px env(safe-area-inset-bottom, 0px) 4px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    }
    .mobile-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 48px;
        border: none;
        background: transparent;
        color: var(--text-muted);
        cursor: pointer;
        transition: color 0.15s ease, transform 0.15s ease;
        position: relative;
        padding: 4px 0;
    }
    .mobile-nav-btn:active {
        transform: scale(0.92);
    }
    .mobile-nav-btn.active {
        color: #38bdf8;
    }
    .mobile-nav-btn.active .m-nav-icon {
        transform: translateY(-1px);
        filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.5));
    }
    .mobile-nav-btn.active .m-nav-label {
        color: #38bdf8;
        font-weight: 600;
    }
    .m-nav-icon {
        font-size: 20px;
        line-height: 1;
        margin-bottom: 2px;
        transition: transform 0.15s ease;
    }
    .m-nav-label {
        font-size: 10px;
        font-weight: 500;
        font-family: var(--font-body);
        letter-spacing: 0.01em;
    }
    .m-nav-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 18px);
        background: #f43f5e;
        color: #ffffff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 9999px;
        min-width: 16px;
        text-align: center;
        box-shadow: 0 2px 6px rgba(244, 63, 94, 0.5);
    }

    /* Tab Panels Clearance for Mobile */
    .tab-panel {
        padding: 14px 12px calc(76px + env(safe-area-inset-bottom, 0px)) 12px;
    }

    /* Full-Screen WhatsApp Simulator Experience on Mobile */
    .tab-panel#tabContentChat {
        padding: 0 0 calc(62px + env(safe-area-inset-bottom, 0px)) 0;
    }
    .wa-phone-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .wa-phone-frame {
        max-width: 100%;
        height: calc(100vh - 56px - 62px - max(env(safe-area-inset-top, 0px), 14px) - env(safe-area-inset-bottom, 0px));
        height: calc(100dvh - 56px - 62px - max(env(safe-area-inset-top, 0px), 14px) - env(safe-area-inset-bottom, 0px));
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .wa-phone-notch {
        display: none !important;
    }
    .wa-chat-header {
        border-radius: 0;
        padding: 0 10px;
    }
    .wa-messages-body {
        padding: 10px 8px;
    }
    .wa-input-dock {
        padding: 6px 8px;
        gap: 6px;
    }
    .wa-input-wrapper input {
        font-size: 13.5px;
        padding: 8px 12px;
    }

    /* General Layouts & Grids on Mobile */
    .kanban-board {
        grid-template-columns: 1fr;
    }
    .connection-grid {
        grid-template-columns: 1fr;
    }
    .kpi-grid, .overview-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .card {
        padding: 14px !important;
        border-radius: 16px !important;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   36 OFFICIAL FUNCTIONALITIES · EXPANDED DESIGN SYSTEM
   ========================================================================== */

/* Receipts & 24h Buttons */
.receipt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.receipt-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-emerald);
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
}

.receipt-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.receipt-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.receipt-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--wa-green);
    color: #ffffff;
}

/* Profile Toggle Group (Todos / CPF / CNPJ) */
.profile-toggle-group {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    gap: 2px;
}

.profile-toggle-pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.profile-toggle-pill:hover {
    color: var(--text-primary);
}

.profile-toggle-pill.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* 2-Columns Row */
.row-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .row-2-cols {
        grid-template-columns: 1fr;
    }
}

/* Martin Projection Grid */
.projection-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    gap: 12px;
}

.proj-item {
    display: flex;
    flex-direction: column;
}

.proj-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.proj-val {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
}

.proj-operator {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
}

.proj-final {
    background: rgba(0, 168, 132, 0.1);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 168, 132, 0.3);
}

/* Calendário 30 Dias no Azul */
.dias-azul-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.dia-azul-quadradinho {
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    cursor: default;
    transition: var(--transition-fast);
}

.dia-azul-quadradinho:hover {
    transform: scale(1.1);
}

.dia-azul {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.dia-vermelho {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #f43f5e;
}

.dia-futuro {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* Orçamentos por Categoria */
.budgets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .budgets-grid {
        grid-template-columns: 1fr;
    }
}

.budget-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.budget-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.budget-category-title {
    font-weight: 600;
    font-size: 14px;
}

.budget-tag-alert {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.tag-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.tag-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.tag-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

.budget-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.budget-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-normal { background: var(--brand-emerald); }
.progress-warning { background: var(--brand-amber); }
.progress-danger { background: var(--brand-rose); }

.budget-card-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* Sofi Heatmap 28 Dias */
.heatmap-28-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.heatmap-day-cell {
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition-fast);
}

.heatmap-day-cell:hover {
    transform: translateY(-2px);
}

.heatmap-day-cell.lvl-0 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.heatmap-day-cell.lvl-1 {
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.heatmap-day-cell.lvl-2 {
    background: rgba(59, 130, 246, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.7);
    color: #ffffff;
}

.heatmap-day-cell.lvl-3 {
    background: rgba(6, 182, 212, 0.75);
    border: 1px solid rgba(6, 182, 212, 0.9);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.45);
}

/* Conflict Clean State */
.conflict-clean-state {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.clean-icon {
    font-size: 28px;
}

/* Booking Link Box */
.booking-link-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.btn-group-row {
    display: flex;
    gap: 8px;
}

/* Priority Pyramid (Luna) */
.pyramid-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.pyramid-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.pyramid-tier:hover {
    filter: brightness(1.15);
}

.pyramid-tier.active {
    outline: 2px solid #ffffff;
}

.tier-urgent {
    width: 45%;
    background: rgba(244, 63, 94, 0.25);
    border: 1px solid rgba(244, 63, 94, 0.5);
    color: #fda4af;
}

.tier-high {
    width: 70%;
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fde68a;
}

.tier-normal {
    width: 95%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

/* Cloud Drive Folders */
.drive-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.drive-folder-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: var(--transition-fast);
}

.drive-folder-card:hover {
    border-color: var(--brand-purple);
    background: rgba(255, 255, 255, 0.06);
}

.folder-icon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.folder-svg-icon {
    font-size: 26px;
}

.folder-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.folder-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.folder-public-box {
    display: flex;
    gap: 4px;
    margin-top: 10px;
}

.folder-public-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 10px;
    padding: 4px;
    border-radius: 4px;
    flex: 1;
}

/* Researches Desk (Ítalo) */
.advisor-round-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-purple);
}

.research-input-wrapper {
    display: flex;
    gap: 10px;
}

.research-filter-pills {
    display: flex;
    gap: 8px;
}

.research-filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 5px 14px;
    border-radius: 18px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.research-filter-pill.active {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: transparent;
}

.researches-feed-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
}

.research-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.research-advisor-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.research-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.research-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.research-time {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.research-status-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.status-entregue {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.research-query-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.research-summary-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.research-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.research-source-info {
    font-size: 12px;
}

.source-label { color: var(--text-muted); }
.source-name { font-weight: 600; color: var(--brand-purple); margin-left: 4px; }

/* Debts & Billing Links */
.debt-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 10px;
}

.debt-card.is-settled {
    opacity: 0.6;
}

.debt-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.debt-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-in { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-out { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }

.debt-person-name { font-size: 14px; font-weight: 600; }
.debt-desc { font-size: 12px; color: var(--text-muted); }
.debt-amount { font-family: var(--font-heading); font-size: 16px; font-weight: 700; }

.settled-tag {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
}

.billing-link-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
}

.b-link-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.b-link-recipient { font-size: 14px; font-weight: 600; }
.b-link-sub { font-size: 11px; color: var(--text-muted); }
.b-link-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.b-link-status.status-pago { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.b-link-status.status-aguardando { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.b-link-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.b-link-url-box {
    display: flex;
    gap: 4px;
    flex: 1;
}

.b-link-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    flex: 1;
}

.b-link-amount {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

/* Dynamic Lists & Ideas */
.list-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
}

.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.list-title { font-size: 15px; font-weight: 600; }
.list-updated { font-size: 11px; color: var(--text-muted); }

.list-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
}

.list-item-row.is-done .list-item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.idea-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.idea-title { font-size: 15px; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.idea-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.idea-tags { display: flex; gap: 6px; }
.idea-tag { font-size: 10.5px; background: rgba(6, 182, 212, 0.15); color: #67e8f9; padding: 2px 8px; border-radius: 6px; }

/* Public Booking Modal */
.booking-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .booking-preview-container { grid-template-columns: 1fr; }
}

.booking-host-profile { display: flex; align-items: center; gap: 14px; }
.duration-pills { display: flex; gap: 8px; margin-top: 6px; }
.duration-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
}
.duration-pill.active { background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan)); color: #ffffff; }

.b-detail-item { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.slot-time-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slot-time-btn:hover {
    background: var(--wa-green);
    color: #ffffff;
    border-color: var(--wa-green);
}

/* ==========================================================================
   KIT OS · TELA DE LOGIN & SEGURANÇA EXECUTIVA
   ========================================================================== */
.kit-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 22, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kit-login-overlay.d-none {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kit-login-card {
    background: rgba(12, 18, 30, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.2);
    border-radius: 22px;
    padding: 38px 32px;
    width: 100%;
    max-width: 430px;
    animation: kitCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kitCardPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kit-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.kit-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.kit-logo-badge {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 30%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kit-logo-os {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.kit-login-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.kit-login-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.kit-login-form .form-label {
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-bottom: 6px;
    display: block;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0.7;
}

.input-icon-wrap .form-control {
    padding-left: 38px;
    background: rgba(14, 22, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    height: 44px;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.input-icon-wrap .form-control:focus {
    background: rgba(17, 27, 46, 0.95);
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
    outline: none;
}

.kit-login-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    text-align: left;
}

.kit-login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   EXECUTIVE OVERVIEW (HOME) & FINANCIAL VISUAL CHARTS STYLES
   ========================================================================== */

/* Overview Briefing Banner */
.overview-hero-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.12) 50%, rgba(99, 102, 241, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.overview-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.overview-hero-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-hero-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-system-status-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-pill-exec {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
}

.status-pill-exec .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    animation: pulseGlow 2s infinite;
}

.status-pill-exec.amber .status-dot {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* Overview Split Columns */
.overview-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .overview-split-grid {
        grid-template-columns: 1fr;
    }
}

/* Quick List Items in Overview */
.overview-agenda-list, .overview-task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overview-agenda-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.overview-agenda-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.overview-item-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    min-width: 60px;
    text-align: center;
}

.overview-item-info {
    flex: 1;
    margin: 0 14px;
}

.overview-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.overview-item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.overview-task-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
}

.overview-task-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.overview-task-item.completed .overview-task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.overview-task-cb {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.overview-task-item.completed .overview-task-cb {
    background: #10b981;
    border-color: #10b981;
}

.overview-task-text {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
}

.overview-task-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.overview-task-tag.tag-urgent {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.overview-task-tag.tag-high {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Visual Chart Cards */
.chart-card-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .chart-card-split {
        grid-template-columns: 1fr;
    }
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donut-chart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.donut-svg-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    flex-shrink: 0;
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-center-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donut-center-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.donut-legend-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    max-height: 190px;
    overflow-y: auto;
    padding-right: 4px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.donut-legend-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 8px;
    flex-shrink: 0;
}

.donut-legend-name {
    color: var(--text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.donut-legend-amount {
    font-weight: 600;
    color: #fff;
}

.donut-legend-pct {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 6px;
    min-width: 32px;
    text-align: right;
}

/* Cash Flow Bar Chart */
.cashflow-bars-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 170px;
    padding-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cashflow-month-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 80px;
}

.cashflow-bars-pair {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 130px;
    width: 100%;
    justify-content: center;
}

.cf-bar {
    width: 16px;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease, opacity 0.2s;
    position: relative;
    cursor: pointer;
}

.cf-bar:hover {
    opacity: 0.85;
}

.cf-bar-in {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.cf-bar-out {
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.cashflow-month-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Table Search Box & Controls */
.table-search-box {
    position: relative;
    min-width: 260px;
}

.table-search-input {
    width: 100%;
    background: rgba(14, 17, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    transition: all 0.2s;
}

.table-search-input:focus {
    background: rgba(18, 22, 34, 0.95);
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.table-month-select {
    background: rgba(14, 17, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 7px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.table-month-select:focus {
    border-color: #3b82f6;
    outline: none;
}

/* Table Pagination Footer */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px 4px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 12px;
}

.pagination-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================================
   CONTA COMPARTILHADA (ESTILO LUXO EXECUTIVO IDÊNTICO AO SCREENSHOT)
   ============================================================ */

.shared-account-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.shared-main-title {
    font-size: 2.6rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 24px;
}

.shared-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (max-width: 980px) {
    .shared-cards-grid {
        grid-template-columns: 1fr;
    }
}

.shared-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shared-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.shared-card-top {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    padding: 28px;
}

.invite-code-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invite-code-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.invite-code-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.invite-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-pill-outline {
    border-radius: 9999px;
    padding: 9px 24px;
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid var(--border-card);
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pill-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.btn-pill-wa {
    border-radius: 9999px;
    padding: 9px 28px;
    font-weight: 600;
    font-size: 13.5px;
    background: #00a884;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
}

.btn-pill-wa:hover {
    background: #008f6f;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 168, 132, 0.45);
}

.shared-wa-preview {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sw-bubble {
    border-radius: 14px;
    padding: 10px 14px;
    max-width: 86%;
    font-size: 13px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sw-bubble-user {
    align-self: flex-end;
    background: #d9fdd3;
    color: #111b21 !important;
    border-bottom-right-radius: 3px;
}

.sw-bubble-user .sw-time {
    color: rgba(0, 0, 0, 0.55);
}

.sw-bubble-advisor {
    align-self: flex-start;
    background: #ffffff;
    color: #111b21 !important;
    border-bottom-left-radius: 3px;
}

.sw-bubble-advisor .sw-time {
    color: rgba(0, 0, 0, 0.55);
}

.sw-advisor-name {
    font-weight: 700;
    font-size: 11.5px;
    margin-bottom: 2px;
}

.sw-text {
    font-weight: 500;
}

.sw-time {
    font-size: 10px;
    align-self: flex-end;
    margin-top: 4px;
    margin-left: 14px;
}

.sw-checks {
    color: #53bdeb;
    font-weight: 700;
}

.shared-card-bottom {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.shared-card-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 4px;
}

.shared-card-p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   CENTRAL DE NOTIFICAÇÕES & ALERTAS
   ========================================================================== */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow: hidden;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.notif-dropdown-body {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
    cursor: pointer;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notif-item.notif-unread {
    background: rgba(0, 168, 132, 0.08);
}

.notif-item.notif-unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00a884;
}

.notif-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.notif-icon-cobranca {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.notif-icon-financeiro {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.notif-icon-equipe {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.notif-icon-sistema {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

.notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: #f0f2f5;
    margin: 0;
}

.notif-message {
    font-size: 11.5px;
    color: #8696a0;
    line-height: 1.4;
    margin: 0;
}

.notif-time {
    font-size: 10px;
    color: #667781;
    margin-top: 4px;
}

.notif-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.notif-empty-state {
    padding: 30px 20px;
    text-align: center;
    color: #8696a0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Tag de Comprador / Quem usou o Cartão */
.tx-buyer-tag {
    font-size: 11px;
    color: #3b82f6;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tx-account-tag {
    font-size: 11px;
    color: #8696a0;
    display: block;
    margin-top: 2px;
}

/* Botões de Ação na Tabela de Transações e Clientes */
.btn-action-icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8696a0;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
}

.btn-action-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-action-icon.btn-delete:hover {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.3);
}




