/* ===================================================================
   acheiterapeuta — estilos globais
   Aplicados em toda página. Estilos específicos de uma página ficam
   em style-[pagina].css.
   =================================================================== */

:root {
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;

    --accent-50: #faf5ff;
    --accent-100: #f3e8ff;
    --accent-200: #e9d5ff;
    --accent-300: #d8b4fe;
    --accent-400: #c084fc;
    --accent-500: #a855f7;
    --accent-600: #9333ea;
    --accent-700: #7e22ce;
    --accent-800: #6b21a8;
    --accent-900: #581c87;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --red-50: #fef2f2;
    --red-200: #fecaca;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;

    --amber-50: #fffbeb;
    --amber-200: #fde68a;
    --amber-800: #92400e;

    --yellow-50: #fefce8;
    --yellow-200: #fef08a;
    --yellow-400: #facc15;
    --yellow-700: #a16207;

    --green-50: #f0fdf4;
    --green-200: #bbf7d0;
    --green-600: #16a34a;
    --green-700: #15803d;

    --blue-50: #eff6ff;
    --blue-200: #bfdbfe;
    --blue-700: #1d4ed8;

    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-700: #7e22ce;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* --- Reset básico --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 1 auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
[x-cloak] { display: none !important; }

/* --- Container --- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.container-sm { max-width: 42rem; }
.container-md { max-width: 48rem; }
.container-lg { max-width: 90rem; }

/* --- Página padrão --- */
.page { padding: 2.5rem 0; }
.page-header { align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.page-header.between { justify-content: space-between; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.page-back { color: var(--gray-400); transition: color .15s; }
.page-back:hover { color: var(--gray-600); }

/* --- Banner de status --- */
.status-banner { border: 1px solid transparent; padding: 0.75rem 1rem; border-radius: var(--radius-md); font-size: 0.875rem; align-items: center; gap: 0.5rem; }
.status-banner .icon-sm { flex-shrink: 0; }
.status-banner .text-xs { margin-left: 0.5rem; }
.row-start { align-items: center; gap: 0.75rem; padding-top: 0.5rem; }
.status-banner.pending { background: var(--yellow-50); border-color: var(--yellow-200); color: var(--yellow-700); }
.status-banner.review { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }
.status-banner.approved { background: var(--green-50); border-color: var(--green-200); color: var(--green-700); }
.status-banner.rejected { background: var(--red-50); border-color: var(--red-200); color: var(--red-700); }

/* --- Cards --- */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.5rem; }
.card-title { font-weight: 600; color: var(--gray-900); margin-bottom: 1rem; }
.input-narrow { max-width: 20rem; }

/* --- Botões --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background-color .15s, border-color .15s, color .15s;
    cursor: pointer;
}
.btn-primary { background: var(--primary-600); color: #fff; }
.btn-primary:hover { background: var(--primary-700); }
.btn-accent { background: var(--accent-600); color: #fff; }
.btn-accent:hover { background: var(--accent-700); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-dark { background: var(--gray-800); color: #fff; }
.btn-dark:hover { background: var(--gray-900); }
.btn-outline { background: #fff; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { background: var(--gray-50); }
.btn-danger { color: var(--red-600); }
.btn-danger:hover { color: var(--red-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Formulários --- */
.field { flex-direction: column; gap: 0.25rem; }
.field-label { font-weight: 500; color: var(--gray-700); }
.field-hint { color: var(--gray-400); }
.input, .select, .textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: #fff;
    color: var(--gray-900);
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px rgb(34 197 94 / 0.3);
}

/* --- Avatar (foto ou iniciais) --- */
.avatar {
    display: flex; align-items: center; justify-content: center;
    border-radius: 9999px;
    flex-shrink: 0;
    font-weight: 700;
    object-fit: cover;
}
.avatar.fallback { background: var(--primary-100); color: var(--primary-700); }
.avatar.bordered { border: 2px solid var(--gray-200); }
.avatar.bordered-white { border: 2px solid #fff; }
.avatar-xs { width: 1.5rem; height: 1.5rem; font-size: 0.625rem; }
.avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
.avatar-lg { width: 3rem; height: 3rem; font-size: 0.875rem; }
.avatar-xl { width: 4rem; height: 4rem; font-size: 1.25rem; }
.avatar-2xl { width: 6rem; height: 6rem; font-size: 1.5rem; }
.avatar-2xl.bordered-white { border-width: 4px; box-shadow: var(--shadow-md); }

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
}
.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-accent { background: var(--accent-50); color: var(--accent-700); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.badge-green { background: var(--green-50); color: var(--green-700); }
.badge-purple { background: var(--purple-100); color: var(--purple-700); }
.badge-yellow { background: var(--yellow-50); color: var(--yellow-700); }
.badge-blue { background: var(--blue-50); color: var(--blue-700); }
.badge-red { background: var(--red-50); color: var(--red-700); }

/* --- Alertas --- */
.alert { border-radius: var(--radius-lg); padding: 1rem; border: 1px solid transparent; margin-bottom: 1.5rem; }
.alert-success { background: var(--green-50); border-color: var(--green-200); color: var(--green-700); }
.alert-error { background: var(--red-50); border-color: var(--red-200); color: var(--red-700); }
.alert-warning { background: var(--amber-50); border-color: var(--amber-200); color: var(--amber-800); }
.alert-info { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }
.alert ul { margin: 0; padding-left: 1.25rem; }

/* --- Seções de landing page --- */
.hero { background: linear-gradient(to bottom right, var(--primary-600), var(--primary-700), var(--accent-700)); color: #fff; }
.section { padding: 4rem 0; }
@media (min-width: 1024px) { .section { padding: 5rem 0; } }
.section-white { background: #fff; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-600); }
.section-header .eyebrow.accent { color: var(--accent-600); }
.section-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; margin-top: 0.5rem; }
@media (min-width: 1024px) { .section-header h2 { font-size: 1.875rem; } }
.section-header p { color: var(--gray-500); }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .steps-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .steps-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .steps-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.step { text-align: center; }
.step-number, .step-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700; font-size: 1.25rem;
}
.step-number { width: 4rem; height: 4rem; }
.step-number.primary, .step-icon.primary { background: var(--primary-100); color: var(--primary-700); }
.step-number.accent, .step-icon.accent { background: var(--accent-100); color: var(--accent-700); }
.step h3 { font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.625; }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.feature-card .icon-lg { color: var(--primary-600); margin-bottom: 0.75rem; }
.feature-card h3 { font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.625; }

.cta-section { background: linear-gradient(to right, var(--accent-600), var(--accent-700)); color: #fff; text-align: center; }
.cta-section.primary-gradient { background: linear-gradient(to right, var(--primary-600), var(--accent-700)); }
.cta-section .container { max-width: 56rem; }
.cta-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 1024px) { .cta-section h2 { font-size: 1.875rem; } }
.cta-section p { color: var(--accent-100); margin-bottom: 2rem; font-size: 1.125rem; }
.cta-section .btn { background: #fff; color: var(--accent-700); font-weight: 600; padding: 0.75rem 2rem; }
.cta-section .btn:hover { background: var(--accent-50); }
.cta-section .btn-group { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .cta-section .btn-group { flex-direction: row; } }
.cta-section .btn-ghost { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.cta-section .btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* --- Documento legal (termos, privacidade) --- */
.legal-doc { padding: 2rem; }
.legal-doc .updated { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 1.5rem; }
.legal-doc h2 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-top: 1.75rem; margin-bottom: 0.75rem; }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p { color: var(--gray-700); line-height: 1.7; margin-bottom: 0.75rem; }
.legal-doc ul { color: var(--gray-700); line-height: 1.7; padding-left: 1.25rem; margin-bottom: 0.75rem; }
.legal-doc a { color: var(--primary-600); text-decoration: underline; }

/* --- Notificações --- */
.notif-list { flex-direction: column; gap: 0.5rem; }
.notif-item { align-items: flex-start; gap: 0.75rem; padding: 1rem; border-radius: var(--radius-lg); transition: background-color .15s; }
.notif-item.unread { background: var(--primary-50); border: 1px solid var(--primary-100); }
.notif-item:not(.unread) { background: #fff; border: 1px solid var(--gray-200); }
.notif-item:not(.unread):hover { background: var(--gray-50); }
.notif-icon { width: 2.25rem; height: 2.25rem; border-radius: 9999px; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-item.unread .notif-icon { background: var(--primary-100); color: var(--primary-600); }
.notif-item:not(.unread) .notif-icon { background: var(--gray-100); color: var(--gray-400); }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-weight: 500; }
.notif-item.unread .notif-title { color: var(--gray-900); }
.notif-item:not(.unread) .notif-title { color: var(--gray-700); }
.notif-body { color: var(--gray-500); margin-top: 0.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-date { color: var(--gray-400); margin-top: 0.25rem; }
.notif-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--primary-500); flex-shrink: 0; margin-top: 0.5rem; }
.empty-panel { background: var(--gray-50); border-radius: var(--radius-lg); padding: 2rem; text-align: center; }
.info-panel { background: var(--gray-50); border-radius: var(--radius-lg); padding: 1rem; }
.empty-panel .icon-2xl { color: var(--gray-300); margin: 0 auto 0.75rem; }

/* --- LGPD / privacidade --- */
.lgpd-option { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 1rem; }
.lgpd-option.danger { border-color: var(--red-200); background: var(--red-50); }
.lgpd-option h3 { font-size: 0.875rem; font-weight: 500; color: var(--gray-900); margin-bottom: 0.25rem; }
.lgpd-option.danger h3 { color: #7f1d1d; }
.lgpd-option p { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.lgpd-option.danger p { color: #b91c1c; }
.consent-row { align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-50); }
.consent-row:last-child { border-bottom: none; }

/* --- Ícones (Lucide) --- */
.icon-xs { width: 0.75rem; height: 0.75rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 1.75rem; height: 1.75rem; }
.icon-2xl { width: 3rem; height: 3rem; }

/* --- Links --- */
.link { color: var(--primary-600); font-weight: 500; transition: color .15s; }
.link:hover { color: var(--primary-700); }
.link-accent { color: var(--accent-600); font-weight: 500; transition: color .15s; }
.link-accent:hover { color: var(--accent-700); }
.link-btn { background: none; border: none; padding: 0; cursor: pointer; }

/* --- Texto utilitário --- */
.text-muted { color: var(--gray-500); }
.text-faint { color: var(--gray-400); }
.text-2xs { font-size: 0.625rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.section-title { font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }

/* "Nome"/valor em destaque (linhas de lista: agendamento, transação, card de profissional...) */
.appt-name, .review-header .name, .quick-action .title, .pay-option .name,
.tx-row .name, .conv-name {
    font-weight: 500; color: var(--gray-900); font-size: 0.875rem;
}
.link-row-name, .doc-item .name, .receipt-parties .name, .consent-row .name {
    font-weight: 500; color: var(--gray-900);
}
.spec-item-meta, .link-row-meta, .doc-item .meta, .quick-action .subtitle,
.pay-option .desc, .receipt-parties .detail, .consent-row .status {
    font-size: 0.75rem; color: var(--gray-500);
}

/* ===================================================================
   Utilitários genéricos — escala reaproveitável (0.25rem por passo,
   igual à escala de espaçamento do Tailwind). Usar para casos pontuais
   de tamanho/espaçamento/alinhamento em vez de repetir o valor literal
   dentro de uma classe de componente nova.
   =================================================================== */

/* Espaçamento: margin */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; } .ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; } .mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Espaçamento: padding */
.p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.pt-1 { padding-top: 0.25rem; } .pt-2 { padding-top: 0.5rem; } .pt-3 { padding-top: 0.75rem; } .pt-4 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.25rem; } .pb-2 { padding-bottom: 0.5rem; } .pb-3 { padding-bottom: 0.75rem; } .pb-4 { padding-bottom: 1rem; }
.pl-2 { padding-left: 0.5rem; } .pr-2 { padding-right: 0.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* Largura / altura — escala compartilhada com .icon-* e .avatar-* (mesmos valores) */
.w-2 { width: 0.5rem; } .w-3 { width: 0.75rem; } .w-4 { width: 1rem; } .w-5 { width: 1.25rem; } .w-6 { width: 1.5rem; }
.w-8 { width: 2rem; } .w-10 { width: 2.5rem; } .w-12 { width: 3rem; } .w-16 { width: 4rem; } .w-full { width: 100%; }
.h-2 { height: 0.5rem; } .h-3 { height: 0.75rem; } .h-4 { height: 1rem; } .h-5 { height: 1.25rem; } .h-6 { height: 1.5rem; }
.h-8 { height: 2rem; } .h-10 { height: 2.5rem; } .h-12 { height: 3rem; } .h-16 { height: 4rem; } .h-full { height: 100%; }

/* Display (nomes curtos, estilo Bootstrap) */
.d-block { display: block; } .d-inline-block { display: inline-block; } .d-inline { display: inline; }
.d-flex { display: flex; } .d-inline-flex { display: inline-flex; } .d-grid { display: grid; } .d-none { display: none; }
.block { display: block; } .inline-block { display: inline-block; }
.flex { display: flex; } .inline-flex { display: inline-flex; } .hidden { display: none; }
.flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }

/* Texto */
.text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }

/* Bordas / forma */
.rounded { border-radius: var(--radius-md); } .rounded-full { border-radius: 9999px; }
.shrink-0 { flex-shrink: 0; }

.row-between, .spec-item-top, .link-row-inner, .conv-top { display: flex; align-items: center; justify-content: space-between; }
.checkbox-label { align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-label.align-start { align-items: flex-start; }
.checkbox-label.align-start input[type="checkbox"] { margin-top: 0.125rem; }
.checkbox-label input[type="checkbox"] { border-radius: 0.25rem; border: 1px solid var(--gray-300); accent-color: var(--primary-600); }

/* --- Auth shell (login, cadastro, recuperar senha) --- */
.auth-shell { min-height: 70vh; align-items: center; justify-content: center; padding: 3rem 1rem; }
.auth-container { width: 100%; max-width: 28rem; }
.auth-container.wide { max-width: 32rem; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.auth-header p { color: var(--gray-500); margin-top: 0.5rem; font-size: 0.875rem; }
.auth-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.auth-form { flex-direction: column; gap: 1rem; }
.auth-footer { text-align: center; color: var(--gray-500); margin-top: 1.5rem; }
.auth-footer a { font-weight: 500; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.form-grid-3 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .form-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.form-grid-4 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .form-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.form-grid-2.always { grid-template-columns: repeat(2, 1fr); }
fieldset { border: none; padding: 0; margin: 0; }
fieldset legend { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.75rem; padding: 0; }
.form-divider { border: none; border-top: 1px solid var(--gray-100); margin: 1rem 0; }

/* --- Linha de agendamento --- */
.appt-row {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 640px) { .appt-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.appt-row-left { align-items: flex-start; gap: 0.75rem; }
.appt-date-badge {
    width: 3rem; height: 3rem; background: var(--primary-50); border-radius: var(--radius-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.appt-date-badge .day { font-size: 0.75rem; color: var(--primary-600); font-weight: 700; line-height: 1; }
.appt-date-badge .month { font-size: 0.625rem; color: var(--primary-500); text-transform: uppercase; }
.appt-meta { color: var(--gray-500); margin-top: 0.125rem; }
.appt-row-right { align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* --- Botões de ação coloridos (aprovar/rejeitar/manter/remover) --- */
.pill-btn { font-weight: 500; padding: 0.375rem 0.75rem; border-radius: var(--radius-md); border: none; transition: background-color .15s, color .15s; }
.pill-btn.green { color: var(--green-600); background: var(--green-50); }
.pill-btn.green:hover { color: #15803d; }
.pill-btn.red { color: var(--red-600); background: var(--red-50); }
.pill-btn.red:hover { color: #b91c1c; }
.btn.green-solid { background: var(--green-600); color: #fff; }
.btn.green-solid:hover { background: #15803d; }
.btn.red-solid { background: var(--red-600); color: #fff; }
.btn.red-solid:hover { background: #b91c1c; }

/* --- Especialidades (accordion admin) --- */
.spec-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.spec-item-left { align-items: center; gap: 0.75rem; }
.spec-icon { width: 2.5rem; height: 2.5rem; background: var(--primary-50); border-radius: var(--radius-md); align-items: center; justify-content: center; }
.spec-icon i { color: var(--primary-600); }
.spec-item h3 { font-weight: 600; color: var(--gray-900); }
.spec-toggle-btn { color: var(--gray-400); background: none; border: none; }
.spec-toggle-btn:hover { color: var(--gray-600); }
.spec-body { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-100); }
.sub-tag { align-items: center; gap: 0.25rem; background: var(--accent-50); color: var(--accent-700); padding: 0.25rem 0.625rem; border-radius: 9999px; font-weight: 500; }
.sub-tag button { color: var(--accent-400); background: none; border: none; padding: 0; margin-left: 0.25rem; }
.sub-tag button:hover { color: var(--red-600); }
.add-sub-form { gap: 0.5rem; }
.add-sub-form input[name="name"] { flex: 1; }
.add-sub-form input[name="slug"] { width: 8rem; }

/* --- Campo de busca com ícone --- */
.input-icon-field { flex: 1; position: relative; }
.input-icon-field .icon-sm { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.input-icon-field input { padding-left: 2.5rem; }

/* --- Tabs de status --- */
.tab-bar { flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tab-pill { padding: 0.5rem 1rem; border-radius: var(--radius-md); font-weight: 500; transition: background-color .15s; background: var(--gray-100); color: var(--gray-600); border: 1px solid transparent; }
.tab-pill:hover { background: var(--gray-200); }
.tab-pill.active.yellow { background: var(--yellow-50); color: #854d0e; border-color: var(--yellow-200); }
.tab-pill.active.blue { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.tab-pill.active.green { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.tab-pill.active.red { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* --- Linha clicável em lista (profissionais, etc.) --- */
.link-row { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1rem; transition: border-color .15s, box-shadow .15s; }
.link-row:hover { border-color: var(--primary-300); box-shadow: var(--shadow-sm); }
.link-row-left { align-items: center; gap: 1rem; }

/* --- Menu dropdown de ação em tabela --- */
.mini-dropdown { position: relative; }
.mini-dropdown-menu { position: absolute; right: 0; margin-top: 0.25rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.25rem 0; z-index: 10; width: 8rem; }
.mini-dropdown-menu button, .mini-dropdown-menu a { display: block; width: 100%; text-align: left; padding: 0.375rem 0.75rem; font-size: 0.75rem; background: none; border: none; color: var(--gray-700); }
.mini-dropdown-menu button:hover, .mini-dropdown-menu a:hover { background: var(--gray-50); }

/* --- Logs / auditoria --- */
.filter-bar { flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.filter-bar input[type="text"] { flex: 1; min-width: 200px; }
.table-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; overflow-x: auto; }
.table-card table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.table-card thead tr { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); text-align: left; font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; }
.table-card th { padding: 0.75rem 1rem; font-weight: 500; white-space: nowrap; }
.table-card tbody tr { border-bottom: 1px solid var(--gray-100); }
.table-card tbody tr:last-child { border-bottom: none; }
.table-card td { padding: 0.75rem 1rem; color: var(--gray-600); }
.table-card td.nowrap { white-space: nowrap; }
.table-card td.strong { font-weight: 500; color: var(--gray-900); }
.table-card td.truncate { max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-badge { background: var(--gray-100); color: var(--gray-700); padding: 0.125rem 0.5rem; border-radius: var(--radius-sm); font-family: monospace; }

/* --- Página 404 --- */
.error-page { align-items: center; justify-content: center; min-height: 60vh; }
.error-page .code { font-size: 3.75rem; font-weight: 700; color: var(--primary-600); margin-bottom: 1rem; }
.error-page h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.error-page p { color: var(--gray-500); margin-bottom: 2rem; }

/* --- Dashboard admin --- */
.metric-tile { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1rem; text-align: center; }
.metric-tile .value { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.metric-tile .value.primary { color: var(--primary-700); }
.metric-tile .label { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }
.status-tile { border-radius: var(--radius-lg); border: 1px solid; padding: 0.75rem; text-align: center; transition: border-color .15s; }
.status-tile .value { font-size: 1.25rem; font-weight: 700; }
.status-tile .label { font-size: 0.75rem; }
.status-tile.yellow { background: var(--yellow-50); border-color: var(--yellow-200); }
.status-tile.yellow .value { color: #a16207; } .status-tile.yellow .label { color: #ca8a04; }
.status-tile.yellow:hover { border-color: #facc15; }
.status-tile.blue { background: #eff6ff; border-color: #bfdbfe; }
.status-tile.blue .value { color: #1d4ed8; } .status-tile.blue .label { color: #2563eb; }
.status-tile.blue:hover { border-color: #60a5fa; }
.status-tile.green { background: #f0fdf4; border-color: #bbf7d0; }
.status-tile.green .value { color: #15803d; } .status-tile.green .label { color: #16a34a; }
.status-tile.green:hover { border-color: #4ade80; }
.status-tile.red { background: #fef2f2; border-color: #fecaca; }
.status-tile.red .value { color: #b91c1c; } .status-tile.red .label { color: #dc2626; }
.status-tile.red:hover { border-color: #f87171; }
.mgmt-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .mgmt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mgmt-grid { grid-template-columns: repeat(4, 1fr); } }
.activity-row { align-items: center; justify-content: space-between; padding: 0.375rem 0; }
.activity-row .actor { font-weight: 500; color: var(--gray-900); }
.activity-row .action { color: var(--gray-500); }
.activity-row .detail { color: var(--gray-400); }
.activity-row .time { font-size: 0.75rem; color: var(--gray-400); flex-shrink: 0; }

/* --- Avaliações --- */
.star-picker { align-items: center; gap: 0.25rem; }
.star-picker button { padding: 0.25rem; background: none; border: none; }
.star-picker svg { width: 2rem; height: 2rem; color: var(--gray-300); transition: color .15s; }
.star-picker svg.filled, .star-icon-sm.filled, .star-icon-xs.filled, .pro-card-rating .star-icon {
    color: var(--yellow-400); fill: var(--yellow-400);
}
.star-picker .count { margin-left: 0.5rem; font-size: 0.875rem; color: var(--gray-500); }
.rating-summary { flex-direction: column; align-items: center; gap: 0; text-align: center; }
@media (min-width: 640px) { .rating-summary { flex-direction: row; align-items: center; gap: 1.5rem; text-align: left; } }
.rating-summary .big-number { font-size: 2.25rem; font-weight: 700; color: var(--gray-900); }
.rating-summary .stars-row { display: flex; align-items: center; gap: 0.125rem; margin: 0.25rem 0; justify-content: center; }
@media (min-width: 640px) { .rating-summary .stars-row { justify-content: flex-start; } }
.star-icon-sm { width: 1.25rem; height: 1.25rem; color: var(--gray-200); }
.star-icon-xs { width: 1rem; height: 1rem; color: var(--gray-200); }
.rating-dist { flex: 1; width: 100%; flex-direction: column; gap: 0.375rem; }
.rating-dist-row { align-items: center; gap: 0.5rem; }
.rating-dist-row .num { width: 0.75rem; color: var(--gray-500); text-align: right; }
.rating-dist-row .bar-track { flex: 1; height: 0.5rem; background: var(--gray-100); border-radius: 9999px; overflow: hidden; }
.rating-dist-row .bar-fill { height: 100%; background: var(--yellow-400); border-radius: 9999px; }
.rating-dist-row .count { width: 2rem; color: var(--gray-400); font-size: 0.75rem; }
.review-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; }
.review-header { align-items: flex-start; justify-content: space-between; margin-bottom: 0.5rem; }
.review-header .date { font-size: 0.75rem; color: var(--gray-400); }
.review-comment { color: var(--gray-600); line-height: 1.625; }
.review-report { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-50); }
.review-report-btn { color: var(--gray-400); background: none; border: none; transition: color .15s; }
.review-report-btn:hover { color: var(--red-500); }
.review-report-form { margin-top: 0.5rem; gap: 0.5rem; }
.review-report-form input { flex: 1; padding: 0.375rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius-md); font-size: 0.75rem; }
.review-report-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--red-500); }
.review-report-form button { background: var(--red-500); color: #fff; padding: 0.375rem 0.75rem; border-radius: var(--radius-md); font-size: 0.75rem; border: none; }
.review-report-form button:hover { background: var(--red-600); }

/* --- Painel do profissional --- */
.file-input::file-selector-button { margin-right: 0.75rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-md); border: none; font-size: 0.75rem; font-weight: 500; background: var(--primary-50); color: var(--primary-700); }
.tag-checks { flex-wrap: wrap; gap: 0.75rem; }
.tag-check { align-items: center; gap: 0.5rem; cursor: pointer; }
.status-pill { padding: 0.25rem 0.75rem; border-radius: 9999px; font-weight: 600; }
.status-pill.pending { background: #fef9c3; color: #854d0e; }
.status-pill.review { background: #dbeafe; color: #1e40af; }
.status-pill.approved { background: #dcfce7; color: #166534; }
.status-pill.rejected { background: #fee2e2; color: #991b1b; }
.summary-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .summary-grid { grid-template-columns: repeat(2, 1fr); } }
.summary-grid dt { color: var(--gray-500); }
.summary-grid dd { font-weight: 500; color: var(--gray-900); margin: 0.125rem 0 0; }
.doc-item { align-items: center; justify-content: space-between; background: var(--gray-50); border-radius: var(--radius-md); padding: 0.75rem 1rem; }
.doc-item .info { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.quick-actions-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .quick-actions-grid { grid-template-columns: repeat(2, 1fr); } }
.quick-action { align-items: center; gap: 0.75rem; background: var(--gray-50); border-radius: var(--radius-md); padding: 1rem; transition: background-color .15s; }
.quick-action:hover { background: var(--gray-100); }
.quick-action .icon-md { color: var(--primary-600); }

/* --- Editor de agenda (acordeão por dia) --- */
.day-editor { border-bottom: 1px solid var(--gray-100); padding-bottom: 1rem; }
.day-editor:last-child { border-bottom: none; }
.day-toggle { align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 0.5rem 0; background: none; border: none; }
.day-toggle .name { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.day-toggle .count { font-size: 0.75rem; color: var(--primary-600); font-weight: 500; }
.day-toggle .chevron { color: var(--gray-400); transition: transform .15s; }
.day-toggle .chevron.open { transform: rotate(180deg); }
.day-body { margin-top: 0.75rem; flex-direction: column; gap: 0.5rem; }
.time-row, .action-row, .conv-header-inner, .sort-control { display: flex; align-items: center; gap: 0.5rem; }
.time-row input[type="time"] { padding: 0.5rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius-md); font-size: 0.875rem; }
.time-row .remove-btn { color: var(--red-500); opacity: 0.6; background: none; border: none; padding: 0.25rem; }
.time-row .remove-btn:hover { opacity: 1; color: var(--red-700); }
.add-slot-btn { align-items: center; gap: 0.25rem; color: var(--primary-600); font-weight: 500; background: none; border: none; margin-top: 0.25rem; }
.add-slot-btn:hover { color: var(--primary-700); }
.block-item { align-items: center; justify-content: space-between; background: var(--gray-50); border-radius: var(--radius-md); padding: 0.75rem 1rem; }

/* --- Resumo (dl) --- */
.summary-list { flex-direction: column; gap: 0.5rem; }
.summary-list .row { display: flex; justify-content: space-between; margin: 0; }
.summary-list dt { color: var(--gray-500); }
.summary-list dd { margin: 0; color: var(--gray-900); }
.summary-list dd.strong { font-weight: 500; }
.summary-list .total dt { font-weight: 600; color: var(--gray-900); }
.summary-list .total dd { font-weight: 700; color: var(--primary-700); }
.summary-list .total { font-size: 1rem; }
.summary-divider { border: none; border-top: 1px solid var(--gray-100); margin: 0.25rem 0; }

/* --- Método de pagamento --- */
.pay-option { align-items: center; gap: 0.75rem; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 1rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pay-option:hover { border-color: var(--gray-300); }
.pay-option.active { border-color: var(--primary-500); background: var(--primary-50); }

/* --- Cards de estatística --- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 1024px) { .stat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1rem; }
.stat-tile .label { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.stat-tile .value { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.stat-tile .value.primary { color: var(--primary-700); }
.stat-tile .value.green { color: var(--green-700); }
.stat-tile .note { font-size: 0.75rem; color: var(--yellow-700); margin-top: 0.125rem; }

/* --- Tabela de dados --- */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { border-bottom: 1px solid var(--gray-100); text-align: left; font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; }
.data-table th { padding-bottom: 0.5rem; font-weight: 500; }
.data-table th.right { text-align: right; }
.data-table th.center { text-align: center; }
.data-table tbody tr { border-bottom: 1px solid var(--gray-50); }
.data-table td { padding: 0.625rem 0; color: var(--gray-600); }
.data-table td.right { text-align: right; }
.data-table td.center { text-align: center; }
.data-table td.strong { font-weight: 500; color: var(--gray-900); }

/* --- Linha de transação --- */
.tx-row { padding: 1rem; align-items: center; justify-content: space-between; }
.tx-row .amount { font-weight: 600; font-size: 0.875rem; color: var(--gray-900); text-align: right; }

/* --- Recibo (imprimível) --- */
.receipt-header { align-items: center; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }
.receipt-brand { align-items: center; gap: 0.5rem; color: var(--primary-700); font-weight: 700; }
.receipt-header .subtitle { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.25rem; }
.receipt-meta { text-align: right; }
.receipt-meta .id { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.receipt-meta .date { font-size: 0.75rem; color: var(--gray-500); }
.receipt-parties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.receipt-parties h3 { font-size: 0.75rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; margin-bottom: 0.5rem; }
.receipt-info { background: var(--gray-50); border-radius: var(--radius-md); padding: 1rem; color: var(--gray-500); }
.receipt-info .row { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
.receipt-info .row:last-child { margin-bottom: 0; }
.receipt-info .row span:last-child { color: var(--gray-700); }
.receipt-info .row .status-ok { color: var(--green-700); font-weight: 500; }
.receipt-footnote { text-align: center; color: var(--gray-400); margin-top: 1.5rem; }
@media print { .print-hidden { display: none; } }

/* --- Listas (agendamentos, conversas) --- */
.list-block { margin-bottom: 2rem; }
.list-block h2 { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); margin-bottom: 1rem; }
.list-items { flex-direction: column; gap: 0.75rem; }
.action-link { font-weight: 500; background: none; border: none; padding: 0; cursor: pointer; }
.action-link.primary { color: var(--primary-600); }
.action-link.primary:hover { color: var(--primary-700); }
.action-link.green { color: var(--green-600); }
.action-link.green:hover { color: #15803d; }
.action-link.blue { color: #2563eb; }
.action-link.blue:hover { color: var(--blue-700); }
.action-link.red { color: var(--red-500); }
.action-link.red:hover { color: var(--red-700); }

/* --- Inbox / conversas --- */
.conv-item { align-items: center; gap: 0.75rem; padding: 1rem; border-radius: var(--radius-lg); transition: background-color .15s; }
.conv-item.unread { background: var(--primary-50); border: 1px solid var(--primary-100); }
.conv-item:not(.unread) { background: #fff; border: 1px solid var(--gray-200); }
.conv-item:not(.unread):hover { background: var(--gray-50); }
.conv-content { flex: 1; min-width: 0; }
.conv-time { color: var(--gray-400); }
.conv-preview { color: var(--gray-500); margin-top: 0.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-unread-badge { width: 1.25rem; height: 1.25rem; background: var(--primary-600); color: #fff; font-weight: 700; border-radius: 9999px; align-items: center; justify-content: center; flex-shrink: 0; }

/* --- Janela de chat --- */
.chat-window { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.chat-messages { padding: 1rem; min-height: 300px; max-height: 500px; overflow-y: auto; }
.chat-input-form { border-top: 1px solid var(--gray-200); padding: 0.75rem; gap: 0.5rem; }
.chat-input-form input { flex: 1; padding: 0.625rem 1rem; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); font-size: 0.875rem; }
.chat-input-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--primary-500); border-color: var(--primary-500); }
.chat-input-form button { background: var(--primary-600); color: #fff; padding: 0.625rem 1rem; border-radius: var(--radius-lg); border: none; transition: background-color .15s; }
.chat-input-form button:hover { background: var(--primary-700); }
.conv-header { align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.conv-header h1 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }

/* --- Chat --- */
.chat-row { margin-bottom: 0.75rem; }
.chat-row.mine { justify-content: flex-end; }
.chat-row:not(.mine) { justify-content: flex-start; }
.chat-bubble { max-width: 75%; border-radius: 1rem; padding: 0.625rem 1rem; }
.chat-row:not(.mine) .chat-bubble { background: var(--gray-100); color: var(--gray-900); border-bottom-left-radius: 0.25rem; }
.chat-row.mine .chat-bubble { background: var(--primary-600); color: #fff; border-bottom-right-radius: 0.25rem; }
.chat-sender { font-weight: 600; color: var(--gray-500); margin-bottom: 0.125rem; }
.chat-body { line-height: 1.625; white-space: pre-line; }
.chat-time { margin-top: 0.25rem; text-align: right; }
.chat-row:not(.mine) .chat-time { color: var(--gray-400); }
.chat-row.mine .chat-time { color: var(--primary-200); }

/* --- Card de profissional (busca) --- */
.pro-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.pro-card:hover { border-color: var(--primary-300); box-shadow: var(--shadow-md); }
.pro-card:hover .pro-card-name { color: var(--primary-700); }
.pro-card-accent { height: 0.375rem; background: linear-gradient(to right, var(--primary-500), var(--accent-500)); }
.pro-card-body { padding: 1.25rem; }
.pro-card-header { align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.pro-card-header > div { min-width: 0; }
.pro-card-name { font-weight: 600; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.pro-card-tags { flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.pro-card-subs { color: var(--gray-500); margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pro-card-location { align-items: center; gap: 0.25rem; color: var(--gray-400); }
.pro-card-footer { align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); }
.pro-card-rating { align-items: center; gap: 0.25rem; }
.pro-card-rating strong { color: var(--gray-900); }
.pro-card-price { font-weight: 600; color: var(--gray-900); }
.pro-card-price small { font-weight: 400; }

/* --- Horários disponíveis (calendário de agendamento) --- */
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.slot-btn {
    width: 100%; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
    border: 1px solid var(--primary-300); color: var(--primary-700); border-radius: var(--radius-md);
    text-align: center; background: #fff; transition: background-color .15s, border-color .15s;
}
.slot-btn:hover { background: var(--primary-50); border-color: var(--primary-500); }
.slot-btn.disabled { border-color: var(--gray-300); color: var(--gray-600); }
.slot-btn.disabled:hover { background: var(--gray-50); }

/* --- Paginação --- */
.pagination { align-items: center; justify-content: center; gap: 0.25rem; margin-top: 2rem; }
.pagination a, .pagination button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    background: transparent;
    border: none;
    transition: background-color .15s;
}
.pagination a:hover, .pagination button:hover { background: var(--gray-100); }
.pagination .active { background: var(--primary-600); color: #fff; }
.pagination-ellipsis { color: var(--gray-400); padding: 0 0.5rem; }

/* --- Resultados de busca --- */
.results-header { align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.results-header strong { color: var(--gray-900); }
.select-inline { width: auto; padding: 0.375rem 0.75rem; }
.results-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
.empty-state { padding: 3rem; text-align: center; }
.empty-state .icon-2xl { margin: 0 auto 1rem; color: var(--gray-300); }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }

/* --- Header --- */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 50; }
.site-header-inner { align-items: center; justify-content: space-between; height: 4rem; }
.site-logo { align-items: center; gap: 0.5rem; color: var(--primary-700); font-weight: 700; }
.site-logo .accent { color: var(--accent-600); }
.site-nav { display: none; align-items: center; gap: 1.5rem; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); }
.site-nav a:hover { color: var(--primary-700); }
.site-actions { display: none; align-items: center; gap: 0.75rem; }
.site-actions .btn { padding: 0.5rem 1rem; }
@media (min-width: 768px) {
    .site-nav, .site-actions { display: flex; }
    .hamburger-btn { display: none; }
}
.hamburger-btn { padding: 0.5rem; color: var(--gray-600); background: none; border: none; }
.icon-btn { position: relative; padding: 0.5rem; color: var(--gray-500); background: none; border: none; transition: color .15s; }
.icon-btn:hover { color: var(--primary-700); }
.user-menu-btn {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
    background: none; border: none; padding: 0.5rem 0.75rem; border-radius: var(--radius-md);
    transition: color .15s, background-color .15s;
}
.user-menu-btn:hover { background: var(--gray-50); color: var(--primary-700); }
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; margin-top: 0.25rem; width: 12rem;
    background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200); padding: 0.25rem 0; z-index: 50;
}
.dropdown-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--gray-700); }
.dropdown-menu a:hover { background: var(--gray-50); }
.dropdown-menu a.danger { color: var(--red-600); }
.dropdown-menu a.danger:hover { background: var(--red-50); }
.dropdown-divider { margin: 0.25rem 0; border: none; border-top: 1px solid var(--gray-100); }
.mobile-nav { display: none; border-top: 1px solid var(--gray-100); background: #fff; padding: 0 1rem 1rem; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); }
.mobile-nav a { padding: 0.5rem 0; }
.mobile-nav a:hover { color: var(--primary-700); }
.mobile-nav a.danger { color: var(--red-600); }
.mobile-nav a.signup { background: var(--primary-600); color: #fff; text-align: center; padding: 0.5rem 1rem; border-radius: var(--radius-md); transition: background-color .15s; }
.mobile-nav a.signup:hover { background: var(--primary-700); }

/* --- Footer --- */
.site-footer { background: var(--gray-900); color: var(--gray-400); margin-top: auto; }
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.site-footer .bottom { border-top: 1px solid var(--gray-800); margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: 0.75rem; }
.site-footer .container { padding-top: 3rem; padding-bottom: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { align-items: center; gap: 0.5rem; color: #fff; font-weight: 700; margin-bottom: 0.75rem; }
.footer-brand .accent { color: var(--accent-400); }
.footer-brand-icon { color: var(--primary-400); }
.footer-tagline { line-height: 1.625; }
