/* ─────────────────────────────────────────────
   SISTEMA DE TEMAS
   ───────────────────────────────────────────── */
:root {
    --primary-color: #D5313D;
    --brand-dark: #010F34;
    --brand-gradient: linear-gradient(266deg, #FF6633 -1.18%, #6D2CF9 96.14%);
    --heading-font: "Ubuntu", sans-serif;
    --body-font: "DM Sans", sans-serif;
}

[data-theme="light"] {
    --bg-body: #EAEdf5;
    --bg-chat-container: #ffffff;
    --bg-chat-area: #F2F4FA;
    --bg-header-footer: var(--brand-dark);
    --border-color: #D8DEED;
    --text-main: #1E2A42;
    --text-title: var(--brand-dark);
    --text-muted: #64748B;
    --bubble-ai-bg: #ffffff;
    --bubble-ai-text: #1E2A42;
    --bubble-ai-border: #D8DEED;
    --bubble-user-bg: var(--brand-gradient);
    --bubble-user-text: #ffffff;
    --input-bg: #F2F4FA;
    --input-border: #D8DEED;
    --input-focus: #ffffff;
    --avatar-ai-bg: #E4E8F5;
    --avatar-ai-text: var(--brand-dark);
    --system-badge-bg: #E4E8F5;
    --system-badge-text: #64748B;
    --sidebar-title: rgba(0,0,0,0.4);
    --card-bg: #F2F4FA;
    --card-border: #D8DEED;
    --glow-color: rgba(109, 44, 249, 0.12);
    --context-bar-bg: rgba(0,0,0,0.025);
    --context-bar-border: #D8DEED;
    --context-bar-text: #64748B;
}

[data-theme="dark"] {
    --bg-body: #00081C;
    --bg-chat-container: #060F2B;
    --bg-chat-area: #020A1E;
    --bg-header-footer: rgba(1, 15, 52, 0.98);
    --border-color: rgba(255,255,255,0.08);
    --text-main: #CBD5E1;
    --text-title: #FFFFFF;
    --text-muted: #64748B;
    --bubble-ai-bg: #0A1530;
    --bubble-ai-text: #CBD5E1;
    --bubble-ai-border: rgba(255,255,255,0.07);
    --bubble-user-bg: var(--brand-gradient);
    --bubble-user-text: #ffffff;
    --input-bg: #020A1E;
    --input-border: rgba(255,255,255,0.09);
    --input-focus: rgba(6,15,43,0.9);
    --avatar-ai-bg: #0A1530;
    --avatar-ai-text: #FFFFFF;
    --system-badge-bg: rgba(255,255,255,0.05);
    --system-badge-text: #94A3B8;
    --sidebar-title: rgba(255,255,255,0.3);
    --card-bg: rgba(255,255,255,0.02);
    --card-border: rgba(255,255,255,0.06);
    --glow-color: rgba(109, 44, 249, 0.2);
    --context-bar-bg: rgba(255,255,255,0.03);
    --context-bar-border: rgba(255,255,255,0.06);
    --context-bar-text: #475569;
}

/* ── GLOBALS ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--body-font);
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image: radial-gradient(rgba(109,44,249,0.035) 1px, transparent 1px);
    background-size: 26px 26px;
    display: flex; flex-direction: column; min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}
h1,h2,h3,h4,h5,h6,.navbar-brand { font-family: var(--heading-font); }
.theme-text-main { color: var(--text-main) !important; }
.theme-text-muted { color: var(--text-muted) !important; }

/* ── HEADER NAV ── */
.header-area {
    background-color: var(--bg-header-footer);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1030;
    position: relative;
}
.header-area::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0.55;
}
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500; margin: 0 10px;
    font-family: var(--heading-font); font-size: 14px;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover { color: #FF6633 !important; }

/* ── BTN GRADIENT ── */
.btn-gradient {
    background: var(--brand-gradient);
    background-size: 200% auto;
    color: white; border: none;
    border-radius: 50px; padding: 8px 24px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: gradientShift 4s ease infinite;
}
.btn-gradient:hover:not(:disabled) {
    color: white; transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(109,44,249,0.45);
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─────────────────────────────────────────────
   LUMA AVATAR (reutilizável)
   ───────────────────────────────────────────── */
.luma-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.luma-photo {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.luma-fallback {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
    display: none;
    align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 18px;
    font-family: var(--heading-font);
}
.luma-online-dot {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 11px; height: 11px;
    background: #10B981;
    border-radius: 50%;
    border: 2px solid var(--bg-chat-container);
    animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Large variant (sidebar) */
.luma-avatar-lg .luma-photo,
.luma-avatar-lg .luma-fallback {
    width: 58px; height: 58px; font-size: 22px;
}
.luma-avatar-lg .luma-online-dot {
    width: 13px; height: 13px;
    bottom: 2px; right: 2px;
}

/* Tag IA */
.luma-tag {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    background: var(--brand-gradient);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    margin-left: 4px;
    font-family: var(--body-font);
}

/* ─────────────────────────────────────────────
   CHAT CONTAINER
   ───────────────────────────────────────────── */
.chat-container {
    background: var(--bg-chat-container);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28), 0 0 0 1px var(--border-color);
    overflow: hidden;
    display: flex; flex-direction: column;
    height: 78vh; min-height: 560px;
    transition: background 0.3s;
    position: relative;
}
.chat-container::before {
    content: ''; display: block; height: 3px; flex-shrink: 0;
    background: var(--brand-gradient);
}

/* CHAT HEADER */
.chat-header {
    background-color: var(--bg-chat-container);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.chat-header-left {
    display: flex; align-items: center; gap: 14px; min-width: 0;
}
.chat-header-icon-wrap {
    flex-shrink: 0;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}
.chat-header-text { min-width: 0; }
.chat-title {
    color: var(--text-title); font-weight: 700;
    margin-bottom: 3px; font-size: 16px; line-height: 1.2;
}
.chat-subtitle {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 12px; margin: 0; flex-wrap: wrap;
}
.online-label {
    display: inline-flex; align-items: center; gap: 4px;
    color: #10B981; font-weight: 600; font-size: 12px;
}
.dot-inline {
    width: 6px; height: 6px; background: #10B981;
    border-radius: 50%; display: inline-block;
    animation: livePulse 2.2s ease-in-out infinite;
}
.sep { color: var(--border-color); }
.session-id-text { font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; font-family: monospace; }

.header-right-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.session-badge {
    display: flex; align-items: center; gap: 7px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px; padding: 6px 14px;
}
.live-dot {
    width: 7px; height: 7px; background: #10B981;
    border-radius: 50%;
    animation: livePulse 2.2s ease-in-out infinite;
}
.session-badge > span:last-child { font-size: 12px; font-weight: 600; color: #10B981; }

/* CONTEXT BAR */
.context-bar {
    display: flex; align-items: center; gap: 0;
    background: var(--context-bar-bg);
    border-bottom: 1px solid var(--context-bar-border);
    padding: 8px 24px;
    overflow: hidden;
}
.context-item {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--context-bar-text);
    font-weight: 500;
}
.context-item i { font-size: 11px; opacity: 0.7; }
.context-divider {
    width: 1px; height: 14px;
    background: var(--context-bar-border);
    margin: 0 16px; flex-shrink: 0;
}

/* CHAT BODY */
.chat-body {
    flex: 1;
    background-color: var(--bg-chat-area);
    padding: 28px;
    overflow-y: auto;
    display: flex; flex-direction: column;
    gap: 18px;
    transition: background 0.3s;
    position: relative;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

/* ── EMPTY STATE ── */
.empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1; gap: 20px;
    padding: 40px 20px;
    transition: opacity 0.2s, transform 0.2s;
}
.empty-avatar-ring {
    position: relative;
    width: 88px; height: 88px;
}
.empty-avatar-ring::before {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 50%;
    background: var(--brand-gradient);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
    opacity: 0.35;
    filter: blur(8px);
}
.empty-avatar-ring::after {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    background: var(--brand-gradient);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
    opacity: 0.5;
}
.empty-luma-img, .empty-luma-fallback {
    width: 88px; height: 88px;
    border-radius: 50%;
    object-fit: cover;
    position: relative; z-index: 1;
    border: 3px solid var(--bg-chat-area);
}
.empty-luma-fallback {
    display: none; align-items: center; justify-content: center;
    background: var(--brand-gradient);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
    color: #fff; font-size: 32px; font-weight: 700;
    font-family: var(--heading-font);
}
.empty-state-text {
    text-align: center;
}
.empty-state-text strong {
    display: block; font-size: 18px;
    color: var(--text-title);
    font-family: var(--heading-font); font-weight: 700;
    margin-bottom: 8px;
}
.empty-state-text p {
    font-size: 14px; color: var(--text-muted);
    margin: 0; line-height: 1.65;
}
.empty-state-hint {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 6px 14px;
    opacity: 0.75;
}
.empty-state-hint i { font-size: 10px; }

/* ── MENSAGENS ── */
.msg-row {
    display: flex; gap: 10px; max-width: 82%;
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: bottom center;
}
.msg-row.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-row.ai  { align-self: flex-start; }
@keyframes popIn {
    0%   { opacity: 0; transform: translateY(14px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Avatar geral */
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--heading-font); font-weight: 700; font-size: 12px;
    flex-shrink: 0; margin-top: auto;
    overflow: hidden;
}
.avatar-ai {
    background-color: var(--avatar-ai-bg);
    color: var(--avatar-ai-text);
    border: 1px solid var(--border-color);
}
/* Luma avatar in bubbles */
.avatar-luma {
    border: 1.5px solid rgba(255,255,255,0.12);
    background: transparent;
    padding: 0;
}
.avatar-luma img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-user {
    background: var(--brand-gradient);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
    color: #fff; border: none;
    box-shadow: 0 2px 10px var(--glow-color);
    font-size: 11px;
}

/* Bubbles */
.bubble {
    padding: 13px 17px;
    border-radius: 18px;
    font-size: 14.5px; line-height: 1.65;
    word-break: break-word; white-space: pre-wrap;
}
.msg-row.ai .bubble {
    background-color: var(--bubble-ai-bg);
    border: 1px solid var(--bubble-ai-border);
    color: var(--bubble-ai-text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}
.msg-row.user .bubble {
    background: var(--bubble-user-bg);
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
    color: #fff; border: none;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 18px var(--glow-color);
}

.msg-time { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; display: block; }
.msg-row.user .msg-time { text-align: right; }

/* Anexo */
.file-attachment { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.08); padding: 9px 13px; border-radius: 8px; margin-top: 9px; border: 1px solid var(--border-color); }
.msg-row.user .file-attachment { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.15); }
.file-icon { font-size: 17px; }
.msg-row.user .file-icon { color: #fff; }
.msg-row.ai .file-icon { color: var(--text-main); }
.file-name { font-size: 13px; font-weight: 600; }
.file-size { font-size: 11px; opacity: 0.7; }

/* Typing */
.typing-indicator {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    background: var(--bubble-ai-bg);
    border: 1px solid var(--bubble-ai-border);
    border-radius: 18px 18px 18px 4px;
}
.typing-label { font-size: 12px; color: var(--text-muted); margin-right: 2px; font-style: italic; }
.dot { width: 5px; height: 5px; background-color: var(--text-muted); border-radius: 50%; animation: typing 1.4s infinite ease-in-out both; }
.dot:nth-child(2) { animation-delay: -0.32s; }
.dot:nth-child(3) { animation-delay: -0.16s; }
@keyframes typing { 0%,80%,100% { transform: scale(0); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* ── INPUT ── */
.chat-footer {
    background-color: var(--bg-chat-container);
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
}
.input-wrapper {
    display: flex; align-items: flex-end;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 22px; padding: 10px 12px;
    transition: all 0.3s;
}
.input-wrapper:focus-within {
    border-color: rgba(109,44,249,0.45);
    box-shadow: 0 0 0 3px rgba(109,44,249,0.1);
    background: var(--input-focus);
}
#msgInput {
    flex: 1; border: none; background: transparent;
    resize: none; outline: none;
    max-height: 120px; min-height: 24px;
    padding: 4px 10px;
    font-size: 16px !important;
    color: var(--text-main);
    font-family: var(--body-font);
    line-height: 1.5;
}
#msgInput::placeholder { color: var(--text-muted); }
.action-btns { display: flex; gap: 8px; padding-bottom: 2px; }
.btn-attach { background: transparent; border: none; color: var(--text-muted); width: 36px; height: 36px; border-radius: 50%; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.btn-attach:hover { background: var(--border-color); color: var(--primary-color) !important; transform: rotate(15deg) scale(1.1); }
.btn-send { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; }

.attachment-preview { display: none; align-items: center; justify-content: space-between; background: var(--input-bg); padding: 9px 13px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--border-color); }
.attachment-preview.visible { display: flex; }

/* ─────────────────────────────────────────────
   SIDEBAR
   ───────────────────────────────────────────── */
.sidebar-container {
    display: flex; flex-direction: column; gap: 14px;
    height: 78vh; min-height: 560px;
    overflow-y: auto;
}
.sidebar-container::-webkit-scrollbar { width: 4px; }
.sidebar-container::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

.sidebar-card {
    background: var(--bg-chat-container);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative; overflow: hidden;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
}
.sidebar-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--brand-gradient); opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-card:hover::before { opacity: 0.7; }
.sidebar-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

/* Luma intro card */
.luma-intro-card::before { opacity: 0.8; }
.luma-intro-inner {
    display: flex; align-items: center; gap: 14px;
}
.luma-name {
    font-size: 15px; font-weight: 700;
    color: var(--text-title);
    font-family: var(--heading-font);
    margin-bottom: 6px;
    line-height: 1.2;
}

.online-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 50px; padding: 3px 10px;
}
.online-dot {
    width: 6px; height: 6px; background: #10B981;
    border-radius: 50%;
    animation: livePulse 2.2s ease-in-out infinite;
}
.online-pill > span:last-child { font-size: 11px; color: #10B981; font-weight: 600; }

.sidebar-section-title {
    color: var(--sidebar-title);
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 14px;
}

.objective-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(109,44,249,0.09);
    border: 1px solid rgba(109,44,249,0.18);
    border-radius: 6px; padding: 4px 10px;
    margin-bottom: 12px;
}
.objective-label i { font-size: 10px; color: #8B5CF6; }
.objective-label span { font-size: 10px; color: #8B5CF6; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.objective-text { font-size: 14px; line-height: 1.65; color: var(--text-main); margin: 0; }

.tips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.tips-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px; padding: 10px 12px;
    transition: border-color 0.2s;
    line-height: 1.5;
}
.tips-list li:hover { border-color: rgba(109,44,249,0.22); }
.tips-list li i { color: #10B981; font-size: 12px; margin-top: 2px; flex-shrink: 0; }

/* ── TOAST ── */
.toast-notification {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #060F2B; color: #fff;
    padding: 11px 22px; border-radius: 10px; font-size: 13px;
    opacity: 0; transition: all 0.3s; z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    border-left: 3px solid var(--primary-color);
}
.toast-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── RESPONSIVIDADE ── */
@media (max-width: 991px) {
    .navbar-collapse { background: rgba(1,15,52,0.98); padding: 20px; border-radius: 10px; margin-top: 15px; border: 1px solid rgba(255,255,255,0.07); }
    .sidebar-container { height: auto; min-height: auto; }
    .chat-container { height: 65vh; min-height: 430px; }
}
@media (max-width: 768px) {
    body { padding: 0; background-color: var(--bg-chat-container); }
    .chat-container { border-radius: 0; border-left: none; border-right: none; border-top: none; margin: 0; height: 100dvh; min-height: auto; }
    /* Esconde sidebar no mobile — atrapalha quando o teclado sobe */
    .col-lg-4 { display: none !important; }
    /* Chat ocupa 100% da largura */
    .col-lg-8, .col-xl-8 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; padding: 0 !important; margin: 0 !important; }
    .container-fluid, .row { padding: 0 !important; margin: 0 !important; }
    .msg-row { max-width: 92%; }
    .chat-footer { padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .context-bar { padding: 7px 16px; }
    .chat-header { padding: 14px 16px; }
}

/* ══════════════════════════════════════════════════
   FAIXA INFORMATIVA (info-strip)
   ══════════════════════════════════════════════════ */
.info-strip {
    background: rgba(255, 102, 51, 0.06);
    border-top: 1px solid rgba(255, 102, 51, 0.14);
    padding: 7px 0;
    font-size: 12px;
    font-family: var(--body-font);
}
.info-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
}
.info-strip-item i          { font-size: 11px; color: #FF6633; }
.info-strip-item strong     { color: rgba(255, 255, 255, 0.8); }
.info-strip-platform i      { color: #8B5CF6; }
.info-strip-dot             { color: rgba(255, 255, 255, 0.18); font-size: 16px; line-height: 1; }

/* ══════════════════════════════════════════════════
   BADGE EMPRESA (header desktop)
   ══════════════════════════════════════════════════ */
.header-company-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--body-font);
}
.header-company-name {
    font-size: 14px;
    font-weight: 700;
    color: #FF6633;
    font-family: var(--heading-font);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   TAG EMPRESA (chat-title)
   ══════════════════════════════════════════════════ */
.tag-empresa {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 102, 51, 0.12);
    border: 1px solid rgba(255, 102, 51, 0.28);
    color: #FF6633;
    border-radius: 4px;
    padding: 1px 7px;
    vertical-align: middle;
    letter-spacing: 1px;
    margin-left: 4px;
    font-family: var(--body-font);
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   SIDEBAR CARD — EMPRESA CONTRATANTE
   ══════════════════════════════════════════════════ */
.sidebar-card-empresa {
    border-color: rgba(255, 102, 51, 0.22) !important;
}
.sidebar-card-empresa::before {
    opacity: 1 !important;
    background: linear-gradient(90deg, #FF6633, #6D2CF9) !important;
}

.empresa-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.empresa-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 102, 51, 0.10);
    border: 1px solid rgba(255, 102, 51, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.empresa-icon i    { font-size: 18px; color: #FF6633; }
.empresa-nome      { font-size: 20px; font-weight: 700; color: var(--text-title); font-family: var(--heading-font); letter-spacing: 2px; line-height: 1; margin-bottom: 4px; }
.empresa-desc      { font-size: 11px; color: var(--text-muted); }

.plataforma-notice {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(109, 44, 249, 0.07);
    border: 1px solid rgba(109, 44, 249, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    color: rgba(109, 44, 249, 0.75);
    font-family: var(--body-font);
}
.plataforma-notice i        { font-size: 11px; color: #8B5CF6; }
.plataforma-notice strong   { color: #8B5CF6; }

/* ══════════════════════════════════════════════════
   EMPTY STATE — PILL EMPRESA
   ══════════════════════════════════════════════════ */
.empty-empresa-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 102, 51, 0.10);
    border: 1px solid rgba(255, 102, 51, 0.22);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #FF6633;
    font-family: var(--body-font);
    margin-bottom: 10px;
}
.empty-empresa-pill i      { font-size: 11px; }
.empty-empresa-pill strong { color: #FF6633; }

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.main-footer {
    background-color: #010F34;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
}
.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(266deg, #FF6633 -1.18%, #6D2CF9 96.14%);
    opacity: 0.5;
}

/* ══════════════════════════════════════════════════
   RESPONSIVIDADE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .info-strip { display: none !important; }
    .main-footer { display: none !important; }
}