/**
 * PDRx – Design System Moderno, Calmo e Premium.
 * Paleta relaxante de azul, verde-menta e cinzas suaves.
 * Tipografia: Outfit (títulos) e Inter (corpo).
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Cores Calmas / Psicologia da Saúde */
    --primary: #0d9488;          /* Soothing Teal (calma e saúde) */
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;    /* Mint background */
    --primary-border: #ccfbf1;
    
    --secondary: #1e3a8a;        /* Calming Blue */
    --secondary-hover: #172554;
    --secondary-light: #eff6ff;

    --accent: #6366f1;           /* Lavender / Indigo accent */
    --accent-light: #e0e7ff;
    
    /* Neutros suaves */
    --bg: #f8fafc;               /* Slate-50 background */
    --white: #ffffff;
    --text: #0f172a;             /* Slate-900 */
    --text-secondary: #64748b;   /* Slate-500 */
    --border: #e2e8f0;           /* Slate-200 */
    --border-hover: #cbd5e1;
    
    /* Status */
    --success: #10b981;          /* Emerald green */
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    
    --warning: #f59e0b;          /* Amber */
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    
    --danger: #ef4444;           /* Red */
    --danger-light: #fef2f2;
    --danger-border: #fee2e2;

    /* Bordas arredondadas modernas */
    --raio-card: 16px;
    --raio-input: 12px;
    --raio-botao: 12px;
    --raio-chip: 100px;
    
    /* Sombras e Efeitos */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    
    /* Neumorfismo leve para cards */
    --shadow-neumorphic: 8px 8px 20px #e2e8f0, -8px -8px 20px #ffffff;
    --shadow-neumorphic-inset: inset 2px 2px 5px #e2e8f0, inset -2px -2px 5px #ffffff;
    
    /* Touch target padrão */
    --min-touch: 44px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   LAYOUT GERAL DA ÁREA LOGADA
   ========================================================================== */

.layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar fixada no desktop */
.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
}

/* Resumo do usuário na Sidebar */
.user-profile-summary {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid var(--border);
    background: var(--primary-light);
}

.user-avatar-wrapper {
    flex-shrink: 0;
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-avatar-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    width: fit-content;
    margin-top: 0.15rem;
}
.user-status.ativa, .user-status.trial {
    background: var(--success-light);
    color: var(--success);
}
.user-status.inativa, .user-status.sem_assinatura {
    background: var(--danger-light);
    color: var(--danger);
}

/* Links do menu sidebar */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-left: 0.75rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--raio-botao);
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.menu-item i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.menu-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.menu-item:hover i {
    color: var(--primary);
}

.menu-item.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.menu-item.active i {
    color: var(--white);
}

.menu-logout-spacer {
    margin-top: auto;
}

.logout-link {
    color: var(--danger);
}
.logout-link i {
    color: var(--danger);
}
.logout-link:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* Cabeçalho mobile */
.topbar-mobile {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 60px;
    padding: 0 1.25rem;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.topbar-toggle {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
}

.topbar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.topbar-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.topbar-user-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.topbar-user-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Área de Conteúdo Layout */
.main-content-layout {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
}

.conteudo-principal {
    flex: 1;
    padding: 2rem 2.5rem;
}

.conteudo-principal .container {
    max-width: 960px;
    margin: 0;
    padding: 0;
}

.rodape-logada {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive sidebar toggle logic */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.aberta {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    .sidebar-close {
        display: block;
    }
    .topbar-mobile {
        display: flex;
    }
    .main-content-layout {
        margin-left: 0;
        padding-top: 60px;
    }
    .conteudo-principal {
        padding: 1.5rem 1.25rem;
    }
    .rodape-logada {
        padding: 1.5rem 1.25rem;
    }
}

/* ==========================================================================
   CARDS E COMPONENTES (SOFT UI / NEUMORFISM)
   ========================================================================== */

.card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--raio-card);
    box-shadow: var(--shadow-neumorphic);
    border: 1px solid rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.8;
}

.card h2, .card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Destaque */
.card-destaque {
    border-left: 5px solid var(--primary);
}
.card-destaque::before {
    display: none;
}

/* ==========================================================================
   MENSAGENS E ALERTAS (NÃO ANSIOSAS)
   ========================================================================== */

.mensagem {
    padding: 1rem 1.25rem;
    border-radius: var(--raio-card);
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.mensagem-erro {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid var(--warning-border);
}

.mensagem-ok, .mensagem-sucesso {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid var(--success-border);
}

/* ==========================================================================
   ABAS / SUB-NAVEGAÇÃO (MODERNO CHIPS)
   ========================================================================== */

.abas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.abas a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 38px;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.abas a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.abas a.ativa {
    background: var(--primary);
    color: var(--white);
}

.abas a svg {
    flex-shrink: 0;
}

/* ==========================================================================
   LISTAS DE DADOS
   ========================================================================== */

.list-group {
    list-style: none;
    background: var(--white);
    border-radius: var(--raio-input);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: var(--primary-light);
}

.list-group-item strong {
    color: var(--text);
}

.list-group-item .texto-pequeno {
    display: block;
    margin-top: 0.25rem;
}

/* Listas simples */
.lista-links {
    list-style: none;
}
.lista-links li {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lista-links li:last-child {
    border-bottom: none;
}
.lista-links a {
    font-weight: 600;
    color: var(--secondary);
}
.lista-links a:hover {
    color: var(--primary);
}

/* ==========================================================================
   FORMULÁRIOS E INPUTS (NEUMÓRFICOS SUAVES)
   ========================================================================== */

form label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

form label:first-of-type {
    margin-top: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--raio-input);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    box-shadow: var(--shadow-neumorphic-inset);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3Csvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    appearance: none;
    padding-right: 2.5rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Campos de somente leitura */
.campo-somente-leitura {
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-radius: var(--raio-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

label.checkbox {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 1rem;
    font-size: 0.9rem;
}
label.checkbox input {
    margin-right: 0;
}

/* ==========================================================================
   BOTÕES COM MICRO-ANIMAÇÕES
   ========================================================================== */

/* Botão Primário */
button,
button[type="submit"],
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: var(--raio-botao);
    min-height: 46px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

button:hover,
button[type="submit"]:hover,
.btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 14px rgba(13, 148, 136, 0.3);
}

button:active,
button[type="submit"]:active,
.btn:active {
    transform: scale(0.97);
}

/* Botão Secundário / Outline */
.btn-secundario,
button.btn-secundario {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}
.btn-secundario:hover,
button.btn-secundario:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

/* Botão Ghost */
.btn-ghost,
button.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    box-shadow: none;
}
.btn-ghost:hover,
button.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
    box-shadow: none;
}

/* Botão perigoso (Excluir) */
form button[name="excluir_id"],
.btn-perigo {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger-border);
    box-shadow: none;
    min-height: 34px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 0;
}
form button[name="excluir_id"]:hover,
.btn-perigo:hover {
    background: var(--danger);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   TELA DE LOGIN E CADASTRO
   ========================================================================== */

.pagina-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top left, var(--primary-light), var(--bg));
}

.container-form {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.container-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.container-form h1 {
    font-size: 2.25rem;
    color: var(--primary);
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.container-form .subtitulo {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.container-form button[type="submit"] {
    width: 100%;
    margin-top: 1.5rem;
}

.separador-form {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
}
.separador-form::before,
.separador-form::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}
.separador-form::before { left: 0; }
.separador-form::after { right: 0; }

/* Botão Google */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--raio-botao);
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background-color: var(--bg);
    box-shadow: var(--shadow-md);
}

.btn-google::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.65rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.links-form {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.links-form a {
    font-weight: 600;
}

/* ==========================================================================
   PÁGINA QR PÚBLICA DE EMERGÊNCIA
   ========================================================================== */

.pagina-q {
    background: #f1f5f9;
    padding: 1.5rem 0;
}

.pagina-q .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cabeçalho da Ficha de Emergência */
.pagina-q .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--danger-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.pagina-q .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pagina-q .selo {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.pagina-q h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.pagina-q .card {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

/* Destaque de alerta para itens graves */
.pagina-q .card.alerta {
    background: #fff8f8;
    border-left: 6px solid var(--danger);
}
.pagina-q .card.alerta::before {
    display: none;
}
.pagina-q .card.alerta h2 {
    color: #991b1b;
}

.pagina-q .foto-ampliavel {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border-radius: 50%;
    overflow: hidden;
    width: 90px;
    height: 90px;
    transition: transform 0.2s;
}
.pagina-q .foto-ampliavel:hover {
    transform: scale(1.05);
}

.pagina-q .aviso-atencao {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid var(--warning-border);
    padding: 0.75rem 1rem;
    border-radius: var(--raio-input);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pagina-q .footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}
.pagina-q .footer a {
    color: var(--text-secondary);
}

/* ==========================================================================
   LANDING PAGE (ESTILO APP SAÚDE / BEM-ESTAR)
   ========================================================================== */

/* Testimonials, Neumorphic showcase e Hero atualizados da Landing Page */
.landing-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdfa 100%);
    padding: 5rem 1rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-neumorphic);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 25px #cbd5e1, -10px -10px 25px #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--primary);
}

.testimonial-author {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.testimonial-role {
    font-size: 0.775rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.75rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-showcase {
    background: var(--white);
    padding: 5rem 1rem;
}

.feature-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.3rem 0.8rem;
    border-radius: var(--raio-chip);
    width: fit-content;
    margin: 0 auto 1rem;
    text-transform: uppercase;
}

/* App Download CTA Button Style */
.download-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: background 0.2s, transform 0.1s;
}
.btn-download:hover {
    background: #000000;
    color: var(--white);
}
.btn-download i {
    font-size: 1.75rem;
}
.btn-download span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.btn-download .small-text {
    font-size: 0.7rem;
    font-weight: 400;
    color: #94a3b8;
}
.btn-download .bold-text {
    font-size: 1.05rem;
    font-weight: 600;
}
