/* ============================================================
   PRODIUSCOND - Sistema de design v2 (mobile-first, modern)
   Paleta moderna, sombras em camadas, micro-interacoes elegantes.
   Variaveis injetadas inline no header com a cor do condominio.
   ============================================================ */

:root {
    /* Cores base - paleta neutra refinada */
    --pc-bg:           #f4f6fb;
    --pc-bg-alt:       #eef1f7;
    --pc-surface:      #ffffff;
    --pc-surface-soft: #fbfcfe;
    --pc-border:       #e6eaf2;
    --pc-border-soft:  #eef1f7;

    /* Texto */
    --pc-text:         #1a2236;
    --pc-text-soft:    #4a5570;
    --pc-text-muted:   #8893ad;
    --pc-text-faint:   #b8c0d4;

    /* Acentos (default - sobrepostos pelo branding do condominio) */
    --pc-primary:      #4f46e5;
    --pc-primary-rgb:  79, 70, 229;
    --pc-primary-soft: rgba(79, 70, 229, 0.08);
    --pc-primary-dark: #3730a3;

    /* Layout */
    --pc-sidebar-w:    260px;
    --pc-topbar-h:     64px;
    --pc-radius-sm:    8px;
    --pc-radius:       14px;
    --pc-radius-lg:    20px;

    /* Sombras em camadas (elevation) */
    --pc-shadow-xs:  0 1px 2px rgba(15, 23, 42, 0.04);
    --pc-shadow-sm:  0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --pc-shadow-md:  0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --pc-shadow-lg:  0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    --pc-shadow-xl:  0 24px 60px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.06);

    /* Transicoes */
    --pc-transition:    all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --pc-transition-sm: all 0.12s ease-out;
    --pc-transition-lg: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== RESET / BASE ===================== */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    color: var(--pc-text);
    background: var(--pc-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv11', 'ss01';
    line-height: 1.5;
}

body.pc-body { min-height: 100vh; }

/* Scrollbar mais sutil */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4dae6; border-radius: 5px; border: 2px solid var(--pc-bg); }
::-webkit-scrollbar-thumb:hover { background: #b8c0d4; }

/* Selection com cor primaria */
::selection { background: var(--pc-primary-soft); color: var(--pc-primary-dark); }

/* ===================== TIPOGRAFIA ===================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--pc-text);
    letter-spacing: -0.01em;
}

a {
    color: var(--pc-primary);
    transition: var(--pc-transition-sm);
}
a:hover { color: var(--pc-primary-dark); }

/* ===================== TOPBAR ===================== */
.pc-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--pc-topbar-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--pc-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
}

.pc-logo {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--pc-border);
    box-shadow: var(--pc-shadow-xs);
}

.pc-logo-fallback {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(var(--pc-primary-rgb), 0.25);
}

.pc-cond-name {
    font-weight: 600;
    color: var(--pc-text);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.pc-tenant-switch {
    min-width: 200px;
    border-radius: 10px;
    border-color: var(--pc-border);
    background: var(--pc-surface-soft);
    font-weight: 500;
    transition: var(--pc-transition-sm);
}
.pc-tenant-switch:focus {
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 3px var(--pc-primary-soft);
}

.pc-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: var(--pc-shadow-sm);
    transition: var(--pc-transition-sm);
}
.pc-avatar:hover { transform: scale(1.05); box-shadow: var(--pc-shadow-md); }

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    background: var(--pc-surface-soft);
    border: 1px solid var(--pc-border-soft);
    color: var(--pc-text-soft);
    transition: var(--pc-transition);
}
.btn-icon:hover {
    background: #fff;
    color: var(--pc-primary);
    border-color: var(--pc-primary-soft);
    transform: translateY(-1px);
    box-shadow: var(--pc-shadow-sm);
}

.pc-sidebar-toggle {
    border: none !important;
    background: transparent !important;
    width: 40px; height: 40px;
    border-radius: 10px;
    transition: var(--pc-transition-sm);
}
.pc-sidebar-toggle:hover { background: var(--pc-bg-alt) !important; }

/* ===================== SHELL (sidebar + content) ===================== */
.pc-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--pc-topbar-h));
}

.pc-sidebar {
    width: var(--pc-sidebar-w);
    background: var(--pc-surface);
    border-right: 1px solid var(--pc-border-soft);
    overflow-y: auto;
    flex-shrink: 0;
}

.pc-sidebar-nav {
    padding: 1rem 0.75rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pc-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pc-text-faint);
    padding: 1rem 0.85rem 0.4rem;
}

.pc-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.2rem;
    border-radius: 10px;
    color: var(--pc-text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--pc-transition);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.pc-sidebar .nav-link i {
    font-size: 1.1rem;
    width: 22px;
    color: var(--pc-text-muted);
    flex-shrink: 0;
    transition: var(--pc-transition-sm);
}

.pc-sidebar .nav-link:hover {
    background: var(--pc-bg-alt);
    color: var(--pc-text);
    transform: translateX(2px);
}
.pc-sidebar .nav-link:hover i { color: var(--pc-primary); }

.pc-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--pc-primary-rgb), 0.3);
    transform: none;
}
.pc-sidebar .nav-link.active i { color: #fff; }

.pc-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

.pc-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--pc-border-soft);
    color: var(--pc-text-faint);
    font-size: 0.8rem;
}

.pc-content {
    flex: 1;
    min-width: 0;
}

/* ===================== PAGE HEADER ===================== */
.pc-content > .container-fluid > h1.h4,
.pc-content h1.h4 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pc-text);
}

/* ===================== SECTIONS ===================== */
.pc-section-header {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pc-text-muted);
    font-weight: 700;
    border-left: 3px solid var(--pc-primary);
    padding-left: 12px;
    margin: 1rem 0 1rem;
}

/* ===================== MENU CARDS (DASHBOARD) ===================== */
.pc-menu-card {
    border: 1px solid var(--pc-border-soft);
    border-radius: var(--pc-radius);
    background: var(--pc-surface);
    transition: var(--pc-transition);
    text-align: center;
    color: var(--pc-text);
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--pc-shadow-xs);
    position: relative;
    overflow: hidden;
}

.pc-menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, var(--pc-primary-soft) 200%);
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
}

.pc-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pc-shadow-lg);
    text-decoration: none;
    color: var(--pc-text);
    border-color: var(--pc-border);
}
.pc-menu-card:hover::before { opacity: 1; }

.pc-menu-card-icon {
    font-size: 2.1rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--pc-transition);
}
.pc-menu-card:hover .pc-menu-card-icon {
    transform: scale(1.1);
}

.pc-menu-card .fw-bold {
    font-size: 0.95rem;
    letter-spacing: -0.005em;
}

/* ===================== CARDS GENERICOS ===================== */
.card {
    border-radius: var(--pc-radius);
    border: 1px solid var(--pc-border-soft);
    box-shadow: var(--pc-shadow-xs);
    background: var(--pc-surface);
}

.card.shadow-sm { box-shadow: var(--pc-shadow-sm) !important; }

.card-body { padding: 1.25rem; }

.card-img-top {
    border-top-left-radius: calc(var(--pc-radius) - 1px);
    border-top-right-radius: calc(var(--pc-radius) - 1px);
}

/* ===================== FORMS ===================== */
.form-label.small {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--pc-text-muted) !important;
}

.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--pc-border);
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
    transition: var(--pc-transition-sm);
    background: var(--pc-surface);
}
.form-control:focus, .form-select:focus {
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 3px var(--pc-primary-soft);
}

.form-control-sm, .form-select-sm { padding: 0.4rem 0.65rem; font-size: 0.85rem; }

.input-group-text {
    background: var(--pc-bg-alt);
    border-color: var(--pc-border);
    color: var(--pc-text-soft);
    font-weight: 500;
}

.form-check-input {
    border-color: var(--pc-text-faint);
    transition: var(--pc-transition-sm);
}
.form-check-input:checked {
    background-color: var(--pc-primary);
    border-color: var(--pc-primary);
}
.form-check-input:focus {
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 3px var(--pc-primary-soft);
}

/* ===================== BUTTONS ===================== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: -0.005em;
    padding: 0.55rem 1rem;
    transition: var(--pc-transition);
    border-width: 1px;
}

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    border-color: var(--pc-primary-dark);
    box-shadow: 0 2px 8px rgba(var(--pc-primary-rgb), 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--pc-primary-rgb), 0.35);
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    border-color: var(--pc-primary-dark);
}
.btn-primary:active { transform: translateY(0); }

.btn-light {
    background: var(--pc-surface);
    border-color: var(--pc-border);
    color: var(--pc-text-soft);
}
.btn-light:hover {
    background: var(--pc-bg-alt);
    border-color: var(--pc-border);
    color: var(--pc-text);
    transform: translateY(-1px);
    box-shadow: var(--pc-shadow-sm);
}

.btn-outline-primary {
    color: var(--pc-primary);
    border-color: var(--pc-border);
    background: var(--pc-surface);
}
.btn-outline-primary:hover {
    background: var(--pc-primary-soft);
    color: var(--pc-primary-dark);
    border-color: var(--pc-primary);
    transform: translateY(-1px);
}

.btn-success { box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2); }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(25, 135, 84, 0.3); }

.btn-danger, .btn-outline-danger:hover { box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2); }

/* ===================== BADGES ===================== */
.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.35em 0.7em;
    border-radius: 6px;
}

.badge.bg-light {
    background: var(--pc-bg-alt) !important;
    color: var(--pc-text-soft) !important;
    border: 1px solid var(--pc-border-soft);
}

/* ===================== TABELAS ===================== */
.table {
    --bs-table-hover-bg: var(--pc-primary-soft);
}

.table thead.table-light th {
    background: var(--pc-bg-alt);
    color: var(--pc-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--pc-border);
    padding: 0.85rem 1rem;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--pc-border-soft);
}

.table-hover tbody tr {
    transition: var(--pc-transition-sm);
}

/* ===================== ALERTS ===================== */
.alert {
    border-radius: var(--pc-radius);
    border: none;
    padding: 1rem 1.25rem;
    box-shadow: var(--pc-shadow-xs);
}

.alert-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.08), rgba(13, 202, 240, 0.04));
    color: #055160;
    border-left: 3px solid #0dcaf0;
}
.alert-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(25, 135, 84, 0.04));
    color: #0a3622;
    border-left: 3px solid #198754;
}
.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.10), rgba(255, 193, 7, 0.05));
    color: #664d03;
    border-left: 3px solid #ffc107;
}
.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(220, 53, 69, 0.04));
    color: #58151c;
    border-left: 3px solid #dc3545;
}
.alert-primary {
    background: linear-gradient(135deg, var(--pc-primary-soft), rgba(var(--pc-primary-rgb), 0.04));
    color: var(--pc-primary-dark);
    border-left: 3px solid var(--pc-primary);
}

/* ===================== EMPTY STATE ===================== */
.pc-empty-state {
    padding: 4rem 1.5rem;
    text-align: center;
    color: var(--pc-text-muted);
}

.pc-empty-state i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--pc-text-faint), var(--pc-text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.pc-empty-state p {
    font-size: 1rem;
    color: var(--pc-text-soft);
    font-weight: 500;
}

/* ===================== DROPDOWN ===================== */
.dropdown-menu {
    border: 1px solid var(--pc-border-soft);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow-xl);
    padding: 0.4rem;
    margin-top: 0.6rem !important;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pc-text-soft);
    transition: var(--pc-transition-sm);
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--pc-primary-soft);
    color: var(--pc-primary-dark);
}
.dropdown-item.text-danger:hover { background: rgba(220, 53, 69, 0.08); color: #b02a37; }

.dropdown-divider {
    border-top: 1px solid var(--pc-border-soft);
    margin: 0.4rem 0;
}

/* ===================== MODAL ===================== */
.modal-content {
    border: none;
    border-radius: var(--pc-radius-lg);
    box-shadow: var(--pc-shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--pc-surface-soft);
    border-bottom: 1px solid var(--pc-border-soft);
}

/* ===================== ACCORDION (FAQ) ===================== */
.accordion-flush .accordion-button {
    border-radius: 10px;
    font-weight: 500;
    color: var(--pc-text);
    padding: 1rem 1.25rem;
    transition: var(--pc-transition-sm);
}
.accordion-flush .accordion-button:not(.collapsed) {
    background: var(--pc-primary-soft);
    color: var(--pc-primary-dark);
    box-shadow: none;
}
.accordion-flush .accordion-button:focus { box-shadow: none; }
.accordion-body {
    color: var(--pc-text-soft);
    padding: 0 1.25rem 1.25rem;
}

/* ===================== LIST GROUP ===================== */
.list-group-item {
    border-color: var(--pc-border-soft);
    transition: var(--pc-transition-sm);
}
.list-group-flush .list-group-item:hover {
    background: var(--pc-bg-alt);
}

/* ===================== AUTH (LOGIN) ===================== */
body.pc-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    padding: 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    background-size: 200% 200%;
    animation: pcGradient 18s ease infinite;
}

@keyframes pcGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pc-auth-overlay {
    position: fixed; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.55), rgba(15,23,42,0.35));
    z-index: 1;
}

.pc-auth-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--pc-radius-lg);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--pc-shadow-xl);
    animation: pcCardEntry 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pcCardEntry {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pc-auth-card .form-control {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--pc-bg);
    border: 1px solid transparent;
}
.pc-auth-card .form-control:focus {
    background: #fff;
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 4px var(--pc-primary-soft);
}

.pc-auth-card .input-group-text {
    background: var(--pc-bg);
    border: 1px solid transparent;
    color: var(--pc-text-muted);
}

.pc-auth-card .btn-primary {
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--pc-primary), #7c3aed);
    border: none;
    box-shadow: 0 8px 24px rgba(var(--pc-primary-rgb), 0.35);
}
.pc-auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--pc-primary-rgb), 0.45);
}

/* ===================== UTIL: MURAL CARDS ===================== */
.pc-mural-card { transition: var(--pc-transition); }
.pc-mural-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pc-shadow-md);
}

/* ===================== PREVIEW ITEMS (uploads) ===================== */
.pc-preview-item {
    width: 110px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--pc-shadow-xs);
}

.pc-preview-item img {
    transition: var(--pc-transition-sm);
}

/* ===================== MOBILE BREAKPOINT (<992px) ===================== */
@media (max-width: 991.98px) {
    .pc-sidebar { width: 280px; }
    .pc-menu-card { min-height: 110px; padding: 1rem !important; }
    .pc-menu-card-icon { font-size: 1.7rem; }

    .pc-topbar { padding: 0 1rem; }
}

@media (max-width: 575.98px) {
    .pc-topbar { padding: 0 0.85rem; }
    .pc-content .container-fluid {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
    .pc-auth-card { padding: 2rem 1.5rem; border-radius: 16px; }
    .card-body { padding: 1rem; }
    .pc-empty-state { padding: 2.5rem 1rem; }
    .pc-empty-state i { font-size: 2.75rem; }
}

/* ===================== ANIMACOES UTILITARIAS ===================== */
@keyframes pcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pc-content > .container-fluid > .alert,
.pc-content > .container-fluid > .row,
.pc-content > .container-fluid > .card {
    animation: pcFadeIn 0.32s ease-out;
}

/* Alerts em modais nao animam pra evitar flash */
.modal .alert { animation: none; }

/* ===================== NOTIFICACOES (sino) ===================== */
.pc-notif-dropdown { animation: pcFadeIn 0.2s ease-out; }

#pcNotifCount {
    animation: pcPulse 2s infinite;
}
@keyframes pcPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6); }
    50%      { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

/* ===================== HERO HEADER (dashboard) ===================== */
.pc-hero {
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    color: #fff;
    border-radius: var(--pc-radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 32px rgba(var(--pc-primary-rgb), 0.25);
    position: relative;
    overflow: hidden;
}

.pc-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pc-hero h1 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.pc-hero p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .pc-hero { padding: 1.25rem 1.25rem; border-radius: 16px; }
    .pc-hero h1 { font-size: 1.25rem; }
    .pc-hero p  { font-size: 0.85rem; }
}

/* ===================== FULLCALENDAR ISOLATION ===================== */
/* Evita que CSS customizado do ProdiusCond sobrescreva estilos internos do FullCalendar */

/* Reset das regras .table que afetam tabelas internas do FC */
.fc table, .fc table thead, .fc table tbody, .fc table td, .fc table th {
    padding: 0 !important;
    border: none;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
    font-weight: normal;
    color: inherit;
    background: transparent;
    border-bottom: none;
    vertical-align: top;
}

/* Reset de .card dentro do FC */
.fc .card { border: none; box-shadow: none; border-radius: 0; }

/* Reset .btn dentro do FC */
.fc .fc-button {
    border-radius: 6px !important;
    font-weight: 600;
    letter-spacing: 0;
    transition: none;
}
.fc .fc-button-primary {
    background: var(--pc-primary);
    border-color: var(--pc-primary);
    box-shadow: none !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--pc-primary-dark);
    border-color: var(--pc-primary-dark);
}

/* Garantir que o header do FC (toolbar) nao quebre no mobile */
.fc .fc-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fc .fc-toolbar-title {
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .fc .fc-toolbar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .fc .fc-toolbar-chunk { display: flex; justify-content: center; }
    .fc .fc-toolbar-title { font-size: 1rem; text-align: center; }
    .fc .fc-button { padding: 0.4rem 0.7rem !important; font-size: 0.85rem !important; }
    .fc-direction-ltr .fc-button-group > .fc-button { border-radius: 6px !important; }
    .fc-direction-ltr .fc-button-group > .fc-button:not(:first-child) { margin-left: 4px !important; }
    /* Lista de eventos mobile mais compacta */
    .fc-list-day-cushion { padding: 0.6rem !important; font-size: 0.85rem !important; }
    .fc-list-event-time, .fc-list-event-title { padding: 0.5rem !important; font-size: 0.85rem !important; }
}

/* ===================== OFFCANVAS — nao afetado pelo CSS custom ===================== */
.offcanvas { z-index: 1045; }
.offcanvas-backdrop { z-index: 1040; }

/* ===================== LIGHTBOX (galeria fullscreen) ===================== */
.pc-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pcFadeIn 0.2s ease-out;
}
.pc-lightbox img {
    max-width: 95vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    animation: pcFadeIn 0.25s ease-out;
}
.pc-lightbox-close, .pc-lightbox-prev, .pc-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px; height: 48px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.pc-lightbox-close:hover, .pc-lightbox-prev:hover, .pc-lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}
.pc-lightbox-close { top: 16px; right: 16px; font-size: 2rem; }
.pc-lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.pc-lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.pc-lightbox-caption {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 80vw;
}
.pc-lightbox-caption:empty { display: none; }

img[data-pc-lightbox], a[data-pc-lightbox] { cursor: zoom-in; }

@media (max-width: 575.98px) {
    .pc-lightbox-prev, .pc-lightbox-next { width: 40px; height: 40px; font-size: 1.3rem; }
    .pc-lightbox-prev { left: 8px; }
    .pc-lightbox-next { right: 8px; }
    .pc-lightbox-close { top: 8px; right: 8px; }
}

/* ===================== AVATAR COM INICIAL ===================== */
.pc-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50%;
    flex-shrink: 0;
    user-select: none;
    letter-spacing: -0.02em;
    box-shadow: var(--pc-shadow-xs);
}

/* ===================== BOTÃO LOADING (submit em progresso) ===================== */
.pc-btn-loading {
    cursor: progress !important;
    opacity: .9;
    pointer-events: none;
}
button[disabled][aria-busy="true"] {
    cursor: progress;
}

/* ===================== FILTER PILLS (filtros de listagens) =====================
   Substituto do .btn-group btn-group-sm para filtros de status.
   No mobile vira scroll horizontal sem quebra; no desktop comporta-se como
   grupo normal e ocupa só a largura do conteúdo.
   Uso: <div class="pc-filter-pills"><a class="pc-pill is-active">...</a>...</div>
*/
.pc-filter-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px;
    margin: -2px;
}
.pc-filter-pills::-webkit-scrollbar { display: none; }
.pc-pill {
    flex: 0 0 auto;
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1.5px solid var(--pc-border);
    background: #fff;
    color: var(--pc-text-soft);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--pc-transition-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.pc-pill:hover {
    border-color: var(--pc-primary);
    color: var(--pc-primary);
}
.pc-pill.is-active {
    background: var(--pc-primary);
    color: #fff;
    border-color: var(--pc-primary);
    box-shadow: 0 4px 10px rgba(var(--pc-primary-rgb), .25);
}
.pc-pill.is-active:hover { color: #fff; }
.pc-pill .badge { font-size: .68rem; padding: .2em .5em; }
@media (min-width: 768px) {
    .pc-pill { font-size: .85rem; padding: .45rem 1rem; }
}

/* ===================== BOTTOM NAV (mobile) ===================== */
.pc-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--pc-border-soft);
    z-index: 1020;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    padding: 0.4rem 0;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
}
.pc-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    max-width: 100%;
}
.pc-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.4rem 0.25rem;
    color: var(--pc-text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
    transition: color .25s ease, transform .15s ease;
}
.pc-bottom-nav a:active { transform: scale(.92); }
.pc-bottom-nav a i {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pc-bottom-nav a.active {
    color: var(--pc-primary);
}
/* Icon "ressalta" suavemente quando ativo */
.pc-bottom-nav a.active i {
    transform: translateY(-2px) scale(1.12);
}
/* Pill animado por trás do icon ativo (em vez de barra reta no topo) */
.pc-bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 36px;
    height: 32px;
    background: rgba(var(--pc-primary-rgb), .12);
    border-radius: 14px;
    transform: translateX(-50%);
    z-index: 0;
    animation: pcNavPill .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pc-bottom-nav a.active i,
.pc-bottom-nav a.active span { position: relative; z-index: 1; }
@keyframes pcNavPill {
    from { transform: translateX(-50%) scale(.4); opacity: 0; }
    to   { transform: translateX(-50%) scale(1);  opacity: 1; }
}
.pc-bottom-nav .pc-bottom-badge {
    position: absolute;
    top: 2px;
    right: 28%;
    min-width: 18px;
    height: 18px;
    background: #dc3545;
    color: #fff;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
}

@media (max-width: 991.98px) {
    .pc-bottom-nav { display: block; }
    .pc-content { padding-bottom: 70px; } /* espaco para bottom nav */
}

/* ===================== TOAST (notif inline) ===================== */
.pc-toast-success { border-left: 4px solid #198754 !important; }
.pc-toast-danger  { border-left: 4px solid #dc3545 !important; }
.pc-toast-warning { border-left: 4px solid #ffc107 !important; }
.pc-toast-info    { border-left: 4px solid #0dcaf0 !important; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.82rem;
}
.breadcrumb-item {
    color: var(--pc-text-muted);
}
.breadcrumb-item a {
    color: var(--pc-text-soft);
    transition: var(--pc-transition-sm);
}
.breadcrumb-item a:hover {
    color: var(--pc-primary);
    text-decoration: underline !important;
}
.breadcrumb-item.active {
    color: var(--pc-text);
    font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--pc-text-faint);
    content: '\203A'; /* › */
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.4rem;
}

/* ===================== STICKY ACTIONS (mobile, forms longos) ===================== */
.pc-sticky-actions {
    /* Desktop: comportamento normal */
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    /* Sticky em vez de fixed: nao move quando o teclado virtual abre/fecha
       e nao cobre conteudo enquanto o form ainda tem espaco para mostrar. */
    .pc-sticky-actions {
        position: sticky;
        bottom: calc(var(--pc-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px));
        z-index: 1010;
        background: rgba(255,255,255,0.97);
        backdrop-filter: saturate(180%) blur(14px);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        margin: 1.25rem -0.85rem 0;
        padding: 0.85rem 1rem;
        border-top: 1px solid var(--pc-border-soft);
        box-shadow: 0 -6px 18px rgba(0,0,0,0.05);
        gap: 0.6rem;
    }
    .pc-sticky-actions .btn {
        flex: 1;
        min-width: 0;
        min-height: 44px;
    }
    body { padding-bottom: env(safe-area-inset-bottom, 0px); }

    /* Quando nao tem bottom-nav, sticky-actions fica colado no fundo */
    body:not(.pc-has-bottom-nav) .pc-sticky-actions {
        bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* ===================== CHARTS (dashboard) ===================== */
.pc-chart-card {
    border: 1px solid var(--pc-border-soft);
    border-radius: var(--pc-radius);
    background: var(--pc-surface);
    padding: 1rem;
    box-shadow: var(--pc-shadow-xs);
    transition: var(--pc-transition);
}
.pc-chart-card:hover {
    box-shadow: var(--pc-shadow-md);
    transform: translateY(-2px);
}
.pc-chart-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pc-text-muted);
    margin-bottom: 0.75rem;
}
.pc-chart-canvas {
    position: relative;
    height: 180px;
}
@media (max-width: 575.98px) {
    .pc-chart-canvas { height: 160px; }
}

/* ============================================================
   MOBILE UX OVERHAUL (<= 767px)
   - Page header reorganizado, cards full-bleed, filters,
     touch feedback, bottom-nav balanceado, etc.
   ============================================================ */
@media (max-width: 767.98px) {
    /* container vertical mais compacto */
    .container-fluid {
        padding-left: .85rem !important;
        padding-right: .85rem !important;
    }

    /* ---- TOPBAR mobile slim ---- */
    .pc-topbar { padding: 0 .75rem; gap: .35rem; }
    .pc-topbar .pc-logo { width: 34px; height: 34px; border-radius: 8px; }
    .pc-topbar .btn-icon,
    .pc-topbar .pc-sidebar-toggle {
        width: 38px; height: 38px;
        display: inline-flex; align-items: center; justify-content: center;
        padding: 0;
    }
    /* esconder selector de condominio quando houver pouco espaco - ja tem d-md-block */

    /* ---- PAGE HEADER (titulo + acoes) reorganizado ---- */
    /* O wrapper original eh um d-flex flex-wrap align-items-center justify-content-between gap-2.
       No mobile a gente quer o titulo ocupando 100% e as acoes embaixo, com botoes maiores. */
    main > .container-fluid > .d-flex.flex-wrap.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: .65rem !important;
        margin-bottom: 1rem !important;
    }
    main > .container-fluid > .d-flex.flex-wrap.align-items-center.justify-content-between > h1 {
        font-size: 1.35rem !important;
        line-height: 1.2;
        padding-right: .25rem;
    }
    main > .container-fluid > .d-flex.flex-wrap.align-items-center.justify-content-between > div.d-flex {
        width: 100%;
        gap: .5rem !important;
    }
    /* botoes do pageActions ocupam o espaco proporcionalmente */
    main > .container-fluid > .d-flex.flex-wrap.align-items-center.justify-content-between > div.d-flex > .btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: .65rem .9rem;
        font-size: .9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* nunca mais de 2 botoes principais por linha — o resto quebra */
    main > .container-fluid > .d-flex.flex-wrap.align-items-center.justify-content-between > div.d-flex > .btn:nth-child(n+3) {
        flex-basis: 100%;
    }

    /* ---- CARDS ---- */
    .card { border-radius: 14px; }
    .card-body { padding: 1rem !important; }
    .card-body.p-3, .card-body.p-md-4 { padding: .9rem !important; }
    .card-body.p-4 { padding: 1.1rem !important; }
    /* IMPORTANTE: nao colocar overflow:hidden em .card global porque
       quebra position:sticky dentro de cards (sticky-actions, etc).
       Use .pc-clip nas cards que precisam ocultar imagens overflow. */
    .pc-clip { overflow: hidden; }

    /* ---- FILTROS (rows com label + select) ---- */
    .card-body .d-flex.flex-wrap.align-items-center,
    .card-body .d-flex.align-items-center {
        gap: .5rem !important;
    }
    /* labels com letras maiusculas em cards de filtro recolhem para cima do controle */
    .card-body label.form-label.small.fw-semibold.text-muted.m-0 {
        flex-basis: 100%;
        margin: 0 0 .15rem 0 !important;
        font-size: .72rem !important;
        letter-spacing: .04em;
    }
    .card-body .form-select,
    .card-body .form-control {
        max-width: 100% !important;
        width: 100%;
        font-size: .95rem;
    }

    /* ---- TABS scrollaveis (Bootstrap nav-pills/nav-tabs) ---- */
    .nav-pills, .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        margin: 0 -.85rem;
        padding: 0 .85rem;
    }
    .nav-pills::-webkit-scrollbar,
    .nav-tabs::-webkit-scrollbar { display: none; }
    .nav-pills .nav-item, .nav-tabs .nav-item { flex: 0 0 auto; }
    .nav-pills .nav-link, .nav-tabs .nav-link { white-space: nowrap; padding: .55rem 1rem; }

    /* ---- BOTAOES com largura confortavel ---- */
    .btn { min-height: 42px; }
    .btn-sm { min-height: 36px; }
    /* tap feedback */
    .btn:active { transform: scale(.97); }

    /* ---- TABELAS responsivas, fallback para listas ---- */
    .table-responsive { border-radius: 12px; }
    .table { font-size: .9rem; }
    .table th, .table td { padding: .65rem .5rem; }

    /* ---- FORMS ---- */
    .form-control, .form-select {
        font-size: 1rem !important; /* >=16px para iOS nao dar zoom */
        padding: .7rem .85rem;
        border-radius: 10px;
    }
    .form-label { font-size: .82rem; margin-bottom: .35rem; }
    textarea.form-control { min-height: 100px; }

    /* ---- BREADCRUMB ja escondido por d-md-block, mantemos ---- */

    /* ---- MODAIS em mobile: bottom-sheet ---- */
    .modal-dialog:not(.modal-fullscreen):not(.modal-sm) {
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
    }
    .modal-dialog:not(.modal-fullscreen):not(.modal-sm) .modal-content {
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-height: 92vh;
        animation: pcSheetUp .35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .modal-dialog:not(.modal-fullscreen):not(.modal-sm) .modal-content::before {
        content: '';
        position: absolute;
        top: 8px; left: 50%;
        transform: translateX(-50%);
        width: 36px; height: 4px;
        background: rgba(15, 23, 42, .2);
        border-radius: 4px;
        z-index: 2;
    }
    .modal-dialog:not(.modal-fullscreen):not(.modal-sm) .modal-header {
        padding-top: 1.5rem;  /* espaco pro grab handle */
    }
    .modal-dialog:not(.modal-fullscreen):not(.modal-sm) .modal-body {
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }
    .modal-dialog.modal-sm {
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
        align-items: center;
        min-height: 100vh;
        display: flex;
        justify-content: center;
    }
    .modal-dialog.modal-sm .modal-content {
        animation: pcSheetCenter .25s cubic-bezier(0.34, 1.56, 0.64, 1);
        border-radius: 18px;
    }
}
@keyframes pcSheetUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes pcSheetCenter {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
@media (max-width: 767.98px) {

    /* ---- OFFCANVAS (sidebar) ja gerenciado pelo Bootstrap ---- */
    .offcanvas-start { max-width: 88vw; }

    /* ---- BOTTOM NAV: garantir 5 itens em 360px+ ---- */
    .pc-bottom-nav a {
        font-size: .65rem;
        padding: .4rem .15rem;
        min-width: 0;
    }
    .pc-bottom-nav a i { font-size: 1.1rem; }

    /* ---- EMPTY STATE ---- */
    .pc-empty-state {
        padding: 2.5rem 1rem !important;
    }
    .pc-empty-state i {
        font-size: 2.5rem !important;
    }

    /* ---- ALERTS / TOAST ---- */
    .alert {
        border-radius: 12px;
        padding: .8rem 1rem;
        font-size: .92rem;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        line-height: 1.45;
    }
    .alert .fas, .alert .fab, .alert .far { flex-shrink: 0; }

    /* ---- DASHBOARD: stats e charts ---- */
    /* Cards de mini-charts viram 1 coluna em telas <420px */
}

@media (max-width: 419.98px) {
    /* telas muito estreitas (iPhone SE 1st gen ~320, Galaxy small) */

    /* Dashboard: força 1 coluna nos cards de chart */
    .pc-dash-grid,
    .row.g-3.row-cols-1.row-cols-md-2 .col,
    .pc-chart-card-wrapper {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100%;
    }

    /* Botoes grandes no header de pagina ficam empilhados */
    main > .container-fluid > .d-flex.flex-wrap.align-items-center.justify-content-between > div.d-flex > .btn {
        flex-basis: 100%;
    }

    /* Bottom nav: enxuga labels em telas minusculas */
    .pc-bottom-nav a {
        font-size: .6rem;
        padding: .4rem .1rem;
    }
}

/* ============================================================
   ANIMATIONS / MICRO-INTERACTIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .card { transition: box-shadow .2s ease, transform .15s ease; }
    .btn:not(:disabled):active { transform: translateY(1px); }
    .pc-bottom-nav a { transition: color .15s ease; }
}

/* ============================================================
   TYPOGRAPHY HARDENING - texto longo nunca quebra layout
   ============================================================ */
.card-title, .card h2, .card h3, .card h4, .card h5 {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero "Bom dia" card respeita largura */
.pc-greeting, .alert.bg-primary, .alert.bg-warning, .alert.bg-success {
    overflow-wrap: anywhere;
}

/* ============================================================
   LIST CARDS — feedback de toque + sutil hover (mobile-first)
   ============================================================ */
.card.pc-mural-card,
.card.pc-tap-card {
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.pc-mural-card:active,
.card.pc-tap-card:active {
    transform: scale(.985);
}
@media (max-width: 767.98px) {
    .card:active { transform: scale(.985); }
}

/* Linha do morador (autor) com avatar + nome */
.pc-author-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--pc-text-muted);
    min-width: 0;
    flex: 1;
}
.pc-author-row > * { min-width: 0; }
.pc-author-row .pc-author-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   FAB (Floating Action Button) — opcional para modulos
   Uso: <a href="..." class="pc-fab" aria-label="Nova"><i class="fas fa-plus"></i></a>
   ============================================================ */
.pc-fab {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + var(--pc-bottom-nav-h, 64px));
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pc-primary), #6366f1);
    color: #fff !important;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 12px 32px rgba(79, 70, 229, .45);
    z-index: 990;
    text-decoration: none;
    transition: transform .15s ease;
}
.pc-fab:active { transform: scale(.94); }
.pc-fab:hover { color: #fff; }
@media (max-width: 767.98px) {
    .pc-fab { display: inline-flex; }
}

/* =====================================================
   PERFIL — design mobile-first com banner + cards
   ===================================================== */
#perfilForm { max-width: 720px; margin: 0 auto; padding-bottom: 1rem; }

.pc-perfil-hero {
    position: relative;
    text-align: center;
    margin: -16px -16px 1rem;
    padding-bottom: 1.25rem;
}
.pc-perfil-banner {
    height: 140px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}
.pc-perfil-avatar-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    margin: -76px auto 0;
}
.pc-perfil-avatar {
    width: 132px; height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,.15);
    background: #fff;
}
.pc-perfil-camera {
    position: absolute;
    right: 4px; bottom: 4px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
    cursor: pointer;
    border: 2.5px solid #fff;
    transition: transform .15s ease;
}
.pc-perfil-camera:hover { transform: scale(1.06); }
.pc-perfil-camera:active { transform: scale(.95); }
.pc-perfil-nome {
    margin: 1rem auto 4px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a2236;
    letter-spacing: -.02em;
    padding: 0 1rem;
}
.pc-perfil-badge {
    display: inline-block;
    color: #2563eb;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.pc-perfil-remover-foto {
    display: block;
    margin-top: .65rem;
    font-size: .8rem;
    color: #94a3b8;
    cursor: pointer;
}
.pc-perfil-remover-foto input { vertical-align: middle; margin-right: 4px; }

.pc-perfil-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    border: 1px solid #eef1f7;
}
.pc-perfil-card-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
}
.pc-perfil-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2236;
    letter-spacing: -.01em;
}
.pc-perfil-card-ic {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    color: #fff;
    flex-shrink: 0;
}
.pc-perfil-card-ic--info     { background: #2563eb; }
.pc-perfil-card-ic--edit     { background: #7c3aed; }
.pc-perfil-card-ic--security { background: #2563eb; }
.pc-perfil-card-ic--clock    { background: #f59e0b; }

.pc-perfil-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}
.pc-perfil-info-cell {
    background: #f4f6fb;
    border-radius: 12px;
    padding: .9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pc-perfil-info-cell--full {
    grid-column: 1 / -1;
    margin-top: .65rem;
}
.pc-perfil-info-cell .lbl {
    font-size: .82rem;
    color: #6b7591;
    font-weight: 500;
}
.pc-perfil-info-cell strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2236;
    word-break: break-word;
}
.pc-perfil-info-cell--full strong { font-size: 1rem; }

.pc-perfil-fields {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-bottom: 1rem;
}
.pc-perfil-field label {
    display: block;
    font-size: .78rem;
    color: #6b7591;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: .02em;
}
.pc-perfil-field .form-control {
    background: #f4f6fb;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: .85rem 1rem;
    font-weight: 600;
    color: #1a2236;
    font-size: 1rem;
}
.pc-perfil-field .form-control:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.pc-perfil-desc {
    color: #6b7591;
    font-size: .94rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}
.pc-perfil-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    background: #fff;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    padding: .9rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.pc-perfil-action:hover,
.pc-perfil-action:active {
    background: #2563eb;
    color: #fff;
}
.pc-perfil-action--light {
    border-color: #f59e0b;
    color: #d97706;
}
.pc-perfil-action--light:hover,
.pc-perfil-action--light:active {
    background: #f59e0b;
    color: #fff;
}

.pc-perfil-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: 1rem;
}
.pc-perfil-meta > div {
    background: #f4f6fb;
    border-radius: 12px;
    padding: .75rem .9rem;
}
.pc-perfil-meta .lbl {
    display: block;
    font-size: .75rem;
    color: #6b7591;
    margin-bottom: 2px;
}
.pc-perfil-meta strong {
    font-size: .92rem;
    color: #1a2236;
    font-weight: 700;
}

@media (min-width: 768px) {
    #perfilForm { max-width: 880px; }
    .pc-perfil-hero {
        margin-left: 0;
        margin-right: 0;
        border-radius: 20px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 3px rgba(15,23,42,.06);
        border: 1px solid #eef1f7;
    }
    .pc-perfil-banner {
        border-radius: 0;
        height: 160px;
    }
    .pc-perfil-nome { font-size: 1.65rem; }
}

/* =====================================================
   CALENDARIO MOBILE CUSTOM (modulo reservas)
   ===================================================== */
.pc-mcal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    padding: 1rem .5rem;
    margin-bottom: 80px;
    max-width: 100%;
    overflow: hidden;
}
.pc-mcal-grid, .pc-mcal-weekdays {
    width: 100%;
    max-width: 100%;
}
.pc-mcal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}
.pc-mcal-nav {
    background: transparent;
    border: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: #475569;
    font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.pc-mcal-nav:active { background: #f1f5f9; }
.pc-mcal-title {
    flex: 1;
    background: transparent;
    border: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #1a2236;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.pc-mcal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: .25rem 0;
    gap: 4px;
}
.pc-mcal-weekdays span {
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    color: #94a3b8;
    padding: .5rem 0;
    position: relative;
}
.pc-mcal-weekdays span::after { display: none; }
.pc-mcal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.pc-mcal-day {
    background: transparent;
    border: 0;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    font-weight: 500;
    font-size: .98rem;
    color: #1a2236;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.pc-mcal-day.is-outside { color: #cbd5e1; }
.pc-mcal-day:active { transform: scale(.92); }
.pc-mcal-day.has-events {
    background: #f59e0b;
    color: #fff;
    font-weight: 600;
}
.pc-mcal-day.has-events.is-outside { background: #fde68a; color: #fff; }
.pc-mcal-day.is-selected {
    background: #1a2236;
    color: #fff;
    font-weight: 700;
}
.pc-mcal-day.has-events.is-selected {
    background: #1a2236;
    box-shadow: 0 0 0 3px #f59e0b inset;
}

/* Esconde grade de dias quando o picker de mês está aberto */
.pc-mcal-grid.is-hidden,
.pc-mcal-weekdays.is-hidden {
    display: none;
}
.pc-mcal-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem .5rem;
    padding: 1.5rem .5rem;
    /* Ocupa o lugar da grade de dias (~6 linhas * 50px + gaps) */
    min-height: 320px;
    align-content: center;
    animation: pcMcalFade .2s ease;
}
@keyframes pcMcalFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pc-mcal-months button {
    background: transparent;
    border: 0;
    padding: .65rem .5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1a2236;
    border-radius: 24px;
    cursor: pointer;
    letter-spacing: .04em;
    transition: background .15s ease;
}
.pc-mcal-months button:active { background: #f1f5f9; }
.pc-mcal-months button.is-active {
    border: 1.5px solid #1a2236;
    color: #1a2236;
}

.pc-mcal-summary {
    margin-top: 1rem;
    background: #f1f4fb;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .92rem;
    color: #475569;
    font-weight: 500;
}

.pc-mcal-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .5rem;
}
.pc-mcal-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: start;
    gap: .75rem;
    padding: 1rem .25rem;
    border: 0;
    background: transparent;
    border-bottom: 1px solid #eef1f7;
    text-align: left;
    width: 100%;
    cursor: pointer;
}
.pc-mcal-item:last-child { border-bottom: 0; }
.pc-mcal-item:active { background: #f8fafc; }
.pc-mcal-item-ic {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    background: rgba(79,70,229,.1);
    color: #4f46e5;
}
.pc-mcal-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pc-mcal-item-body strong {
    font-size: .98rem;
    font-weight: 600;
    color: #1a2236;
    line-height: 1.25;
}
.pc-mcal-item-body small {
    color: #94a3b8;
    font-size: .8rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pc-mcal-item-time {
    font-size: .82rem;
    color: #94a3b8;
    white-space: nowrap;
    align-self: end;
}

.pc-mcal-cta {
    position: fixed;
    left: 1rem; right: 1rem;
    bottom: calc(1rem + var(--pc-bottom-nav-h, 64px));
    background: #f59e0b;
    color: #fff !important;
    text-align: center;
    padding: 1rem;
    border-radius: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .95rem;
    box-shadow: 0 12px 32px rgba(245,158,11,.4);
    z-index: 990;
    text-decoration: none;
}
.pc-mcal-cta:active { transform: translateY(1px); }
@media (min-width: 992px) {
    .pc-mcal-cta { display: none; }
}

/* ============================================================
   LOADING SKELETONS (shimmer effect)
   Uso:
     <div class="pc-skeleton pc-skel-line"></div>
     <div class="pc-skeleton pc-skel-card"></div>
     <div class="pc-skeleton-card"> <!-- card pre-montado --> </div>
   ============================================================ */
.pc-skeleton {
    background: linear-gradient(90deg,
        rgba(15,23,42,.06) 25%,
        rgba(15,23,42,.12) 50%,
        rgba(15,23,42,.06) 75%);
    background-size: 200% 100%;
    animation: pcShimmer 1.2s ease-in-out infinite;
    border-radius: 8px;
    display: block;
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}
@keyframes pcShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.pc-skel-line       { height: 14px; margin: 6px 0; }
.pc-skel-line-sm    { height: 10px; margin: 4px 0; width: 60%; }
.pc-skel-line-lg    { height: 20px; margin: 8px 0; }
.pc-skel-circle     { border-radius: 50%; width: 48px; height: 48px; }
.pc-skel-rect       { height: 120px; }
.pc-skel-thumb      { height: 180px; border-radius: 12px; }
.pc-skel-button     { height: 38px; width: 140px; border-radius: 10px; }

/* Pre-montado: card de lista com avatar + 2 linhas */
.pc-skeleton-card {
    background: #fff;
    border: 1px solid var(--pc-border-soft);
    border-radius: var(--pc-radius);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.pc-skeleton-card .ic {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(15,23,42,.06) 25%, rgba(15,23,42,.12) 50%, rgba(15,23,42,.06) 75%);
    background-size: 200% 100%;
    animation: pcShimmer 1.2s ease-in-out infinite;
}
.pc-skeleton-card .body { flex: 1; min-width: 0; }
.pc-skeleton-card .body .l1,
.pc-skeleton-card .body .l2 {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(15,23,42,.06) 25%, rgba(15,23,42,.12) 50%, rgba(15,23,42,.06) 75%);
    background-size: 200% 100%;
    animation: pcShimmer 1.2s ease-in-out infinite;
}
.pc-skeleton-card .body .l1 { width: 60%; margin-bottom: 8px; }
.pc-skeleton-card .body .l2 { width: 90%; height: 10px; }

@media (prefers-reduced-motion: reduce) {
    .pc-skeleton, .pc-skeleton-card .ic, .pc-skeleton-card .body .l1, .pc-skeleton-card .body .l2 {
        animation: none;
        background: rgba(15,23,42,.08);
    }
}

/* ============================================================
   EMPTY STATES — versão polida com SVG
   Mantem compat com .pc-empty-state existente
   ============================================================ */
.pc-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--pc-text-muted);
}
.pc-empty-state .pc-empty-illust {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    opacity: .85;
}
.pc-empty-state h4,
.pc-empty-state .pc-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pc-text);
    margin: 0 0 .35rem;
    letter-spacing: -.01em;
}
.pc-empty-state p {
    font-size: .95rem;
    margin: 0 auto;
    max-width: 380px;
    line-height: 1.55;
}
.pc-empty-state .btn { margin-top: 1.25rem; }
/* Compat: para empty states antigos usando apenas <i> + <p> */
.pc-empty-state i.fa-3x,
.pc-empty-state i.fas,
.pc-empty-state i.far {
    font-size: 3rem;
    color: var(--pc-text-faint);
    margin-bottom: 1rem;
    display: block;
}

/* ============================================================
   FOCO VISIVEL — Acessibilidade (WCAG 2.4.7)
   Tudo que recebe foco via teclado mostra ring claro.
   :focus-visible nao ativa em clique de mouse — UX equilibrada.
   ============================================================ */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--pc-primary);
    outline-offset: 2px;
    border-radius: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--pc-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .15);
}
/* Form controls ja tem box-shadow no :focus do Bootstrap — preserva  */
.form-control:focus-visible,
.form-select:focus-visible {
    outline: none;
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .2);
}
/* Botoes outline / light tem fundo claro — usa um ring mais escuro */
.btn-outline-primary:focus-visible,
.btn-outline-secondary:focus-visible,
.btn-light:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .25);
}
.btn-danger:focus-visible,
.btn-outline-danger:focus-visible {
    outline-color: #b91c1c;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .25);
}

/* Contraste melhorado: alguns cinzas estavam abaixo de 4.5:1 (WCAG AA).
   Apenas em texto secundario, nao afeta layout. */
.text-muted, .small.text-muted {
    color: #4a5568 !important; /* antes #94a3b8 (3:1 = falha AA) */
}
.text-faint, small.fst-italic {
    color: #64748b; /* min 4.51:1 contra branco */
}

/* ============================================================
   ONBOARDING TOUR
   ============================================================ */
.pc-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: transparent;
    pointer-events: none;
    animation: pcTourFade .25s ease;
}
@keyframes pcTourFade { from { opacity: 0; } to { opacity: 1; } }

.pc-tour-hole {
    position: fixed;
    border-radius: 12px;
    box-shadow:
        0 0 0 9999px rgba(15, 23, 42, .65),
        0 0 0 4px rgba(79, 70, 229, .35);
    transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.pc-tour-card {
    position: fixed;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .35);
    pointer-events: auto;
    transition: top .3s ease, left .3s ease;
    animation: pcTourCard .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pcTourCard {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
.pc-tour-progress {
    height: 4px;
    background: var(--pc-border-soft);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}
.pc-tour-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pc-primary), #7c3aed);
    transition: width .4s ease;
    width: 0;
}
.pc-tour-title {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pc-text);
}
.pc-tour-text {
    margin: 0 0 1rem;
    font-size: .92rem;
    color: var(--pc-text-soft);
    line-height: 1.45;
}
.pc-tour-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pc-tour-count {
    font-size: .78rem;
    color: var(--pc-text-muted);
    font-weight: 600;
}
.pc-tour-actions { display: flex; gap: .4rem; }

@media (max-width: 575px) {
    .pc-tour-card { width: calc(100vw - 32px); }
}

