/* ============================================================
   MEU SERVIÇO — PWA (Preto & Branco)
   Weboox — SAC 0800 000 5053
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

/* (timer removed — only chat icon remains) */

/* ===== SPLASH SCREEN ===== */
.mj-splash {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Cover status bar / notch area */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: opacity .45s ease, visibility .45s ease;
}
.mj-splash.mj-splash-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.mj-splash-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mj-splash-icon {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 24px 60px rgba(0, 0, 0, 0.08);
    animation: mj-splash-icon-in .6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mj-splash-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 96px; height: 96px;
    margin-top: -48px; margin-left: -48px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.08);
    animation: mj-splash-pulse 2s ease-out infinite;
    z-index: 1;
}
.mj-splash-pulse-2 {
    animation-delay: 1s;
    background: rgba(0, 0, 0, 0.05);
}
@keyframes mj-splash-pulse {
    0%   { transform: scale(1);    opacity: 0.8; border-radius: 24px; }
    70%  { transform: scale(1.9);  opacity: 0;   border-radius: 50%; }
    100% { transform: scale(1.9);  opacity: 0;   border-radius: 50%; }
}
@keyframes mj-splash-icon-in {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
html, body { margin: 0; padding: 0; background: #ffffff; }
body.mj-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0a0a0a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    font-weight: 400;
}
body.mj-has-nav { padding-bottom: 100px; }
body.mj-no-nav  { padding-bottom: 24px; }

.mj-app {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
}
/* ===== RIGHT SIDE IMAGE PANEL (desktop dashboard) ===== */
.mj-side-panel {
    display: none; /* hidden on mobile */
}
@media (min-width: 900px) {
    .mj-side-panel {
        display: block;
        position: fixed; top: 0; right: 0;
        width: 20%; height: 100vh;
        background-size: cover;
        background-position: center;
        z-index: 0;
    }
    .mj-side-panel-overlay {
        position: absolute; inset: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, transparent 30%);
    }
    /* When side panel is present, push content to the left */
    body.mj-has-side-img .mj-app { margin-right: 20%; }
    /* nav positioning handled in nav section below */
}

/* ===== DESKTOP PWA INSTALL BAR ===== */
.mj-desktop-install {
    position: fixed; top: 0; left: 0; right: 0;
    background: #0a0a0a; color: #fff;
    padding: 10px 24px; z-index: 600;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    font-size: 13px; font-weight: 400;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.mj-desktop-install-btn {
    background: #d4af37; color: #0a0a0a; border: none;
    padding: 6px 18px; border-radius: 20px;
    font-size: 12px; font-weight: 600; cursor: pointer;
}
.mj-desktop-install-close {
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-size: 20px; cursor: pointer; padding: 0 4px;
}
.mj-desktop-install.hidden { display: none; }

/* On desktop: center content with comfortable reading width, use full width */
@media (min-width: 768px) {
    .mj-header, .mj-main { max-width: 900px; margin-left: auto; margin-right: auto; }
    .mj-section { display: grid; }
    /* Process cards side-by-side on desktop */
    .mj-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
    .mj-card { margin-bottom: 0; }
    /* Timeline items side-by-side */
    .mj-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
    /* Tasks side-by-side */
    .mj-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
    /* Movimentações side-by-side */
    .mj-mov-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
    /* Hearings side-by-side */
    .mj-hearings { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
    /* Nav wider on desktop */
    .mj-nav { max-width: 600px; }
    /* Chat modal on desktop: centered panel, not fullscreen */
    /* Chat is ALWAYS fullscreen (inset:0 from base rule) — no override here */
    /* Login wider */
    .mj-login { max-width: 440px; }
    /* Splash */
    .mj-splash-icon { width: 120px; height: 120px; border-radius: 28px; }
    .mj-splash-pulse, .mj-splash-pulse-2 { width: 120px; height: 120px; margin-top: -60px; margin-left: -60px; border-radius: 28px; }
}
/* On large desktop: even wider */
@media (min-width: 1200px) {
    .mj-header, .mj-main { max-width: 1100px; }
    .mj-cards-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* Status bar continuity (iOS safe area) */
.mj-app::before {
    content: '';
    display: block;
    height: env(safe-area-inset-top, 0);
    background: #ffffff;
}

/* ===== HEADER ===== */
.mj-header {
    background: #ffffff;
    padding: 20px 22px 22px;
    position: relative;
}
.mj-header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mj-header-user { display: flex; align-items: center; gap: 14px; min-width: 0; }

/* Avatar: gold thin ring + black pulse spreading outward */
.mj-avatar-wrap {
    position: relative;
    width: 56px; height: 56px;
    flex-shrink: 0;
    cursor: pointer;
}
.mj-avatar-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    animation: mj-pulse-ring 2.4s ease-out infinite;
    z-index: 0;
}
.mj-avatar-pulse::after {
    content: '';
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    animation: mj-pulse-ring 2.4s ease-out infinite;
    animation-delay: 1.2s;
}
@keyframes mj-pulse-ring {
    0%   { transform: scale(1);   opacity: 0.6; }
    80%  { transform: scale(1.8); opacity: 0;   }
    100% { transform: scale(1.8); opacity: 0;   }
}
.mj-avatar {
    position: relative; z-index: 1;
    width: 56px; height: 56px; border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #d4af37;
    box-shadow:
        0 0 0 2px #ffffff,
        0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Avatar dropdown menu (click on photo) */
.mj-avatar-menu {
    position: absolute; top: 64px; left: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    min-width: 180px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    z-index: 500;
    display: none;
    animation: mj-fade-in .2s ease;
}
.mj-avatar-menu.open { display: block; }
.mj-avatar-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    color: #0a0a0a; text-decoration: none;
    font-size: 14px; font-weight: 400;
}
.mj-avatar-menu a:hover { background: #f5f5f5; }

.mj-greeting-label {
    display: block;
    font-size: 13px;
    font-weight: 300;
    color: #6b6b6b;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.mj-greeting-name {
    display: block;
    font-size: 22px;
    font-weight: 300;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-top: 2px;
}

/* Header actions container (language flag + chat) */
.mj-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Clean round icon buttons (chat + language) — thin line + soft shadow */
.mj-help-btn,
.mj-lang-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #0a0a0a;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.mj-help-btn:hover, .mj-help-btn:active,
.mj-lang-btn:hover, .mj-lang-btn:active {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Language flag button */
.mj-lang-wrap {
    position: relative;
    flex-shrink: 0;
}
.mj-lang-btn {
    overflow: hidden;
}
.mj-lang-btn img {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Floating language switcher (used on login + dashboard) */
.mj-lang-floating {
    position: fixed;
    z-index: 1100;
    top: 18px;
    right: 18px;
}
.mj-lang-floating .mj-lang-menu {
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    bottom: auto;
}
@media (max-width: 768px) {
    .mj-lang-floating {
        top: auto;
        right: 16px;
        bottom: 96px;
    }
    body.mj-no-nav .mj-lang-floating {
        bottom: 24px;
    }
    .mj-lang-floating .mj-lang-menu {
        top: auto;
        bottom: calc(100% + 10px);
        right: 0;
    }
}
.mj-lang-pulse { display: none; }
.mj-lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    padding: 6px;
    min-width: 180px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.mj-lang-menu.open { display: flex; }
.mj-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #0a0a0a;
    text-decoration: none;
    font-size: 14px;
    transition: background .15s ease;
}
.mj-lang-item img {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.mj-lang-item:hover { background: #f5f5f5; }
.mj-lang-item.active { background: #0a0a0a; color: #fff; }
.mj-lang-item.active:hover { background: #1a1a1a; }

/* Hero phrase */
.mj-hero { margin-top: 26px; }
.mj-hero-label {
    font-size: 13px;
    font-weight: 400;
    color: #8a8a8a;
    letter-spacing: 0.01em;
}
.mj-hero-title {
    margin: 8px 0 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 300;
    color: #0a0a0a;
    letter-spacing: -0.025em;
}

/* Detail header (process / hearings / duvidas) */
.mj-header-detail { padding: 16px 22px; position: relative; }
.mj-header-detail .mj-header-top {
    display: flex; align-items: center;
    justify-content: space-between;
}
.mj-header-detail .mj-header-top strong {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-size: 16px; font-weight: 500;
    color: #0a0a0a;
    white-space: nowrap;
}
.mj-back {
    background: #ffffff; border: 1px solid #ededed; border-radius: 50%;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    color: #0a0a0a; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.mj-detail-title { padding: 18px 4px 0; }
.mj-detail-title h1 {
    font-size: 28px; margin: 0 0 6px;
    color: #0a0a0a; font-weight: 300; letter-spacing: -0.02em;
}
.mj-detail-number {
    font-size: 12px; color: #6b6b6b;
    background: #f5f5f5; padding: 4px 12px; border-radius: 20px;
    font-weight: 400;
}

/* ===== MAIN / SECTIONS ===== */
.mj-main { padding: 4px 22px 24px; }
.mj-section { margin-top: 28px; }
.mj-section-head {
    display: flex; align-items: baseline; gap: 14px;
    margin-bottom: 14px;
}
.mj-section-head h2 {
    font-size: 22px;
    font-weight: 300;
    color: #0a0a0a;
    margin: 0;
    letter-spacing: -0.02em;
}
/* Process count badge: black circle with white number + pulse */
.mj-count-badge {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: #0a0a0a; color: #ffffff;
    border-radius: 50%;
    font-size: 15px; font-weight: 600;
    line-height: 1;
}
.mj-count-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    animation: mj-count-pulse 2.5s ease-out infinite;
    z-index: 0;
}
@keyframes mj-count-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0;   }
    100% { transform: scale(1.6); opacity: 0;   }
}
.mj-count {
    font-size: 28px;
    font-weight: 200;
    color: #0a0a0a;
    line-height: 1;
}
.mj-badge {
    background: #0a0a0a; color: #fff;
    padding: 2px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 500;
}

.mj-empty {
    background: #fafafa;
    border-radius: 16px; padding: 26px 18px;
    text-align: center; color: #8a8a8a; font-size: 14px; font-weight: 300;
    border: 1px dashed #e8e8e8;
}

/* ===== CARDS (smoky shadow) ===== */
.mj-card {
    display: block; background: #ffffff;
    border-radius: 20px; padding: 18px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
    text-decoration: none; color: inherit;
    border: 1px solid #f3f3f3;
    transition: all .25s ease;
}
.mj-card:hover, .mj-card:active {
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.08);
}

.mj-card-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.mj-card-title {
    display: block; font-size: 16px;
    color: #0a0a0a; font-weight: 500; line-height: 1.35;
    letter-spacing: -0.01em;
}
.mj-card-number {
    display: block; font-size: 12px;
    color: #8a8a8a; font-weight: 300; margin-top: 4px;
}
.mj-card-status {
    font-size: 11px; font-weight: 500;
    padding: 5px 12px; border-radius: 20px;
    white-space: nowrap;
    background: #f5f5f5;
    color: #0a0a0a;
    border: 1px solid #eeeeee;
}

.mj-card-body {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px;
}
.mj-card-members { display: flex; align-items: center; }
.mj-card-members img {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; margin-left: -10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mj-card-members img:first-child { margin-left: 0; }
.mj-card-members .mj-extra {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f3f3f3; color: #6b6b6b;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 500;
    margin-left: -10px; border: 2px solid #fff;
}
.mj-card-tasks {
    display: flex; align-items: center; gap: 6px;
    color: #6b6b6b; font-size: 12px; font-weight: 400;
}

.mj-progress {
    margin-top: 14px; height: 4px;
    background: #f3f3f3; border-radius: 10px; overflow: hidden;
}
.mj-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #666, #0a0a0a);
    border-radius: 10px;
    transition: width .4s ease;
}

/* ===== TIMELINE ===== */
.mj-timeline { list-style: none; padding: 0; margin: 0; }
.mj-timeline-item {
    background: #ffffff; border-radius: 14px; margin-bottom: 10px;
    border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform .15s ease;
}
.mj-timeline-item:active { transform: scale(0.98); }
.mj-timeline-link {
    display: flex; gap: 14px; padding: 14px 16px;
    text-decoration: none; color: inherit;
}
.mj-timeline-dot {
    flex-shrink: 0;
    width: 10px; height: 10px; border-radius: 50%;
    background: #0a0a0a; margin-top: 6px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}
.mj-timeline-content { flex: 1; min-width: 0; }
.mj-timeline-date {
    font-size: 11px; color: #8a8a8a; font-weight: 400;
    margin-bottom: 3px;
}
.mj-timeline-subject {
    font-size: 14px; color: #0a0a0a;
    font-weight: 400; word-wrap: break-word; line-height: 1.4;
}
.mj-timeline-status {
    display: inline-block; font-size: 10px;
    background: #f5f5f5; color: #6b6b6b;
    padding: 3px 10px; border-radius: 10px;
    margin-top: 6px; font-weight: 400;
}

/* ===== TASKS ===== */
.mj-tasks { list-style: none; padding: 0; margin: 0; }
.mj-task {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; border-radius: 14px; padding: 14px 16px;
    margin-bottom: 10px; border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    gap: 12px;
}
.mj-task-info strong {
    display: block; font-size: 14px;
    color: #0a0a0a; font-weight: 500;
}
.mj-task-info small {
    display: block; font-size: 11px;
    color: #8a8a8a; margin-top: 3px; font-weight: 400;
}
.mj-task-status {
    font-size: 11px; font-weight: 500;
    padding: 4px 12px; border-radius: 20px;
    white-space: nowrap;
    background: #f5f5f5; color: #0a0a0a;
    border: 1px solid #eeeeee;
}

/* ===== AI SUMMARY ===== */
.mj-ai-summary {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 18px; padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.mj-ai-summary-head {
    display: flex; align-items: center; gap: 8px;
    color: #0a0a0a; margin-bottom: 12px;
    font-size: 13px; font-weight: 500;
}
.mj-ai-summary-body {
    font-size: 14px; color: #3a3a3a;
    line-height: 1.6; font-weight: 300;
}
.mj-ai-summary-body strong { color: #0a0a0a; font-weight: 500; }

/* ===== MEMBERS LIST ===== */
.mj-members-list {
    display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px;
}
.mj-member {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; min-width: 64px;
}
.mj-member img {
    width: 54px; height: 54px; border-radius: 50%;
    object-fit: cover; border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.mj-member span {
    font-size: 11px; color: #6b6b6b;
    text-align: center; font-weight: 300;
}

/* ===== HEARINGS ===== */
.mj-hearings { list-style: none; padding: 0; margin: 0; }
.mj-hearing {
    display: flex; gap: 14px; align-items: center;
    background: #fff; padding: 16px; border-radius: 16px;
    margin-bottom: 12px; border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.mj-hearings-past .mj-hearing { opacity: 0.55; }
.mj-hearing-date {
    flex-shrink: 0;
    width: 58px; height: 58px; border-radius: 14px;
    background: #f5f5f5; color: #0a0a0a;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid #eee;
}
.mj-hearing-date strong { font-size: 22px; line-height: 1; font-weight: 300; }
.mj-hearing-date span { font-size: 10px; text-transform: uppercase; margin-top: 3px; font-weight: 400; }
.mj-hearing-body { flex: 1; min-width: 0; }
.mj-hearing-type { font-size: 11px; color: #8a8a8a; margin-bottom: 3px; font-weight: 400; }
.mj-hearing-title { font-size: 14px; color: #0a0a0a; font-weight: 500; word-wrap: break-word; }
.mj-hearing-process { font-size: 11px; color: #8a8a8a; margin-top: 3px; font-weight: 300; }
.mj-hearing-sync {
    flex-shrink: 0;
    background: #f5f5f5; border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; color: #6b6b6b;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mj-hearing-sync.synced {
    background: #0a0a0a; color: #fff;
}

/* ===== BOTTOM NAV (floating, glass morphism) ===== */
.mj-nav {
    position: fixed; bottom: 20px;
    left: 50%; transform: translateX(-50%);
    max-width: 440px; width: calc(100% - 40px);
    background: #0a0a0a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 22px;
    padding: 6px;
    display: flex; justify-content: center; align-items: center; gap: 4px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.18),
        0 16px 48px rgba(0, 0, 0, 0.12),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
    border: none;
    z-index: 100;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
    will-change: transform;
}
.mj-nav.mj-nav-hidden {
    transform: translateX(-50%) translateY(140%);
    opacity: 0;
    pointer-events: none;
}
.mj-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 6px;
    font-size: 10px; font-weight: 500;
    border-radius: 16px;
    flex: 1; text-align: center;
    transition: all .2s ease;
    letter-spacing: 0.02em;
    position: relative;
    opacity: 0.7;
}
.mj-nav-item svg {
    transition: transform .2s ease;
    stroke: #ffffff;
}
.mj-nav-item:hover {
    opacity: 1;
}
.mj-nav-item:hover svg {
    transform: translateY(-1px);
}
.mj-nav-item.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mj-nav-item.active::after {
    content: '';
    position: absolute; bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%;
    background: #d4af37;
}

/* Desktop: center nav within the 80% content area */
@media (min-width: 900px) {
    body.mj-has-side-img .mj-nav {
        /* Instead of centering on the full viewport, center within the 80% content zone */
        left: 40%; /* 80% / 2 = 40% of viewport = center of content */
        transform: translateX(-50%);
    }
    body.mj-has-side-img .mj-nav.mj-nav-hidden {
        transform: translateX(-50%) translateY(140%);
    }
    .mj-nav {
        max-width: 480px;
        padding: 8px;
        border-radius: 24px;
    }
    .mj-nav-item {
        padding: 12px 8px;
        font-size: 11px;
        border-radius: 18px;
    }
}

/* ===== CHAT MODAL (FULLSCREEN, claude_ai style) ===== */
.mj-chat {
    position: fixed; inset: 0;
    background: #ffffff;
    display: flex; flex-direction: column;
    z-index: 500;
    animation: mj-chat-slide .3s ease;
}
@keyframes mj-chat-slide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes mj-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.mj-chat-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    padding-top: max(14px, env(safe-area-inset-top, 14px));
    background: #0a0a0a; color: #fff;
    flex-shrink: 0;
}
.mj-chat-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mj-chat-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,0.15);
}
.mj-chat-head-left strong { display: block; font-size: 14px; font-weight: 500; color: #fff; }
.mj-chat-head-left span { display: block; font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 300; margin-top: 1px; }
.mj-chat-close {
    background: rgba(255, 255, 255, 0.1); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.mj-chat-body, .mj-duvidas-body {
    flex: 1; overflow-y: auto; padding: 16px;
    background: #fafafa;
    display: flex; flex-direction: column; gap: 12px;
}

.mj-msg {
    max-width: 85%; padding: 12px 16px;
    border-radius: 18px; font-size: 14px; line-height: 1.5;
    word-wrap: break-word; font-weight: 400;
}
.mj-msg-bot {
    background: #ffffff; color: #0a0a0a;
    align-self: flex-start; border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px;
    max-width: 90%;
}
.mj-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    margin-top: 2px;
}
.mj-msg-content {
    flex: 1; min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.mj-msg-content ul, .mj-msg-content ol { padding-left: 18px; margin: 6px 0; }
.mj-msg-content li { margin-bottom: 4px; }
.mj-msg-user {
    background: #0a0a0a; color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.mj-msg-typing { opacity: 0.6; font-style: italic; }

.mj-chat-foot, .mj-duvidas-foot {
    display: flex; gap: 8px; padding: 12px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    align-items: flex-end;
}
.mj-chat-foot textarea, .mj-duvidas-foot textarea {
    flex: 1; border: 1px solid #ececec; border-radius: 22px;
    padding: 10px 16px; resize: none; max-height: 100px;
    font-family: inherit; font-size: 14px; outline: none;
    background: #fafafa;
    font-weight: 400; color: #0a0a0a;
}
.mj-chat-foot textarea:focus, .mj-duvidas-foot textarea:focus {
    border-color: #0a0a0a; background: #fff;
}
.mj-chat-send, .mj-duvidas-foot button:last-child {
    background: #0a0a0a; border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ===== DÚVIDAS (full-screen chat) ===== */
.mj-main-chat {
    padding: 0 22px 100px;
    display: flex; flex-direction: column;
    min-height: calc(100vh - 200px);
}
.mj-duvidas-body {
    background: transparent;
    padding: 20px 0;
}
.mj-duvidas-foot {
    position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
    max-width: 488px; width: calc(100% - 36px);
    border-radius: 40px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid #ececec;
    padding: 10px;
}
@supports (padding: max(0px)) {
    .mj-duvidas-foot { bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* ===== MIC BUTTON ===== */
.mj-mic-btn {
    background: #f3f3f3; border: none; color: #6b6b6b;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: all .15s ease;
}
.mj-mic-btn:hover { background: #e8e8e8; color: #0a0a0a; }
.mj-mic-btn.mj-mic-active {
    background: #0a0a0a; color: #fff;
    animation: mj-mic-pulse 1.4s infinite;
}
@keyframes mj-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10, 10, 10, 0.5); }
    50%      { box-shadow: 0 0 0 10px rgba(10, 10, 10, 0); }
}

/* ===== WELCOME POPUP ===== */
.mj-welcome-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mj-welcome-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); }
.mj-welcome-card {
    position: relative; background: #fff; border-radius: 28px;
    padding: 36px 26px 26px;
    max-width: 360px; width: 100%; text-align: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 60px 120px rgba(0, 0, 0, 0.2);
    animation: mj-welcome-in .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mj-welcome-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.mj-welcome-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; font-size: 26px;
    color: #bdbdbd; cursor: pointer; line-height: 1;
}
.mj-welcome-avatar {
    width: 84px; height: 84px; margin: 0 auto 16px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.mj-welcome-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mj-welcome-card h2 {
    font-size: 26px; margin: 0 0 8px;
    color: #0a0a0a; font-weight: 300;
    letter-spacing: -0.02em;
}
.mj-welcome-quote {
    font-size: 14px; color: #6b6b6b;
    font-style: italic; margin: 14px 0 22px;
    font-weight: 300; line-height: 1.5;
}
.mj-welcome-quote small { color: #9a9a9a; font-style: normal; }
.mj-welcome-btn {
    background: #0a0a0a;
    color: #fff; border: none;
    padding: 14px 28px; border-radius: 100px;
    font-size: 14px; font-weight: 500;
    cursor: pointer; width: 100%;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 16px 40px rgba(0, 0, 0, 0.15);
    transition: all .2s ease;
}
.mj-welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.25),
        0 24px 50px rgba(0, 0, 0, 0.2);
}

/* ===== PWA INSTALL TUTORIAL ===== */
.mj-install-tutorial {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.mj-install-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
}
.mj-install-card {
    position: relative; background: #fff; border-radius: 28px;
    padding: 32px 24px 22px; max-width: 360px; width: 100%;
    text-align: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 60px 120px rgba(0, 0, 0, 0.25);
    animation: mj-welcome-in .35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 92vh; overflow-y: auto;
}
.mj-install-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; font-size: 26px;
    color: #bdbdbd; cursor: pointer; line-height: 1;
}
.mj-install-icon {
    width: 80px; height: 80px; border-radius: 20px;
    object-fit: cover; margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: block;
}
.mj-install-card h3 {
    margin: 0 0 10px; font-size: 22px;
    font-weight: 300; color: #0a0a0a;
    letter-spacing: -0.02em;
}
.mj-install-card > p {
    font-size: 14px; color: #6b6b6b;
    margin: 0 0 22px; line-height: 1.5; font-weight: 300;
}
.mj-install-btn {
    background: #0a0a0a; color: #fff; border: none;
    padding: 14px 24px; border-radius: 100px;
    font-size: 14px; font-weight: 500;
    width: 100%; cursor: pointer;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 16px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mj-install-steps { text-align: left; margin: 4px 0 10px; }
.mj-install-manual-label {
    font-size: 12px; color: #9a9a9a;
    text-align: center; margin: 10px 0; font-weight: 400;
}
.mj-install-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 8px 0; font-size: 13px; color: #3a3a3a;
    line-height: 1.45; font-weight: 400;
}
.mj-install-num {
    flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: #0a0a0a; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600;
}
.mj-install-note {
    margin-top: 14px; font-size: 12px;
    color: #6b6b6b; font-weight: 300;
    padding-top: 14px; border-top: 1px solid #f3f3f3;
}
.mj-install-dismiss {
    background: none; border: none;
    color: #9a9a9a; font-size: 13px;
    cursor: pointer; margin-top: 12px;
    padding: 8px; font-weight: 400;
}
.mj-install-dismiss:hover { color: #6b6b6b; }

/* ===== LOGIN PAGE (split layout: image left + form right on desktop) ===== */
.mj-login-wrap {
    display: flex; min-height: 100vh; width: 100%;
}
.mj-login-side {
    display: none; /* hidden on mobile */
    background-size: cover; background-position: center;
    position: relative;
}
.mj-login-side-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 100%);
}
.mj-login-form-side {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    background: #ffffff;
}
@media (min-width: 768px) {
    .mj-login-side { display: block; width: 30%; flex-shrink: 0; }
    .mj-login-form-side { width: 70%; }
    .mj-login-form-side.mj-login-full { width: 100%; }
}
.mj-login {
    max-width: 400px; width: 100%;
    padding: 20px 0;
    text-align: center;
}
.mj-login-logo {
    width: 96px; height: 96px; margin: 0 auto 24px;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.mj-login-logo img { width: 100%; height: 100%; object-fit: cover; }
.mj-login-title {
    font-size: 32px; font-weight: 300;
    color: #0a0a0a; margin: 0 0 6px;
    letter-spacing: -0.025em;
}
.mj-login-sub {
    font-size: 14px; color: #8a8a8a;
    font-weight: 300; margin: 0 0 36px;
}
.mj-login-error {
    background: #fef2f2; color: #991b1b;
    padding: 12px 16px; border-radius: 12px;
    font-size: 13px; margin-bottom: 20px;
    border: 1px solid #fecaca;
}
.mj-login-form { text-align: left; }
/* Login instruction text */
.mj-login-instruction {
    font-size: 16px; color: #3a3a3a;
    font-weight: 300; line-height: 1.6;
    margin: 0 0 24px; text-align: center;
}
.mj-login-instruction strong { font-weight: 500; color: #0a0a0a; }

.mj-login-help {
    font-size: 13px; color: #9a9a9a;
    font-weight: 300; text-align: center;
    margin-top: 20px; line-height: 1.5;
}

.mj-login-label {
    display: block; font-size: 16px;
    color: #3a3a3a; margin: 0 0 10px;
    font-weight: 400;
    text-align: center;
}
.mj-login-input {
    width: 100%; padding: 16px 18px;
    border: 1px solid #e0e0e0; border-radius: 16px;
    font-size: 18px; font-family: inherit; outline: none;
    background: #fafafa; color: #0a0a0a;
    transition: all .15s ease;
}
.mj-login-input-lg {
    font-size: 22px; font-weight: 300;
    padding: 18px 20px;
    text-align: center;
    letter-spacing: 0.5px;
}
.mj-login-input:focus {
    border-color: #0a0a0a; background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}
.mj-login-btn {
    width: 100%; padding: 16px;
    background: #0a0a0a; color: #fff; border: none;
    border-radius: 100px; font-size: 16px; font-weight: 500;
    cursor: pointer; margin-top: 16px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all .2s ease;
    font-family: inherit;
}
.mj-login-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.28),
        0 28px 60px rgba(0, 0, 0, 0.2);
}
/* Login divider "ou" */
.mj-login-divider {
    display: flex; align-items: center; margin: 20px 0;
    gap: 14px;
}
.mj-login-divider::before, .mj-login-divider::after {
    content: ''; flex: 1; height: 1px; background: #ececec;
}
.mj-login-divider span { font-size: 12px; color: #9a9a9a; font-weight: 400; }

/* Secondary button (FaceID) */
.mj-login-btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px;
    background: #f5f5f5; color: #0a0a0a; border: 1px solid #ececec;
    border-radius: 100px; font-size: 14px; font-weight: 500;
    cursor: pointer; text-decoration: none;
    transition: all .15s ease;
    font-family: inherit;
}
.mj-login-btn-secondary:hover { background: #e8e8e8; color: #0a0a0a; }

/* Code input (large, centered digits) */
.mj-login-code-input {
    text-align: center;
    font-size: 36px !important;
    font-weight: 200 !important;
    letter-spacing: 16px;
    padding: 20px 16px !important;
}

/* Code sent confirmation */
.mj-login-code-sent {
    text-align: center; padding: 20px 0 10px;
}
.mj-login-code-icon { margin-bottom: 14px; }
.mj-login-code-msg {
    font-size: 16px; color: #3a3a3a; margin: 0 0 4px;
    font-weight: 400;
}
.mj-login-code-phone {
    font-size: 18px; color: #0a0a0a; font-weight: 500; margin: 4px 0 0;
}
.mj-login-code-sent p { font-size: 14px; color: #6b6b6b; margin: 4px 0; line-height: 1.5; }
.mj-login-hello {
    font-size: 20px !important; color: #0a0a0a !important;
    margin-top: 14px !important; font-weight: 300;
}

/* Text links (back, resend) */
.mj-login-link {
    display: block; width: 100%; text-align: center;
    background: none; border: none; color: #6b6b6b;
    font-size: 13px; cursor: pointer; padding: 12px;
    font-family: inherit; font-weight: 400;
}
.mj-login-link:hover { color: #0a0a0a; }

.mj-login-foot {
    margin-top: 20px; font-size: 12px;
    color: #9a9a9a; font-weight: 300; line-height: 1.6;
}

/* ===== CHAT HEADER ACTIONS (agent picker, history clear) ===== */
.mj-chat-actions { display: flex; gap: 6px; align-items: center; }
.mj-chat-action {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.mj-chat-action:hover { background: rgba(255,255,255,0.2); }

/* Agent picker */
.mj-agent-picker {
    background: #1a1a1a; color: #fff;
    padding: 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
}
.mj-agent-picker.open { display: block; }
.mj-picker-title { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 10px; font-weight: 400; }
.mj-picker-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mj-picker-item {
    background: none; border: 2px solid transparent;
    cursor: pointer; padding: 6px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.mj-picker-item img {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover; border: 2px solid transparent;
}
.mj-picker-item.active img { border-color: #d4af37; }
.mj-picker-item span { font-size: 10px; color: rgba(255,255,255,0.8); }

/* ===== MOVIMENTAÇÕES PAGE ===== */
.mj-mov-list { list-style: none; padding: 0; margin: 0; }
.mj-mov {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; padding: 16px; border-radius: 14px;
    margin-bottom: 10px; border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    text-decoration: none; color: inherit; gap: 12px;
}
.mj-mov:active { transform: scale(0.98); }
.mj-mov-info { flex: 1; min-width: 0; }
.mj-mov-subject { font-size: 14px; font-weight: 500; color: #0a0a0a; margin-bottom: 4px; }
.mj-mov-meta { font-size: 11px; color: #8a8a8a; font-weight: 300; }
.mj-mov-status {
    font-size: 10px; font-weight: 500; padding: 4px 10px; border-radius: 20px;
    background: #f5f5f5; color: #0a0a0a; border: 1px solid #eeeeee;
    white-space: nowrap; flex-shrink: 0;
}

/* FAB new ticket */
.mj-fab {
    position: fixed; bottom: 24px; right: 20px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #0a0a0a; color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 90;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 16px 40px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}
.mj-fab:hover { transform: translateY(-2px); }
@media (min-width: 900px) {
    body.mj-has-side-img .mj-fab { right: calc(20% + 24px); }
}
@supports (padding: max(0px)) {
    .mj-fab { bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* ===== TICKET DETAIL / REPLY ===== */
.mj-ticket-head {
    background: #fff; padding: 18px;
    border-radius: 16px; margin-bottom: 14px;
    border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.mj-ticket-subject { font-size: 18px; font-weight: 500; color: #0a0a0a; margin: 0 0 8px; }
.mj-ticket-meta { font-size: 12px; color: #8a8a8a; display: flex; gap: 12px; flex-wrap: wrap; }
.mj-ticket-body-item {
    background: #fff; padding: 16px; border-radius: 14px;
    margin-bottom: 10px; border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.mj-ticket-body-item.admin { background: #fafafa; border-left: 3px solid #0a0a0a; }
.mj-ticket-body-header { font-size: 11px; color: #8a8a8a; margin-bottom: 8px; display: flex; justify-content: space-between; }
.mj-ticket-body-content { font-size: 14px; color: #3a3a3a; line-height: 1.6; }
.mj-ticket-attachments { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.mj-ticket-attachment {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f5f5f5; padding: 6px 12px; border-radius: 20px;
    font-size: 11px; color: #3a3a3a; text-decoration: none;
}

/* Reply / new ticket form */
.mj-form-card {
    background: #fff; padding: 18px; border-radius: 16px;
    border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
}
.mj-form-label { display: block; font-size: 12px; color: #6b6b6b; margin: 12px 0 6px; font-weight: 400; }
.mj-form-label:first-child { margin-top: 0; }
.mj-form-input, .mj-form-select, .mj-form-textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid #ececec; border-radius: 12px;
    font-size: 14px; font-family: inherit; outline: none;
    background: #fafafa; color: #0a0a0a;
}
.mj-form-input:focus, .mj-form-select:focus, .mj-form-textarea:focus {
    border-color: #0a0a0a; background: #fff;
}
.mj-form-textarea { resize: vertical; min-height: 100px; }
.mj-form-file {
    display: block; padding: 14px; border: 2px dashed #ececec;
    border-radius: 12px; text-align: center; color: #6b6b6b;
    font-size: 13px; cursor: pointer; font-weight: 300;
}
.mj-form-submit {
    width: 100%; padding: 14px;
    background: #0a0a0a; color: #fff; border: none;
    border-radius: 100px; font-size: 14px; font-weight: 500;
    cursor: pointer; margin-top: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-family: inherit;
}

/* ===== PUSH PERMISSION BANNER ===== */
.mj-push-banner {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    max-width: 480px; width: calc(100% - 32px);
    background: #0a0a0a; color: #fff;
    padding: 14px 18px; border-radius: 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 80;
    animation: mj-fade-in .3s ease;
}
body.mj-has-nav .mj-push-banner { bottom: 100px; }
body.mj-has-nav .mj-fab          { bottom: 100px; }
body.mj-has-nav .mj-duvidas-foot { bottom: 92px; }
@supports (padding: max(0px)) {
    body.mj-has-nav .mj-push-banner { bottom: max(100px, calc(env(safe-area-inset-bottom) + 90px)); }
    body.mj-has-nav .mj-fab          { bottom: max(100px, calc(env(safe-area-inset-bottom) + 90px)); }
    body.mj-has-nav .mj-duvidas-foot { bottom: max(92px, calc(env(safe-area-inset-bottom) + 82px)); }
}
.mj-push-banner.hidden { display: none; }
.mj-push-banner-text { flex: 1; font-size: 12px; line-height: 1.4; font-weight: 300; }
.mj-push-banner-text strong { font-weight: 500; }
.mj-push-banner-btn {
    background: #d4af37; color: #0a0a0a; border: none;
    padding: 8px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600; cursor: pointer;
}
.mj-push-banner-close {
    background: transparent; border: none; color: rgba(255,255,255,0.6);
    font-size: 20px; cursor: pointer; padding: 0 4px;
}

/* ===== TASK LINK (clickable task row) ===== */
.mj-task-link {
    display: flex; justify-content: space-between; align-items: center;
    text-decoration: none; color: inherit; gap: 12px; width: 100%;
}

/* ===== FATURAS SUMMARY CARDS ===== */
.mj-faturas-summary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.mj-fatura-card {
    background: #fff; border-radius: 16px; padding: 18px 16px;
    border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-align: center;
}
.mj-fatura-card-label { font-size: 12px; color: #8a8a8a; font-weight: 400; display: block; margin-bottom: 6px; }
.mj-fatura-card strong { font-size: 18px; font-weight: 500; display: block; }
.mj-fatura-pending strong { color: #f59e0b; }
.mj-fatura-overdue strong { color: #ef4444; }
.mj-fatura-paid strong { color: #10b981; }
@media (max-width: 480px) {
    .mj-faturas-summary { grid-template-columns: 1fr; }
}

/* ===== FINANCIAL DASHBOARD ===== */
.mj-fin-hero {
    background: #0a0a0a; color: #fff;
    border-radius: 20px; padding: 22px 20px;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.12),
        0 16px 48px rgba(0,0,0,0.08);
}
.mj-fin-hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mj-fin-hero-label { font-size: 16px; color: rgba(255,255,255,0.55); display: block; font-weight: 200; letter-spacing: 0.02em; }
.mj-fin-hero-value { font-size: 48px; font-weight: 200; letter-spacing: -0.03em; margin-top: 8px; line-height: 1.1; }
.mj-fin-hero-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
}
.mj-fin-hero-row {
    display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap;
}
.mj-fin-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 20px;
    background: rgba(255,255,255,0.08);
    font-size: 13px; color: rgba(255,255,255,0.8); font-weight: 400;
}
.mj-fin-pill strong { font-weight: 600; }
.mj-fin-pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mj-fin-pill-warn { color: #fcd34d; }
.mj-fin-pill-danger { color: #fca5a5; }

/* Totals row (Total pago + Total faturado side by side) */
.mj-fin-totals-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px;
}
.mj-fin-total-card {
    background: #fff; border-radius: 18px; padding: 20px 18px;
    border: 1px solid #f3f3f3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-align: left;
}
.mj-fin-total-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.mj-fin-total-card span { font-size: 14px; color: #8a8a8a; display: block; font-weight: 300; }
.mj-fin-total-value { font-size: 24px; font-weight: 500; display: block; margin-top: 6px; color: #0a0a0a; }
@media (max-width: 400px) {
    .mj-fin-totals-row { grid-template-columns: 1fr; }
}

/* (chart removed — clean space) */

/* Invoice card in listing */
.mj-fin-invoice-card { transition: all .2s ease; }
.mj-fin-inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mj-fin-inv-number strong { font-size: 18px; display: block; color: #0a0a0a; }
.mj-fin-inv-number span { font-size: 13px; color: #8a8a8a; display: block; margin-top: 3px; }
.mj-fin-inv-amounts {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid #f3f3f3;
}
.mj-fin-inv-total span, .mj-fin-inv-paid-col span { font-size: 11px; color: #8a8a8a; display: block; }
.mj-fin-inv-total strong { font-size: 22px; font-weight: 500; color: #0a0a0a; display: block; margin-top: 2px; }
.mj-fin-inv-paid-col { text-align: right; }
.mj-fin-inv-paid-col strong { font-size: 14px; font-weight: 500; display: block; margin-top: 2px; }
.mj-fin-inv-dates {
    display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap;
}
.mj-fin-inv-date {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #6b6b6b; font-weight: 400;
}
.mj-fin-inv-date strong { font-weight: 600; color: #0a0a0a; font-size: 14px; }
.mj-fin-inv-date-overdue { color: #ef4444; }
.mj-fin-inv-date-overdue strong { color: #ef4444; }

/* Pay button */
.mj-pay-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px;
    background: #0a0a0a; color: #fff; border: none;
    border-radius: 100px; font-size: 16px; font-weight: 500;
    text-decoration: none;
    box-shadow:
        0 8px 24px rgba(0,0,0,0.2),
        0 20px 50px rgba(0,0,0,0.15);
    transition: all .2s ease;
    font-family: inherit;
}
.mj-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(0,0,0,0.28),
        0 28px 60px rgba(0,0,0,0.2);
    color: #fff;
}

@media (max-width: 480px) {
    .mj-fin-stats { grid-template-columns: 1fr; }
    .mj-fin-hero-value { font-size: 36px; }
}

/* ===== PULL TO REFRESH ===== */
.mj-ptr {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center;
    height: 60px; transform: translateY(-60px);
    color: #6b6b6b; font-size: 13px;
    transition: transform .2s ease;
    pointer-events: none;
    z-index: 10;
}
.mj-ptr.pulling { transform: translateY(0); }
.mj-ptr.refreshing { transform: translateY(0); }
.mj-ptr svg { animation: mj-spin 1s linear infinite; }
.mj-ptr.pulling svg { animation: none; }
@keyframes mj-spin { to { transform: rotate(360deg); } }

/* ===== SAFE AREAS ===== */
@supports (padding: max(0px)) {
    .mj-nav { bottom: max(18px, env(safe-area-inset-bottom)); }
    body.mj-has-nav { padding-bottom: max(100px, calc(env(safe-area-inset-bottom) + 90px)); }
    body.mj-no-nav  { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
/* ============================================================
   Hearings — big date card + detail modal
   ============================================================ */
.mj-hearings-page { padding-top: 8px; }
.mj-hearings-big {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mj-hearing-big {
    --mj-accent: #10b981;
    --mj-accent-soft: rgba(16,185,129,.1);
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
    padding: 14px 14px 14px 0;
    display: grid;
    grid-template-columns: 96px 1fr 20px;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
}
.mj-hearing-big:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,.18);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.mj-hearings-big-past .mj-hearing-big { opacity: .75; }

.mj-hearing-big-date {
    position: relative;
    background: var(--mj-accent-soft);
    color: var(--mj-accent);
    border-radius: 14px 0 0 14px;
    margin-left: 0;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 78px;
}
.mj-hb-day   { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.mj-hb-month { font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-top: 4px; text-transform: uppercase; }

.mj-hearing-big-body { min-width: 0; }
.mj-hb-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mj-accent);
}
.mj-hb-title {
    font-size: 15px;
    font-weight: 600;
    color: #0a0a0a;
    margin-top: 3px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.mj-hb-meta {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.mj-hb-weekday { text-transform: capitalize; }
.mj-hb-time { font-variant-numeric: tabular-nums; font-weight: 600; color: #0a0a0a; }
.mj-hb-dot { opacity: .4; }
.mj-hb-meet {
    color: #10b981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mj-hb-chev { color: #cbcbcb; display: flex; align-items: center; justify-content: center; }

/* Detail modal */
.mj-hdetail {
    position: fixed; inset: 0;
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.mj-hdetail-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
}
.mj-hdetail-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: mj-hd-in .2s ease-out;
}
@keyframes mj-hd-in {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
.mj-hdetail-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    z-index: 2;
}
.mj-hdetail-header {
    --mj-accent: #10b981;
    background: linear-gradient(135deg, var(--mj-accent) 0%, color-mix(in srgb, var(--mj-accent) 70%, #000) 100%);
    color: #fff;
    padding: 28px 24px 24px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 22px;
}
.mj-hd-date {
    background: rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 10px 14px;
    text-align: center;
    min-width: 90px;
    backdrop-filter: blur(8px);
}
.mj-hd-day   { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.mj-hd-month { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; margin-top: 4px; }
.mj-hd-year  { display: block; font-size: 11px; opacity: .8; margin-top: 2px; letter-spacing: .05em; }
.mj-hd-heading { flex: 1; min-width: 0; }
.mj-hd-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .85;
}
.mj-hd-title {
    font-size: 19px;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.3;
}
.mj-hd-when {
    font-size: 13px;
    margin-top: 6px;
    opacity: .9;
}
.mj-hd-body {
    padding: 20px 24px 28px;
}
.mj-hd-row { padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.mj-hd-row:last-child { border-bottom: none; }
.mj-hd-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: 4px;
}
.mj-hd-val {
    font-size: 14px;
    color: #0a0a0a;
    line-height: 1.5;
    word-wrap: break-word;
}
.mj-hd-desc { color: #374151; }
.mj-hd-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background .15s ease;
}
.mj-hd-link-btn:hover { background: #059669; }
.mj-hd-link-btn-alt {
    color: #0a0a0a;
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 480px) {
    .mj-hearing-big { grid-template-columns: 78px 1fr 18px; padding: 12px 10px 12px 0; }
    .mj-hb-day { font-size: 32px; }
    .mj-hb-month { font-size: 11px; }
    .mj-hb-title { font-size: 14px; }
    .mj-hdetail-header { padding: 22px 20px 20px; gap: 16px; }
    .mj-hd-date { min-width: 74px; padding: 8px 10px; }
    .mj-hd-day { font-size: 36px; }
    .mj-hd-title { font-size: 17px; }
    .mj-hd-body { padding: 16px 20px 24px; }
}

/* Profile form: photo selected state */
.mj-form-file-selected {
    background: #f0fdf4 !important;
    border-color: #10b981 !important;
    color: #047857 !important;
}

/* ===== FINANCIAL (Financeiro) REDESIGN ===== */

/* Hero / black card — bigger value, thin lines */
.mj-fin-card .mj-fin-hero-value {
    font-size: 54px;
    font-weight: 200;
    letter-spacing: -0.035em;
    margin-top: 6px;
}
@media (max-width: 480px) {
    .mj-fin-card .mj-fin-hero-value { font-size: 42px; }
}
.mj-fin-card .mj-fin-hero-label {
    font-weight: 200;
    letter-spacing: 0.03em;
    font-size: 14px;
    text-transform: uppercase;
}
.mj-fin-card .mj-fin-hero-row {
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 18px;
}

/* Period filter (inside black card) */
.mj-fin-filter {
    margin-top: 18px;
    position: relative;
}
.mj-fin-filter[open] .mj-fin-filter-chevron { transform: rotate(180deg); }
.mj-fin-filter summary { list-style: none; cursor: pointer; }
.mj-fin-filter summary::-webkit-details-marker { display: none; }
.mj-fin-filter-trigger {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    width: fit-content;
    transition: background .15s ease;
}
.mj-fin-filter-trigger:hover { background: rgba(255,255,255,0.1); }
.mj-fin-filter-label { color: rgba(255,255,255,0.55); font-weight: 300; }
.mj-fin-filter-value { color: #fff; font-weight: 500; }
.mj-fin-filter-chevron { transition: transform .2s ease; color: rgba(255,255,255,0.7); }
.mj-fin-filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #ffffff;
    color: #0a0a0a;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.08);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mj-fin-filter-option {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f1f1f;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 400;
    transition: background .12s ease;
}
.mj-fin-filter-option:hover { background: #f3f4f6; color: #0a0a0a; }
.mj-fin-filter-option.is-active {
    background: #0a0a0a;
    color: #fff;
    font-weight: 500;
}

/* Summary grid: ALWAYS 2 columns, even on mobile */
.mj-fin-summary.mj-fin-totals-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 400px) {
    .mj-fin-summary.mj-fin-totals-row { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Invoice cards — thin border + gradient by status */
.mj-inv-card {
    border-radius: 16px;
    padding: 16px 16px 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mj-inv-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.mj-inv-card-pago {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #d1fae5;
}
.mj-inv-card-pendente {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid #fed7aa;
}
.mj-inv-card-atrasada {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border: 1px solid #fecaca;
}
.mj-inv-card-parcial {
    background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
    border: 1px solid #fde68a;
}
.mj-inv-card-naopago {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
}
.mj-inv-card-cancelada {
    background: linear-gradient(135deg, #eceef1 0%, #f8f9fa 100%);
    border: 1px solid #cbd5e1;
    opacity: .9;
}

/* Info hierarchy on invoice card */
.mj-inv-card .mj-fin-inv-dates {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mj-inv-card .mj-fin-inv-date-primary {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}
.mj-inv-card .mj-fin-inv-date-primary strong {
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
}
.mj-inv-card .mj-fin-inv-date-secondary {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}
.mj-inv-card .mj-fin-inv-amounts {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}
.mj-fin-inv-paid-amt {
    color: #10b981 !important;
    font-weight: 700 !important;
}
.mj-fin-inv-remaining {
    display: block !important;
    margin-top: 4px;
    font-size: 11px !important;
    color: #d97706 !important;
}
.mj-fin-inv-remaining strong {
    color: #d97706 !important;
    font-weight: 600 !important;
}

/* AI summary block inside hearing detail modal */
.mj-hd-summary-row {
    background: #f9fafb;
    margin: -12px -8px 8px;
    padding: 14px 20px !important;
    border-radius: 12px;
    border-bottom: none !important;
    border-left: 3px solid var(--mj-accent, #3b82f6);
}
.mj-hd-summary {
    color: #1f2937;
    line-height: 1.6;
    font-size: 14px;
}
.mj-hd-summary strong { color: #0a0a0a; }
.mj-hd-summary em { color: #6b7280; font-style: italic; font-size: 12px; display: block; margin-top: 8px; }
