@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400..800&display=swap');

:root {
    /* Superfícies & Fundo */
    --bg: #f8f6f0;
    --surface: #ffffff;
    --surface-2: #f2eee5;
    --surface-soft: #ede8dc;
    --surface-subtle: #fbf9f5;

    /* Bordas */
    --border: #e2ddd2;
    --border-subtle: #ece7dc;
    --line: #e2ddd2;

    /* Tipografia & Contraste */
    --text: #16241f;
    --text-muted: #5e6d65;
    --text-subtle: #8a968f;
    --ink: var(--text);
    --muted: var(--text-muted);
    --paper: var(--bg);

    /* Identidade & Acentos */
    --brand: #132e25;
    --brand-hover: #1c4236;
    --brand-contrast: #ffffff;
    --accent: #b88242;
    --accent-dark: #132e25;
    --accent-soft: #ede8dc;
    --warm: #b88242;
    --brand-primary: #132e25;
    --brand-secondary: #b88242;

    /* Status Semânticos */
    --success: #1b6644;
    --success-bg: #eaf5ee;
    --success-border: #c4e4d0;
    --warning: #8f5a11;
    --warning-bg: #fcf4e8;
    --warning-border: #f3debd;
    --danger: #963228;
    --danger-bg: #fdf0ef;
    --danger-border: #f6cbca;

    /* Sombras refinadas em 2 camadas (SaaS moderno) */
    --shadow-xs: 0 1px 2px rgba(19, 46, 37, 0.04);
    --shadow-sm: 0 1px 3px rgba(19, 46, 37, 0.05), 0 4px 12px rgba(19, 46, 37, 0.03);
    --shadow-md: 0 2px 6px rgba(19, 46, 37, 0.06), 0 8px 24px rgba(19, 46, 37, 0.05);
    --shadow: var(--shadow-sm);
    --shadow-lift: var(--shadow-md);

    /* Raios de Borda */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius: var(--radius-md);
    --radius-pill: 9999px;

    /* Transições */
    --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur-fast: 150ms;
    --dur: 200ms;
    --dur-slow: 350ms;
}

@keyframes fade-in-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(2%, -3%, 0) scale(1.04); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% -10%, rgba(27, 94, 60, 0.035) 0%, transparent 60%);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

main { min-height: calc(100vh - 64px); }

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -0.01em;
}
h1 { margin: 6px 0 10px; font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 700; }
h2 { margin: 0 0 8px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 600; }
h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
p { margin-top: 0; }

.muted { color: var(--text-muted); }
.eyebrow {
    margin: 0 0 4px;
    color: var(--brand);
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Cabeçalho Limpo e Fixo com Blur Refinado */
.site-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, 5vw);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 40;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition); }
.brand-mark svg { display: block; }
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-word { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700; }
.brand-word .brand-accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a, .text-link, .back-link {
    position: relative;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}
.site-nav a:hover, .text-link:hover, .back-link:hover { color: var(--brand); }
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition);
}
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }

/* Botões Padronizados (Alvos >= 44px e Estilos Consistentes) */
.button {
    display: inline-flex;
    min-height: 44px;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: 600 0.88rem 'Manrope', sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button-primary {
    color: var(--brand-contrast);
    background: var(--brand);
    box-shadow: 0 1px 3px rgba(19, 46, 37, 0.16);
}
.button-primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 4px 12px rgba(19, 46, 37, 0.22);
}
.button-secondary {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border);
}
.button-secondary:hover {
    background: var(--border-subtle);
    border-color: #d8d2c5;
}
.button-quiet {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}
.button-quiet:hover {
    background: var(--surface-2);
    border-color: #cfc9be;
}
.button-danger {
    color: #ffffff;
    background: var(--danger);
}
.button-danger:hover {
    background: #802a22;
}
.button-small {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}
.button-whatsapp {
    color: #14532d;
    background: #dcfce7;
    border-color: #bbf7d0;
}
.button-whatsapp:hover {
    background: #bbf7d0;
}
.icon-inline {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.admin-shell, .public-shell { max-width: 1120px; margin: 0 auto; padding: 48px 24px; }
.narrow-shell, .narrow-public { max-width: 760px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading h1 { margin-bottom: 6px; }
.compact-heading { align-items: center; }
.form-panel { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stack-form p { margin: 0 0 20px; }
.stack-form label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .86rem; font-weight: 700; }
.stack-form input:not([type='checkbox']), .stack-form textarea, .stack-form select, .date-picker input, .booking-form select { width: 100%; padding: 12px 13px; color: var(--ink); background: #fbfdf7; border: 1px solid #c7c2ad; border-radius: 5px; font: 400 .96rem 'Manrope', sans-serif; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.stack-form input:not([type='checkbox']):focus, .stack-form textarea:focus, .stack-form select:focus, .date-picker input:focus, .booking-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.stack-form textarea { resize: vertical; }
.stack-form input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--accent-dark); }
.helptext, .stack-form .helptext { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; }
.errorlist { margin: 6px 0 10px; padding: 0; color: var(--danger); list-style: none; font-size: .84rem; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: var(--muted); background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 4px; font-size: .86rem; }
.notice span { font-weight: 700; }
.notice p { margin: 0; }
.whatsapp-status { margin-bottom: 16px; }
.message-list { display: grid; gap: 8px; margin-bottom: 16px; }
.notice-error { color: var(--danger); background: #f9e9e7; border-left-color: var(--danger); }
.notice-success { color: #166534; background: #dcfce7; border-left-color: #22c55e; }
.notice-connected { color: #14532d; background: #eefbf1; border-left-color: #16a34a; }
.whatsapp-status-card { margin-bottom: 20px; align-items: center; }
.status-indicator { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.dot-yellow { background: #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, .25); }
.dot-red { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.dot-gray { background: #9ca3af; box-shadow: 0 0 0 3px rgba(156, 163, 175, .25); }
.radar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); display: inline-block; animation: radar-pulse 1.4s ease-in-out infinite; }
@keyframes radar-pulse { 0% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.5); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.7; } }
.validation-action { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
/* ==============================================================================
   Painel / Dashboard (SaaS 2026)
   ============================================================================== */
.dashboard-shell { max-width: 1140px; padding: 36px 24px 64px; }
.dashboard-shell .page-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 28px;
}
.heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Faixa de Atenção Operacional (Hoje no Negócio) */
.action-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    margin-bottom: 24px;
}
.action-banner.warning {
    background: #fdfaf4;
    border-color: #ebdcb9;
}
.action-banner-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.action-banner-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #faecd0;
    color: var(--warning);
    flex-shrink: 0;
}
.action-banner-text { font-size: 0.88rem; color: var(--text); }
.action-banner-text strong { color: #5a3809; }
.action-banner-text p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.82rem; }

/* Notificações */
.notification-panel { margin-bottom: 28px; }
.notification-panel .section-heading { margin-bottom: 12px; }
.notification-panel h2 { font-size: 1.35rem; }
.notification-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition);
}
.notification-item:hover { border-color: #cfc8ba; }
.notification-unread { border-left: 3px solid var(--brand); }
.notification-content { display: flex; align-items: center; gap: 12px; min-width: 0; }
.notification-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.notification-item strong { font-size: 0.88rem; color: var(--text); }
.notification-item p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.82rem; }
.notification-item time { flex: 0 0 auto; color: var(--text-subtle); font-size: 0.76rem; font-weight: 500; }

/* Indicadores Financeiros & Operacionais */
.dashboard-finance { margin-bottom: 32px; }
.dashboard-finance .section-heading { margin-bottom: 14px; }
.finance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.finance-card {
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.finance-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #d3ccc0;
}
.finance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.finance-card-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.finance-card-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--brand);
}
.finance-card-value {
    margin: 4px 0 2px;
    color: var(--text);
    font: 700 clamp(1.4rem, 2vw, 1.75rem) 'Manrope', sans-serif;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.finance-card-sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* Ações Rápidas (Compactas e Funcionais, Sem Visual de Landing Page) */
.quick-actions-section { margin-bottom: 32px; }
.quick-actions-section .section-heading { margin-bottom: 14px; }
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.quick-action-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    background: var(--surface, #ffffff) !important;
    border: 1px solid var(--border, #e2e8f0) !important;
    border-radius: var(--radius-lg, 14px) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
    color: var(--text, #0f172a) !important;
    transition: transform var(--transition, 0.18s ease), border-color var(--transition, 0.18s ease), box-shadow var(--transition, 0.18s ease) !important;
    cursor: pointer !important;
}
.quick-action-card:hover {
    transform: translateY(-2px) !important;
    border-color: var(--brand-primary, #087f82) !important;
    box-shadow: 0 8px 20px rgba(8, 127, 130, 0.12) !important;
}
.quick-action-card, .quick-action-card * {
    text-decoration: none !important;
}
.quick-action-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    background: rgba(8, 127, 130, 0.08) !important;
    color: var(--brand-primary, #087f82) !important;
    flex-shrink: 0 !important;
    transition: background var(--transition, 0.18s ease), color var(--transition, 0.18s ease) !important;
}
.quick-action-card:hover .quick-action-icon {
    background: var(--brand-primary, #087f82) !important;
    color: #ffffff !important;
}
.quick-action-body { flex: 1 !important; min-width: 0 !important; }
.quick-action-title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: var(--text, #0f172a) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin: 0 0 3px !important;
    text-decoration: none !important;
}
.quick-action-card:hover .quick-action-title span:first-child {
    color: var(--brand-primary, #087f82) !important;
}
.quick-action-desc {
    font-size: 0.82rem !important;
    color: var(--text-muted, #64748b) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-decoration: none !important;
}
.quick-action-badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
}
.quick-action-arrow {
    color: #94a3b8 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    transition: transform var(--transition, 0.18s ease), color var(--transition, 0.18s ease) !important;
}
.quick-action-card:hover .quick-action-arrow {
    color: var(--brand-primary, #087f82) !important;
    transform: translateX(4px) !important;
}

/* Fallback de compatibilidade para feature-card */
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { min-height: 180px; display: flex; flex-direction: column; padding: 22px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; box-shadow: var(--shadow-xs); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--brand); }
.feature-card-main { color: #fff; background: var(--brand); border-color: var(--brand); }
.feature-card-main .card-icon, .feature-card-main .card-link { color: #d7ede5; }
.card-icon { margin-bottom: auto; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.feature-card p { max-width: 330px; margin-bottom: 16px; color: var(--text-muted); font-size: 0.85rem; }
.feature-card-main p { color: #d7ece6; }
.card-link { color: var(--brand); font-size: .86rem; font-weight: 700; }

/* Histórico & Rankings */
.dashboard-insights { margin-bottom: 32px; }
.dashboard-insights .section-heading { margin-bottom: 14px; }
.dashboard-insights h2 { font-size: 1.35rem; }
.insights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.insight-panel { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.insight-panel h3 { margin-bottom: 14px; font-size: 1.15rem; }
.ranking-list { display: grid; gap: 8px; margin: 0; padding-left: 24px; }
.ranking-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list li::marker { color: var(--accent); font-weight: 700; }
.ranking-list span { display: grid; min-width: 0; }
.ranking-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; color: var(--text); }
.ranking-list small { color: var(--text-muted); font-size: .76rem; }
.ranking-list b { min-width: 28px; color: var(--brand); font: 700 1.15rem 'Manrope', sans-serif; text-align: right; font-variant-numeric: tabular-nums; }
.insight-empty { margin: 0; color: var(--text-muted); font-size: .86rem; }

/* Estados Vazios Estruturados (SaaS 2026) */
.empty-state-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    gap: 8px;
}
.empty-state-compact .empty-icon { color: var(--text-subtle); margin-bottom: 4px; }
.empty-state-compact .empty-title { font-weight: 700; font-size: 0.9rem; color: var(--text); margin: 0; }
.empty-state-compact .empty-desc { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 8px; max-width: 320px; line-height: 1.4; }

/* Rodapé do Painel Padronizado */
.dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.dashboard-footer form { margin: 0; }
.admin-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin-list-item { display: flex; min-height: 92px; align-items: center; gap: 22px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list-main { flex: 1; min-width: 0; }
.list-main h2 { display: inline; margin-right: 10px; font-size: 1.25rem; }
.list-main p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.list-main p.customer-history { margin-top: 4px; color: var(--accent-dark); font-size: .78rem; font-weight: 600; }
.list-actions { display: flex; align-items: center; gap: 14px; }
.list-actions form { margin: 0; }
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}
.status-pill svg {
    flex-shrink: 0;
}
.status-active, .status-pill.status-confirmed {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}
.status-pill.status-pending {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}
.status-pill.status-completed {
    color: #115e59;
    background: #f0fdfa;
    border-color: #99f6e4;
}
.status-muted, .status-pill.status-no_show, .status-pill.status-cancelled, .status-pill.status-expired {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.dot { color: #9aaba8; }
.employee-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}
.mini-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mini-stat:hover {
    box-shadow: var(--shadow-md);
}
.mini-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mini-stat span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mini-stat strong {
    color: var(--ink);
    font-size: 2rem;
    font-family: 'Manrope', sans-serif;
    line-height: 1.1;
}

/* Service Item & Employee Card */
.service-catalog-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-catalog-item:hover, .employee-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}
.service-item-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--accent-dark);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--warm) 18%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 12px;
}
.service-item-details {
    flex: 1;
    min-width: 0;
}
.service-item-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.service-item-headline h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}
.service-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: .86rem;
    color: var(--muted);
}
.service-price-badge {
    color: var(--accent-dark);
    font: 700 1.1rem 'Manrope', sans-serif;
}
.service-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.service-custom-form-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: color-mix(in srgb, var(--warm) 14%, transparent);
    color: var(--warm);
    border: 1px solid color-mix(in srgb, var(--warm) 24%, transparent);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
}

.employee-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.employee-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    color: var(--accent-dark);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--warm) 22%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    box-shadow: var(--shadow-sm);
}
.employee-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.employee-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.employee-headline h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}
.employee-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    font-size: .84rem;
    color: var(--muted);
}
.employee-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    color: var(--accent-dark);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
}
.employee-actions, .service-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.action-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: all var(--dur) var(--ease);
}
.action-link-pill:hover {
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    border-color: var(--border-hover);
    color: var(--accent-dark);
}
.card-list { display: grid; gap: 12px; margin-top: 24px; }
.soft-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.employee-detail-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 18px 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--warm) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-radius: var(--radius); }
.employee-detail-panel h2 { margin: 0; }
.employee-detail-panel p { margin: 8px 0 0; color: var(--muted); }
.form-panel .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-panel .field-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.empty-state {
    padding: 48px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent);
    margin-bottom: 16px;
}
.empty-state h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
}
.empty-state p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .92rem;
    max-width: 420px;
}

/* Agenda Toolbar */
.agenda-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.agenda-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.agenda-date-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.agenda-date-form label {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}
.agenda-date-form input[type="date"] {
    min-height: 40px;
    padding: 6px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 500;
    outline: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.agenda-date-form input[type="date"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.agenda-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Agenda Filters & View Switch */
.agenda-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}
.agenda-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--dur) var(--ease);
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
}
.filter-chip:hover {
    color: var(--ink);
    border-color: var(--border-hover);
    background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.filter-chip.active {
    background: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
    box-shadow: 0 1px 3px rgba(19, 46, 37, 0.15);
}
.filter-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    background: color-mix(in srgb, var(--warm) 25%, transparent);
    color: var(--warm);
}
.filter-chip.active .filter-chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.view-switch {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
    box-shadow: var(--shadow-sm);
}
.view-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    transition: all var(--dur) var(--ease);
}
.view-switch a.active {
    background: var(--accent-dark);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.view-switch a:hover:not(.active) {
    color: var(--ink);
    background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.view-switch a svg {
    flex-shrink: 0;
}

/* Timeline Grid (Grade Horária) */
.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.timeline-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
}
.timeline-hour {
    width: 64px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 12px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}
.timeline-slot {
    flex: 1;
    min-height: 62px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    justify-content: center;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.timeline-slot.has-appointments {
    border-left: 4px solid var(--accent);
    background: #ffffff;
}
.timeline-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: .84rem;
    padding: 4px 0;
}
.timeline-empty-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}
.timeline-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background var(--dur) var(--ease);
}
.timeline-empty-action:hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.timeline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #fbfaf7;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.timeline-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-hover);
}
.timeline-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.timeline-card-time-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    background: var(--accent-dark);
    color: #ffffff;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 700;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    min-width: 52px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(19, 46, 37, 0.15);
}
.timeline-card-info {
    min-width: 0;
}
.timeline-card-info strong {
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
}
.timeline-card-info .timeline-price {
    font-size: .84rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-left: 4px;
}
.timeline-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 3px 0 0;
    font-size: .8rem;
    color: var(--muted);
}
.timeline-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.timeline-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* Appointment List (Modo Lista) */
.appointment-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.appointment-item {
    display: grid;
    grid-template-columns: 105px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.appointment-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}
.appointment-time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 18px;
    border-right: 1px solid var(--line);
    min-width: 85px;
}
.appointment-time strong {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .02em;
}
.appointment-time span {
    color: var(--accent-dark);
    font: 700 1.5rem 'Manrope', sans-serif;
    line-height: 1.15;
    margin-top: 2px;
}
.appointment-item .list-main {
    min-width: 0;
}
.appointment-item .list-main h2 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.appointment-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: .84rem;
    color: var(--muted);
}
.appointment-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.customer-history-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 3px 9px;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent-dark);
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
}
.appointment-expiration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: .76rem;
    color: #92400e;
    font-weight: 600;
}
.appointment-side-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.appointment-status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inline-reject-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.inline-reject-input {
    min-height: 38px;
    padding: 6px 10px;
    font-size: .8rem;
    width: 120px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    outline: none;
    transition: border-color var(--dur) var(--ease);
}
.inline-reject-input:focus {
    border-color: var(--danger);
}
.hours-form { display: grid; gap: 14px; }
.day-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.day-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.day-heading > div:first-child { display: flex; align-items: center; gap: 13px; }
.day-heading h2 { margin: 0; font-size: 1.45rem; }
.day-number { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.closed-toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.closed-toggle input { width: 18px; height: 18px; accent-color: var(--accent-dark); }
.interval-row { display: flex; align-items: end; gap: 12px; padding: 12px 0; border-top: 1px solid #e8eeeb; }
.interval-row label { flex: 1; color: var(--muted); font-size: .78rem; font-weight: 700; }
.interval-row input { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #b9cbc5; border-radius: 4px; font: inherit; }
.interval-row .remove-interval { min-height: 38px; padding: 7px 10px; color: var(--danger); background: transparent; border: 1px solid #e2c4c0; border-radius: 4px; font: 600 .78rem 'Manrope', sans-serif; cursor: pointer; }
.hours-group > .add-interval { margin-top: 7px; }
.auth-layout { position: relative; display: grid; min-height: calc(100vh - 72px); grid-template-columns: 1fr 440px; gap: 8vw; align-items: center; max-width: 1120px; margin: 0 auto; padding: 58px 28px; overflow: hidden; }
.auth-layout::before { content: ''; position: absolute; inset: -15% -8%; z-index: -1; background: radial-gradient(circle at 22% 28%, color-mix(in srgb, var(--accent) 22%, transparent) 0, transparent 52%), radial-gradient(circle at 82% 68%, color-mix(in srgb, var(--warm) 24%, transparent) 0, transparent 50%); filter: blur(20px); animation: auth-drift 22s var(--ease) infinite; }
.auth-intro { position: relative; max-width: 560px; padding-bottom: 40px; animation: fade-in-up var(--dur-slow) var(--ease-out) both; }
.auth-intro h1 { max-width: 550px; margin: 12px 0 20px; font-size: 4.4rem; }
.auth-intro p:last-child { max-width: 390px; color: var(--muted); font-size: 1.1rem; }
.auth-orbit { position: absolute; top: -18px; right: 6%; width: 84px; height: 84px; opacity: .8; animation: auth-spin 46s linear infinite; }
.auth-orbit circle { fill: none; stroke: var(--warm); stroke-width: 1.4; stroke-dasharray: 4 10; }
.auth-orbit circle:last-child { stroke: var(--accent); stroke-dasharray: 1 7; animation: none; }
.auth-card { animation: fade-in-up var(--dur-slow) var(--ease-out) .14s both; }
.auth-card h2 { margin-top: 8px; }
.auth-card .stack-form > * { animation: fade-in-up var(--dur) var(--ease-out) both; }
.auth-card .stack-form > *:nth-child(2) { animation-delay: .06s; }
.auth-card .stack-form > *:nth-child(3) { animation-delay: .12s; }
.auth-card .stack-form > *:nth-child(4) { animation-delay: .18s; }
.auth-card .stack-form > *:nth-child(5) { animation-delay: .22s; }
.form-footer { margin: 22px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.landing-hero { min-height: 550px; display: flex; flex-direction: column; justify-content: center; max-width: none; padding: 88px max(28px, calc((100vw - 1080px) / 2)); background: radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--brand-secondary) 30%, white) 0, transparent 30%), linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 12%, white), color-mix(in srgb, var(--brand-secondary) 14%, white)); }
.landing-hero.theme-forest { --accent: #36734f; --accent-dark: #245c3d; }
.landing-hero.theme-sunset { --accent: #bd6546; --accent-dark: #98442e; }
.landing-hero h1 { max-width: 760px; margin: 12px 0 18px; font-size: 5.4rem; }
.landing-description { max-width: 620px; color: var(--muted); font-size: 1.15rem; }
.landing-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.landing-badges span { display: inline-flex; align-items: center; padding: 8px 12px; color: var(--accent-dark); background: rgba(255,255,255,.7); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.landing-hero .button { margin-top: 0; }
.landing-hero-inner { max-width: 1080px; width: 100%; margin: 0 auto; }
.landing-services { max-width: 1080px; margin: 0 auto; padding: 70px 28px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { max-width: 500px; margin-top: 5px; font-size: 2.6rem; }
.landing-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.mini-highlight { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mini-highlight strong { color: var(--accent-dark); font: 700 1.2rem 'Manrope', sans-serif; }
.mini-highlight span { color: var(--muted); font-size: .84rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.service-card { display: flex; min-height: 210px; flex-direction: column; justify-content: space-between; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(23, 42, 47, .12); }
.service-head h3 { margin-bottom: 10px; }
.service-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.service-price, .service-duration { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.service-price { color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.service-duration { color: #6a4a20; background: rgba(216,141,77,.12); }
.service-card p { margin-bottom: 14px; color: var(--muted); }
.service-card span { color: var(--accent-dark); font-size: .87rem; font-weight: 600; }
.service-card .button { margin-top: 20px; }
.landing-footer { padding: 28px 24px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); font-size: .84rem; }
.booking-shell { max-width: 780px; }
.booking-card { padding: 28px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.back-link { display: inline-block; margin-bottom: 42px; }
.booking-heading { margin-bottom: 28px; }
.booking-heading h1 { margin-top: 9px; }
.service-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--accent-dark); font-size: .85rem; font-weight: 600; }
.service-meta span + span { position: relative; }
.service-meta span + span::before { content: ''; position: absolute; top: 50%; left: -11px; width: 4px; height: 4px; background: var(--warm); border-radius: 50%; transform: translateY(-50%); }
.date-picker { display: flex; align-items: end; gap: 12px; margin: 0 0 32px; padding: 18px; }
.date-picker-field { flex: 1; }
.date-picker p { flex: 1; margin: 0; }
.date-picker label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 700; }
.subheading { margin: 0 0 15px; font-size: 1.55rem; }
.checkbox-row { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 10px; color: var(--ink); font-weight: 600; }
.booking-form { display: grid; gap: 6px; }
.time-picker { margin: 0 0 20px; padding: 0; border: 0; }
.time-picker legend { margin-bottom: 12px; color: var(--ink); font-size: .86rem; font-weight: 700; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
.time-option { position: relative; cursor: pointer; }
.time-option input { position: absolute; opacity: 0; }
.time-option span { display: block; padding: 11px 8px; color: var(--accent-dark); background: #f4f8f1; border: 1px solid #c3cfb8; border-radius: 5px; font-weight: 700; text-align: center; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.time-option:hover span { border-color: var(--accent); background: #e5f3ed; }
.time-option input:checked + span { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.time-option input:focus-visible + span { outline: 3px solid rgba(216, 141, 77, .55); outline-offset: 3px; }
.booking-form .button { margin-top: 5px; }
.narrow-public { padding-top: 100px; }
.success-panel { padding: 44px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.success-mark { display: grid; width: 54px; height: 54px; margin: 0 auto 22px; place-items: center; color: #fff; background: var(--accent); border-radius: 50%; font-size: 1.5rem; }
.success-panel h1 { margin-top: 10px; font-size: 2.8rem; }
.booking-summary { display: grid; gap: 4px; margin: 26px 0; padding: 18px; color: var(--muted); background: var(--surface-soft); border-radius: 5px; }
.booking-summary strong { color: var(--ink); font: 700 1.3rem 'Manrope', sans-serif; }
.confirmation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.guide-shell .form-panel { margin-bottom: 0; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.guide-toc a { padding: 7px 14px; color: var(--accent-dark); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.guide-toc a:hover { background: var(--accent-soft); border-color: var(--accent); }
.guide-section { scroll-margin-top: 92px; margin-bottom: 28px; }
.guide-prose p { margin: 0 0 14px; }
.guide-prose p:last-child { margin-bottom: 0; }
.guide-prose ul, .guide-prose ol { margin: 0 0 14px; padding-left: 22px; }
.guide-prose ul:last-child, .guide-prose ol:last-child { margin-bottom: 0; }
.guide-prose li { margin-bottom: 8px; }
.guide-prose li:last-child { margin-bottom: 0; }
.guide-prose code { padding: 2px 6px; background: var(--surface-soft); border-radius: 4px; font-size: .85em; }
.guide-step-list { counter-reset: guide-step; list-style: none; padding-left: 0; }
.guide-step-list > li { position: relative; padding-left: 40px; }
.guide-step-list > li::before { counter-increment: guide-step; content: counter(guide-step); position: absolute; left: 0; top: 0; display: grid; width: 26px; height: 26px; place-items: center; color: #fff; background: var(--accent-dark); border-radius: 50%; font-size: .78rem; font-weight: 700; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+'; display: inline-block; width: 18px; color: var(--warm); font-weight: 700; }
.faq-item[open] summary::before { content: '–'; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }
@media (max-width: 760px) {
    h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
    .site-header { height: auto; min-height: 64px; align-items: stretch; flex-direction: column; gap: 10px; padding: 12px 18px; }
    .site-nav { justify-content: space-between; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border-subtle); overflow-x: auto; }
    .site-nav a { flex: 1; padding: 6px 4px; text-align: center; white-space: nowrap; font-size: 0.84rem; }
    .admin-shell, .public-shell { padding: 28px 16px; }
    .page-heading { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 24px; }
    .heading-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; }
    .heading-actions > .button { width: 100%; }
    .action-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
    .action-banner-main { align-items: flex-start; }
    .action-banner > .button { width: 100%; }
    .notification-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .finance-grid { grid-template-columns: 1fr; gap: 10px; }
    .quick-actions-grid { grid-template-columns: 1fr; gap: 10px; }
    .insights-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-footer { flex-direction: column; align-items: stretch; gap: 10px; }
    .dashboard-footer > .button, .dashboard-footer form, .dashboard-footer form button { width: 100%; }
    .auth-layout { grid-template-columns: 1fr; gap: 14px; padding: 42px 18px; }
    .auth-intro { padding-bottom: 0; }
    .auth-intro h1 { font-size: 3.3rem; }
    .form-panel { padding: 22px; }
    .landing-hero { min-height: 520px; padding: 64px 18px; }
    .landing-hero h1 { font-size: 3.8rem; }
    .landing-services { padding: 52px 18px; }
    .section-heading h2 { font-size: 2.1rem; }
    .admin-list-item { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 16px; }
    .list-actions { width: 100%; justify-content: flex-end; }
    .appointment-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    .appointment-time {
        min-width: auto;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 8px;
    }
    .appointment-time span {
        font-size: 1.25rem;
    }
    .appointment-item .status-pill {
        margin-left: 0;
    }
    .appointment-side-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .appointment-status-actions {
        width: 100%;
        margin-left: 0;
    }
    .appointment-status-actions .button {
        flex: 1;
    }
    .inline-reject-form {
        width: 100%;
    }
    .inline-reject-input {
        flex: 1;
        min-width: 0;
    }
    .agenda-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .agenda-nav-group {
        width: 100%;
        justify-content: space-between;
    }
    .agenda-nav-group .button {
        flex: 1;
        justify-content: center;
    }
    .agenda-date-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .agenda-date-form input[type="date"] {
        width: 100%;
    }
    .agenda-toolbar-actions {
        width: 100%;
    }
    .agenda-toolbar-actions .button {
        width: 100%;
        justify-content: center;
    }
    .agenda-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .agenda-filter-chips {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }
    .view-switch {
        width: 100%;
        justify-content: stretch;
    }
    .view-switch a {
        flex: 1;
        justify-content: center;
    }
    .timeline-row {
        gap: 8px;
    }
    .timeline-hour {
        width: 48px;
        font-size: .8rem;
    }
    .timeline-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .timeline-card-actions {
        width: 100%;
        margin-left: 0;
    }
    .date-picker { align-items: stretch; flex-direction: column; }
    .date-picker .button { width: 100%; }
    .booking-form .button { width: 100%; }
    .service-card .button { width: 100%; }
    .interval-row { align-items: stretch; flex-wrap: wrap; }
    .interval-row .remove-interval { margin-left: auto; }
    .success-panel { padding: 30px 20px; }
    .service-catalog-item, .employee-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }
    .service-catalog-item .list-actions, .employee-card .list-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }
    .employee-actions form, .service-actions form {
        margin: 0;
    }
    .employee-actions .button, .service-actions .button, .action-link-pill {
        flex: 1;
        justify-content: center;
    }
    .employee-summary {
        grid-template-columns: 1fr;
    }
    .confirmation-actions .button { width: 100%; }
}

/* ==============================================================================
   Sistema de Loading e Progresso Visual (SaaS 2026)
   ============================================================================== */

/* 1. Barra de Progresso no Topo */
.global-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    z-index: 999999;
    background: linear-gradient(90deg, #132e25, #b88242, #10b981);
    box-shadow: 0 0 10px rgba(184, 130, 66, 0.7);
    transition: width 0.3s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
    opacity: 0;
}

/* 2. Modal Overlay com Acompanhamento de Evolução */
.global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(19, 46, 37, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.global-loading-overlay.is-visible {
    opacity: 1;
}

.loading-modal-card {
    background: #ffffff;
    border: 1px solid rgba(216, 226, 220, 0.9);
    border-radius: 18px;
    box-shadow: 0 24px 50px -12px rgba(19, 46, 37, 0.3);
    padding: 36px 30px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.global-loading-overlay.is-visible .loading-modal-card {
    transform: scale(1) translateY(0);
}

.loading-orbit-spinner {
    position: relative;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
}
.loading-orbit-spinner .orbit-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3.5px solid rgba(19, 46, 37, 0.12);
    border-top-color: var(--accent-dark, #132e25);
    border-right-color: var(--warm, #b88242);
    animation: orbit-spin 0.85s linear infinite;
    box-sizing: border-box;
}
.loading-orbit-spinner .orbit-core {
    position: absolute;
    inset: 19px;
    border-radius: 50%;
    background: var(--warm, #b88242);
    animation: orbit-pulse 1.7s ease-in-out infinite;
}

.loading-modal-title {
    margin: 0 0 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #132e25;
}
.loading-modal-subtitle {
    margin: 0 0 20px;
    font-size: 0.88rem;
    color: #52655d;
    line-height: 1.45;
}

.loading-progress-container {
    margin-top: 12px;
}
.loading-progress-track {
    width: 100%;
    height: 8px;
    background: #eef2f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}
.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #132e25, #b88242, #10b981);
    background-size: 200% 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
    animation: shimmer-bar 2s linear infinite;
}
.loading-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #52655d;
}
.loading-step-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.loading-percent-text {
    font-variant-numeric: tabular-nums;
    color: #132e25;
    font-weight: 700;
    flex-shrink: 0;
}

/* 3. Botão em estado de carregamento */
.button.is-loading {
    pointer-events: none;
    opacity: 0.88;
    cursor: wait !important;
}
.button.is-loading .btn-spinner {
    animation: orbit-spin 0.85s linear infinite;
    flex-shrink: 0;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes orbit-pulse {
    0%, 100% { transform: scale(0.75); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}
@keyframes shimmer-bar {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .auth-layout::before, .auth-orbit { animation: none !important; }
}
@media print {
    .site-header, .saas-sidebar, .saas-topbar, .agenda-toolbar, .appointment-item form, .appointment-item .status-pill { display: none; }
    main { min-height: 0; }
    .admin-shell { max-width: none; padding: 0; }
    .page-heading { margin-bottom: 20px; }
    .admin-list-item { break-inside: avoid; box-shadow: none; }
}

/* ==========================================================================
   NEXUS BOOKING — SAAS PREMIUM DESIGN SYSTEM 2026 (RECONSTRUÇÃO DA INTERFACE)
   Direção de Arte: Verde profundo (#0D2922), Dourado (#C89545), Superfícies refinadas
   ========================================================================== */

:root {
    --saas-brand-dark: #0D2922;
    --saas-brand-sidebar-hover: #163d33;
    --saas-brand-sidebar-active: #176B52;
    --saas-brand-primary: #124638;
    --saas-brand-secondary: #176B52;
    --saas-brand-soft: #EAF5F0;
    --saas-brand-gold: #C89545;
    --saas-brand-gold-soft: #FAF3E7;
    --saas-bg-main: #F7F6F1;
    --saas-surface-card: #FFFFFF;
    --saas-text-main: #17251F;
    --saas-text-muted: #64748B;
    --saas-border: #E2E8F0;
    --saas-border-subtle: #F1F5F9;
    --saas-radius-card: 16px;
    --saas-radius-sm: 8px;
    --saas-radius-pill: 9999px;
    --saas-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --saas-shadow-md: 0 4px 16px rgba(13, 41, 34, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    --saas-shadow-hover: 0 8px 24px rgba(13, 41, 34, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 1. Layout Principal SaaS */
.saas-layout-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--saas-bg-main);
}

/* 2. Sidebar Lateral Verde Profundo */
.saas-sidebar {
    width: 250px;
    min-width: 250px;
    background-color: var(--saas-brand-dark);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    padding: 24px 16px 20px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-sidebar::-webkit-scrollbar {
    width: 4px;
}
.saas-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.saas-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px 8px;
    text-decoration: none;
    color: #FFFFFF;
}

.saas-brand-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #134537 0%, #0a211b 100%);
    border: 1px solid rgba(200, 149, 69, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.saas-brand-text {
    display: flex;
    flex-direction: column;
}

.saas-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    line-height: 1.2;
}

.saas-brand-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--saas-brand-gold);
    line-height: 1.2;
}

.saas-nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.saas-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #BAC7C3;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
    position: relative;
}

.saas-nav-link svg {
    flex-shrink: 0;
    opacity: 0.82;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.saas-nav-link:hover {
    background: var(--saas-brand-sidebar-hover);
    color: #FFFFFF;
}

.saas-nav-link:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

.saas-nav-link.is-active {
    background: var(--saas-brand-sidebar-active);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.saas-nav-link.is-active svg {
    opacity: 1;
}

.saas-nav-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--saas-radius-pill);
    background: var(--saas-brand-gold);
    color: #0D2922;
    line-height: 1.2;
}

.saas-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 6px 18px;
}

.saas-sidebar-spacer {
    flex: 1;
}

/* Card do Plano no Rodapé da Sidebar */
.saas-plan-card {
    background: #11362d;
    border: 1px solid rgba(200, 149, 69, 0.22);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: border-color 0.18s ease;
}

.saas-plan-card:hover {
    border-color: var(--saas-brand-gold);
}

.saas-plan-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(200, 149, 69, 0.16);
    color: var(--saas-brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.saas-plan-info {
    flex: 1;
    min-width: 0;
}

.saas-plan-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.saas-plan-desc {
    font-size: 0.70rem;
    color: #8BA89F;
    margin: 2px 0 0;
    line-height: 1.2;
}

/* Identificação do Usuário no Rodapé da Sidebar */
.saas-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #FFFFFF;
    transition: background 0.16s ease;
}

.saas-user-profile:hover {
    background: var(--saas-brand-sidebar-hover);
}

.saas-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1E4E42;
    border: 1.5px solid rgba(200, 149, 69, 0.4);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.saas-user-meta {
    flex: 1;
    min-width: 0;
}

.saas-user-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.saas-user-biz {
    font-size: 0.72rem;
    color: #8BA89F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.saas-user-arrow {
    color: #72968C;
    font-size: 0.8rem;
}

/* 3. Área Principal do SaaS */
.saas-main-viewport {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--saas-bg-main);
}

/* 4. Topbar Superior */
.saas-topbar {
    height: 64px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--saas-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.saas-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--saas-text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.saas-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-pill);
    padding: 7px 16px;
    width: 380px;
    max-width: 100%;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.saas-search-box:focus-within {
    background: #FFFFFF;
    border-color: var(--saas-brand-secondary);
    box-shadow: 0 0 0 3px rgba(23, 107, 82, 0.12);
}

.saas-search-icon {
    color: #94A3B8;
    flex-shrink: 0;
}

.saas-search-input {
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--saas-text-main);
    width: 100%;
    outline: none;
    font-family: inherit;
}

.saas-search-input::placeholder {
    color: #94A3B8;
}

.saas-search-kbd {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 2px 6px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.saas-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.saas-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid var(--saas-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.saas-icon-btn:hover {
    background: #F1F5F9;
    color: var(--saas-text-main);
    border-color: #CBD5E1;
}

.saas-notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #EF4444;
    border: 1.5px solid #FFFFFF;
}

.saas-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.16s ease;
}

.saas-topbar-user:hover {
    background: #F8FAFC;
}

.saas-topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--saas-brand-dark);
    color: var(--saas-brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* 5. Área de Conteúdo do SaaS */
.saas-main-content {
    flex: 1;
    padding: 28px 36px 64px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 6. Dashboard: Cabeçalho de Boas-Vindas */
.dash-welcome-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    position: relative;
}

.dash-welcome-text h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--saas-text-main);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.dash-welcome-text .gold-name {
    color: var(--saas-brand-gold);
}

.dash-welcome-text p {
    font-size: 0.98rem;
    color: var(--saas-text-muted);
    margin: 0;
}

.dash-date-pill {
    text-align: right;
    font-size: 0.90rem;
    color: var(--saas-text-muted);
    font-weight: 500;
    padding-top: 4px;
}

.dash-date-day {
    font-weight: 700;
    color: var(--saas-text-main);
    display: block;
    margin-bottom: 2px;
}

/* 7. Dashboard: Grid de KPIs (4 Cards) */
.dash-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.dash-kpi-card {
    background: #FFFFFF;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-card);
    padding: 20px 22px;
    box-shadow: var(--saas-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dash-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--saas-shadow-md);
    border-color: #CBD5E1;
}

.dash-kpi-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.dash-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-kpi-icon.icon-emerald { background: #EAF5F0; color: #176B52; }
.dash-kpi-icon.icon-blue { background: #EFF6FF; color: #2563EB; }
.dash-kpi-icon.icon-teal { background: #F0FDF4; color: #15803D; }
.dash-kpi-icon.icon-amber { background: #FEF3C7; color: #D97706; }

.dash-kpi-details {
    flex: 1;
    min-width: 0;
}

.dash-kpi-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--saas-text-muted);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.dash-kpi-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--saas-text-main);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.dash-kpi-trend {
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 6px;
    border-top: 1px solid var(--saas-border-subtle);
}

.dash-kpi-trend.trend-up { color: #16865D; }
.dash-kpi-trend.trend-down { color: #DC2626; }
.dash-kpi-trend.trend-neutral { color: var(--saas-text-muted); }

/* 8. Dashboard: Grid Operacional (Agenda de Hoje, Calendário, Ações Rápidas) */
.dash-ops-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
    align-items: stretch;
}

.dash-card {
    background: #FFFFFF;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-card);
    padding: 22px 24px;
    box-shadow: var(--saas-shadow-sm);
    display: flex;
    flex-direction: column;
}

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

.dash-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--saas-text-main);
    margin: 0;
    letter-spacing: -0.01em;
}

.dash-card-subtitle {
    font-size: 0.82rem;
    color: var(--saas-text-muted);
    margin: 3px 0 0 0;
}

.dash-card-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--saas-brand-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.16s ease, transform 0.16s ease;
}

.dash-card-link:hover {
    color: var(--saas-brand-primary);
    transform: translateX(2px);
}

/* Agenda de Hoje */
.dash-agenda-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.dash-agenda-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FAFAF8;
    border: 1px solid #ECEEE9;
    border-left-width: 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.dash-agenda-item:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dash-agenda-item.status-confirmed { border-left-color: #16865D; }
.dash-agenda-item.status-pending { border-left-color: #D97706; }
.dash-agenda-item.status-in_progress { border-left-color: #2563EB; }
.dash-agenda-item.status-waiting { border-left-color: #64748B; }

.dash-agenda-time {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--saas-text-main);
    min-width: 48px;
    font-variant-numeric: tabular-nums;
}

.dash-agenda-meta {
    flex: 1;
    min-width: 0;
}

.dash-agenda-client {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--saas-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.25;
}

.dash-agenda-service {
    font-size: 0.80rem;
    color: var(--saas-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0 0 0;
}

.dash-status-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--saas-radius-pill);
    white-space: nowrap;
}

.dash-status-pill.pill-confirmed { background: #EAF5F0; color: #16865D; border: 1px solid rgba(22, 134, 93, 0.2); }
.dash-status-pill.pill-pending { background: #FEF3C7; color: #B45309; border: 1px solid rgba(180, 83, 9, 0.2); }
.dash-status-pill.pill-in_progress { background: #EFF6FF; color: #1D4ED8; border: 1px solid rgba(29, 78, 216, 0.2); }
.dash-status-pill.pill-waiting { background: #F1F5F9; color: #475569; border: 1px solid rgba(71, 85, 105, 0.2); }

.dash-agenda-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mini Calendário Mensal */
.dash-mini-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dash-mini-cal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--saas-text-main);
}

.dash-mini-cal-nav {
    display: flex;
    gap: 4px;
}

.dash-mini-cal-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--saas-border);
    background: #FFFFFF;
    color: var(--saas-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.dash-mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    margin-bottom: 14px;
}

.dash-cal-dow {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94A3B8;
    padding-bottom: 6px;
}

.dash-cal-day {
    font-size: 0.80rem;
    font-weight: 500;
    color: var(--saas-text-main);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.dash-cal-day:hover:not(.day-empty) {
    background: #F1F5F9;
}

.dash-cal-day.day-today {
    background: var(--saas-brand-dark) !important;
    color: #FFFFFF !important;
    font-weight: 700;
}

.dash-cal-day.day-has-app:not(.day-today)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--saas-brand-secondary);
}

.dash-cal-day.day-empty {
    visibility: hidden;
    cursor: default;
}

.dash-cal-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.68rem;
    color: var(--saas-text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--saas-border-subtle);
}

.dash-cal-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Ações Rápidas (Grade 2x3) */
.dash-quick-actions-2x3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.dash-qa-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    border: 1px solid transparent;
}

.dash-qa-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dash-qa-box.box-green { background: #EBF7F2; color: #16654E; }
.dash-qa-box.box-yellow { background: #FEF7EA; color: #B45309; }
.dash-qa-box.box-blue { background: #EFF6FF; color: #1E40AF; }
.dash-qa-box.box-purple { background: #F5F3FF; color: #5B21B6; }
.dash-qa-box.box-coral { background: #FFF1F2; color: #9F1239; }
.dash-qa-box.box-slate { background: #F8FAFC; color: #334155; border-color: var(--saas-border); }

.dash-qa-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.dash-qa-title {
    font-size: 0.80rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* 9. Dashboard: Grid Analítico (Receita 6 meses, Donut Status, Atividade Recente) */
.dash-analytics-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Gráfico de Barras SVG */
.dash-chart-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 8px;
}

.dash-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    height: 180px;
    padding: 10px 10px 0 10px;
    border-bottom: 1px solid var(--saas-border);
    position: relative;
}

.dash-bar-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.dash-bar-fill {
    width: 80%;
    max-width: 36px;
    background: linear-gradient(180deg, #176B52 0%, #124638 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease, opacity 0.16s ease;
    cursor: pointer;
    min-height: 8px;
}

.dash-bar-fill:hover {
    opacity: 0.85;
}

.dash-bar-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--saas-text-muted);
    margin-top: 8px;
}

/* Gráfico Donut de Status */
.dash-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 16px;
}

.dash-donut-svg-box {
    position: relative;
    width: 140px;
    height: 140px;
}

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

.dash-donut-center-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--saas-text-main);
    line-height: 1;
}

.dash-donut-center-label {
    font-size: 0.68rem;
    color: var(--saas-text-muted);
    margin-top: 2px;
}

.dash-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.dash-donut-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.80rem;
    color: var(--saas-text-muted);
}

.dash-donut-legend-val {
    font-weight: 700;
    color: var(--saas-text-main);
}

/* Atividade Recente */
.dash-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--saas-border-subtle);
}

.dash-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dash-act-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.dash-act-body {
    flex: 1;
    min-width: 0;
}

.dash-act-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--saas-text-main);
    margin: 0;
    line-height: 1.25;
}

.dash-act-desc {
    font-size: 0.76rem;
    color: var(--saas-text-muted);
    margin: 2px 0 0 0;
    line-height: 1.3;
}

.dash-act-time {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94A3B8;
    white-space: nowrap;
    margin-left: 6px;
}

/* 10. Responsividade Moderna do Layout SaaS */
@media (max-width: 1200px) {
    .dash-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-ops-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dash-ops-grid > .dash-card:first-child {
        grid-column: span 2;
    }
    .dash-analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dash-analytics-grid > .dash-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .saas-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
    }
    .saas-sidebar.is-open {
        transform: translateX(0);
    }
    .saas-mobile-toggle {
        display: block;
    }
    .saas-topbar {
        padding: 0 16px;
    }
    .saas-search-box {
        width: 240px;
    }
    .saas-main-content {
        padding: 20px 16px 48px;
    }
    .saas-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
    }
    .saas-backdrop.is-open {
        display: block;
    }
}

@media (max-width: 768px) {
    .dash-kpis-grid {
        grid-template-columns: 1fr;
    }
    .dash-ops-grid {
        grid-template-columns: 1fr;
    }
    .dash-ops-grid > .dash-card:first-child {
        grid-column: span 1;
    }
    .dash-analytics-grid {
        grid-template-columns: 1fr;
    }
    .dash-analytics-grid > .dash-card:first-child {
        grid-column: span 1;
    }
    .saas-search-box {
        display: none;
    }
    .dash-welcome-text h1 {
        font-size: 1.7rem;
    }
    .dash-date-pill {
        text-align: left;
    }
}

/* App instalável (PWA): o botão só aparece quando o navegador permite instalar */
[data-pwa-install][hidden] {
    display: none !important;
}
.pwa-install-link {
    background: none;
    border: none;
    padding: 4px;
    font: inherit;
    font-weight: 600;
    color: var(--brand);
    text-decoration: underline;
    cursor: pointer;
}

/* Uso do plano na lista de atendentes */
.plan-usage {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-subtle, #f8fafc);
    font-size: 0.9rem;
}
.plan-usage-full {
    border-color: var(--warning-border);
    background: var(--warning-bg);
    color: var(--warning);
}
.plan-usage-full a {
    color: inherit;
    font-weight: 700;
}
