/*
 * Dr. Pires Theme - Performance Edition
 * Version: 14.0 - FINAL COLORS + MOBILE HERO FIX
 * Last Update: 2025-12-27 13:49
 * Cache Buster: FORCE_RELOAD_V14
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Organic Sage & Warm Beige Palette */
    --primary: #52796F;
    --primary-light: #84A98C;
    --primary-dark: #354F52;
    --secondary: #D4A373;
    --secondary-light: #FAEDCD;

    --bg-body: #FCFDFD;
    --bg-soft: #F5F0EB;
    --bg-sage: #EFF5F3;
    /* Novo Verde Sábia Suave */
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-main: #2F3E46;
    --text-muted: #6B7C85;
    --text-light: #FFFFFF;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-pill: 100px;

    --shadow-sm: 0 4px 12px rgba(82, 121, 111, 0.08);
    --shadow-md: 0 12px 30px rgba(82, 121, 111, 0.12);
    --shadow-lg: 0 25px 50px rgba(82, 121, 111, 0.15);

    --transition: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease;
}

body.menu-open {
    overflow: hidden !important;
}

/* Utilities */
.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2rem;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 2rem;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
}

.nav-pill {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.main-menu {
    display: flex;
    gap: 2.5rem;
}

.main-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons - Premium Edition com Efeitos Especiais */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem !important;
    height: 54px !important;
    min-height: 54px !important;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    gap: 0.75rem;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    box-sizing: border-box !important;
}

/* Efeito Shimmer/Brilho que passa pelo botão */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

/* Botão Primário com Gradiente Animado */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 10px 25px rgba(53, 79, 82, 0.3);
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {

    0%,
    100% {
        box-shadow: 0 10px 25px rgba(53, 79, 82, 0.3);
    }

    50% {
        box-shadow: 0 10px 30px rgba(53, 79, 82, 0.4);
    }
}

.btn-primary:hover {
    background-position: 100% 100%;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(53, 79, 82, 0.4);
    animation: none;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 8px 20px rgba(53, 79, 82, 0.3);
}

/* Botão Secundário com Efeito de Preenchimento */
.btn-secondary {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    position: relative;
    z-index: 1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-dark);
    border-radius: var(--radius-pill);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(53, 79, 82, 0.2);
}

.btn-secondary:hover::after {
    transform: scaleX(1);
}

/* Botão Light com Gradiente Sutil */
.btn-light {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
    color: var(--primary);
    padding: 1rem 3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(82, 121, 111, 0.15);
}

.btn-light:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(82, 121, 111, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Botão Share com Rotação Suave */
.btn-share {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(82, 121, 111, 0.2);
    border: none;
}

.btn-share:hover {
    transform: translateY(-4px) rotate(5deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(53, 79, 82, 0.3);
}

.btn-share:active {
    transform: translateY(-2px) rotate(0deg) scale(1.05);
}

/* Efeito Ripple ao clicar (aplicado via JS ou apenas visual) */
.btn:active {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(82, 121, 111, 0.4);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(82, 121, 111, 0);
    }
}

/* Mobile Menu Toggle Animation */

/* Grid de Serviços 2x2 (Apenas Mobile) */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colunas em mobile */
        gap: 1rem;
        /* Espaçamento menor */
    }

    .service-card {
        padding: 1.5rem;
        /* Padding menor */
        text-align: center;
        /* Estilo de Card Quadrado */
        aspect-ratio: 1 / 1;
        /* Força o card a ser quadrado */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: var(--radius-sm);
        /* Bordas levemente arredondadas */
        background: var(--bg-soft);
        /* Fundo sutil */
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: none;
        /* Remove sombra para visual mais limpo */
    }

    .service-card:hover {
        transform: none;
        /* Remove animação de hover para mobile */
    }

    .service-icon {
        margin-bottom: 0.5rem;
        /* Espaçamento menor */
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 12px;
    }

    .service-card h3 {
        font-size: 1rem;
        /* Título menor */
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .service-card p {
        font-size: 0.75rem;
        /* Fonte bem pequena para caber no card 2x2 */
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Limita a 2 linhas */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .service-card::after {
        display: none;
        /* Remove a linha de hover */
    }
}

/* Mobile Menu Toggle Animation */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
    transition: transform 0.3s var(--transition);
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Toggle Menu Active State (Animates to X) */
body.menu-open .hamburger-inner {
    transform: rotate(45deg);
}

body.menu-open .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

body.menu-open .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* Mobile Overlay Redesign */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 253, 250, 0.95);
    /* Warm White tinted */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

body.menu-open .mobile-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-menu-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(82, 121, 111, 0.1);
    margin-bottom: 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered link animations */
body.menu-open .mobile-link:nth-child(1) {
    transition-delay: 0.2s;
}

body.menu-open .mobile-link:nth-child(2) {
    transition-delay: 0.3s;
}

body.menu-open .mobile-link:nth-child(3) {
    transition-delay: 0.4s;
}

body.menu-open .mobile-link:nth-child(4) {
    transition-delay: 0.5s;
}

body.menu-open .mobile-link:nth-child(5) {
    transition-delay: 0.6s;
}

.mobile-link:hover {
    color: var(--primary);
    padding-left: 10px;
}

.mobile-cta {
    margin-top: 2rem;
    font-size: 1.1rem;
    padding: 1.25rem;
    width: 100%;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.7s;
}

body.menu-open .mobile-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(82, 121, 111, 0.1);
    margin-top: 2rem;
}

.mobile-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.mobile-socials a {
    font-size: 1.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.mobile-socials a:hover {
    color: var(--primary-dark);
}

.mobile-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    padding: 12rem 0 8rem;
    background: white;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 6rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-soft);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    height: 600px;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    object-position: top center !important;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
}

.floating-badge {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
}

.badge-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
}

.floating-badge h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.floating-badge p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-muted);
}

/* Sections */
.diferenciais-section,
.services-section {
    padding: 8rem 0;
    background: var(--bg-soft);
}

.about-section,
.faq-section,
.blog-section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Differentials */
/* About Stats */
/* About Stats Container */
/* About Stats Container - Reforçado com ID */
#sobre .stats-bar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 5rem !important;
    /* Espaço generoso entre as duas linhas */
    margin-top: 3rem;
}



#sobre .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

/* Novo Grid de 3 Colunas para Diferenciais Chave */
#sobre .stats-grid.three-cols {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
}

@media (max-width: 992px) {
    #sobre .stats-grid.three-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    #sobre .stats-grid.three-cols {
        grid-template-columns: 1fr !important;
    }
}

/* Estilo para os novos itens de diferencial chave */
.stat-item.core-feature-item {
    padding: 2rem 1.5rem;
    background: var(--bg-sage);
    /* Cor de fundo suave para destaque */
    border: 1px solid rgba(82, 121, 111, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-item.core-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(82, 121, 111, 0.15);
}

.stat-item.core-feature-item .stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.stat-item.core-feature-item .stat-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-item.core-feature-item .stat-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Ajuste para a nova linha de diferenciais */
#sobre .core-features-row {
    margin-top: 3rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 3rem;
}

/* Novo Grid de 3 Colunas para Diferenciais Chave */
#sobre .stats-grid.three-cols {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
}

@media (max-width: 992px) {
    #sobre .stats-grid.three-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    #sobre .stats-grid.three-cols {
        grid-template-columns: 1fr !important;
    }
}

/* Estilo para os novos itens de diferencial chave */
.stat-item.core-feature-item {
    padding: 2rem 1.5rem;
    background: var(--bg-sage);
    /* Cor de fundo suave para destaque */
    border: 1px solid rgba(82, 121, 111, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-item.core-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(82, 121, 111, 0.15);
}

.stat-item.core-feature-item .stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.stat-item.core-feature-item .stat-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-item.core-feature-item .stat-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Ajuste para a nova linha de diferenciais */
#sobre .core-features-row {
    margin-top: 3rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 3rem;
}

/* Numeric Stats Row - Forçar Lado a Lado e Abaixo */
#sobre .numeric-stats-row {
    margin-top: 3rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 4rem;
    width: 100% !important;
    clear: both !important;
}

#sobre .numeric-stats-row .stats-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4rem !important;
    max-width: 1100px;
    margin: 0 auto !important;
}

#sobre .numeric-stats-row .stat-item {
    flex: 0 1 auto !important;
    min-width: 180px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Highlight Card (Albert Einstein) */
.stat-item.highlight-card {
    border: 2px solid var(--accent);
    /* Turn Borda Dourada */
    background: linear-gradient(145deg, #ffffff, #fffdf5);
    box-shadow: 0 10px 30px rgba(212, 163, 115, 0.2);
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(82, 121, 111, 0.1);
    height: 100%;
    /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* For better stacking */
}

/* Modo Número */
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modo Ícone (Credencial) */
.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.stat-item.highlight-card .stat-icon {
    color: var(--accent);
    /* Icon becomes Gold in highlight card */
}

.stat-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-text {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.differential-card:hover {
    transform: translateY(-5px);
}

.diff-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-soft);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.75rem;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.stats-bar {
    display: flex;
    gap: 4rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    margin: 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(82, 121, 111, 0.02) 0%, rgba(132, 169, 140, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(82, 121, 111, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(245, 240, 235, 0.5) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    backface-visibility: hidden;
    /* Prevenir sumiço no giro */
}

.service-card:hover .service-icon {
    background: var(--primary) !important;
    color: #ffffff !important;
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(82, 121, 111, 0.3) !important;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover::after {
    width: 100%;
}

/* FAQ */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item:hover {
    border-color: rgba(82, 121, 111, 0.1);
    box-shadow: 0 4px 12px rgba(82, 121, 111, 0.05);
}

.faq-item.active {
    box-shadow: 0 8px 24px rgba(82, 121, 111, 0.12);
    border-color: var(--primary-light);
    background: white;
    /* Cor sólida para não ficar transparente */
}

.faq-header {
    padding: 1.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: white;
    /* Garantir fundo sólido */
}

.faq-header:hover {
    background: white;
}

.faq-header h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 14px;
}

.faq-toggle {
    width: 36px;
    height: 36px;
    background: var(--bg-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg) scale(1.05);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(82, 121, 111, 0.3);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.75rem;
    color: var(--text-muted);
    line-height: 1.8;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out;
    opacity: 0;
}

.faq-item.active .faq-body {
    max-height: 1000px;
    /* Suficiente para a maioria das respostas */
    padding: 0 1.75rem 1.75rem;
    opacity: 1;
}

.blog-section {
    background-color: var(--bg-sage);
    padding: 8rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(82, 121, 111, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(82, 121, 111, 0.12);
    border-color: var(--primary-light);
}

.blog-image {
    height: 260px;
    position: relative;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-card:hover img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-dark);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.blog-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.blog-link {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-link:hover {
    color: var(--primary);
    gap: 0.75rem;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

.placeholder-blog-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.placeholder-blog-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.5;
}

.placeholder-blog-image i {
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.blog-card:hover .placeholder-blog-image {
    transform: scale(1.05);
}

/* Category Bages/Tags */
.article-category,
.blog-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    color: var(--primary-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(82, 121, 111, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.25rem !important;
}

.article-category i,
.blog-meta i {
    font-size: 1rem;
    color: var(--primary);
}

/* Instagram Section */
.instagram-section {
    padding: 8rem 0;
    background-color: white;
}

/* Instagram Feed Plugin Overrides (Tapa o feio kkk) */
#sb_instagram #sbi_load .sbi_load_btn,
#sb_instagram #sbi_load .sbi_follow_btn,
.sbi_follow_btn--desktop,
.sbi_follow_btn--mobile {
    display: none !important;
}

#sb_instagram {
    padding-bottom: 0 !important;
}

.insta-feed-container {
    max-width: 1200px;
    margin: 0 auto;
}

.insta-footer-btn .btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(82, 121, 111, 0.15);
    background: white;
    color: var(--primary-dark);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.insta-footer-btn .btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(82, 121, 111, 0.05) 0%, transparent 70%);
    z-index: -1;
    transition: all 0.5s ease;
}

.insta-footer-btn .btn:hover::after {
    transform: scale(1.2);
    background: radial-gradient(circle, rgba(82, 121, 111, 0.1) 0%, transparent 70%);
}

/* Fallback/Placeholder grid */
.insta-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.insta-placeholder-item {
    aspect-ratio: 1;
    background: var(--bg-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.insta-placeholder-item:hover {
    transform: scale(1.02);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background: var(--bg-soft);
    padding: 4rem 0 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-col p {
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
}

.footer-col ul li i {
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .main-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .floating-badge {
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Hero Mobile Redesign - Premium Edition */
    .hero-section {
        padding: 8rem 0 4rem;
        text-align: center;
    }

    .hero-grid {
        gap: 2.5rem;
    }

    /* Conteúdo do Hero centralizado */
    .hero-content {
        order: 2;
        /* Texto vem depois da imagem */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        order: 1;
        /* Imagem vem primeiro */
    }

    /* Badge centralizado */
    .badge {
        margin-left: auto;
        margin-right: auto;
    }

    /* Título otimizado para mobile */
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }

    /* Subtítulo otimizado */
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        max-width: 100%;
        text-align: center;
    }

    /* Botões do Hero - Mobile Premium */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
        gap: 0.75rem;
    }

    /* Ícones dos botões bem visíveis */
    .hero-buttons .btn i {
        font-size: 1.2rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Botão Primário com ícone de calendário */
    .hero-buttons .btn-primary i {
        margin-right: 0.25rem;
    }

    /* Botão Secundário com ícone de WhatsApp */
    .hero-buttons .btn-secondary i,
    .hero-buttons .btn-light i {
        margin-right: 0.25rem;
    }

    /* Imagem do Hero - Mobile */
    .image-wrapper {
        height: 350px;
        border-radius: 150px 150px 20px 20px;
        margin: 0 auto;
        max-width: 100%;
    }

    /* Floating Badge - Adaptado para Mobile */
    .floating-badge {
        position: static;
        margin: 2rem auto 0;
        max-width: 100%;
        left: auto;
        bottom: auto;
    }

    /* Stats bar responsivo */
    .stats-bar {
        flex-direction: column;
        gap: 2rem;
    }

    /* Seções com padding reduzido */
    .diferenciais-section,
    .about-section,
    .services-section,
    .faq-section,
    .blog-section,
    .cta-section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Tipografia ainda menor para telas muito pequenas */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Hero Section - Extra Small Screens */
    .hero-section {
        padding: 7rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    /* Botões otimizados para telas pequenas */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Ícones dos botões proporcionais */
    .hero-buttons .btn i {
        font-size: 1.1rem;
    }

    /* Imagem menor em telas muito pequenas */
    .image-wrapper {
        height: 300px;
        border-radius: 120px 120px 20px 20px;
    }

    /* Badge compacto */
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }

    /* Floating badge mais compacto */
    .floating-badge {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }

    .floating-badge h4 {
        font-size: 0.95rem;
    }

    .floating-badge p {
        font-size: 0.8rem;
    }

    .badge-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Floating WhatsApp Button - CIRCULAR PERFEITO */
/* Estilos do WhatsApp movidos para style.css principal para evitar conflitos */

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* Media queries do WhatsApp movidas para style.css principal */

/* Diferenciais Section */
.diferenciais-section {
    padding: 5rem 0;
    margin-top: -3rem;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.dif-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.dif-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.dif-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(245, 240, 235, 0.5) 100%);
    border-radius: 20px;
    /* Squircle style */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.dif-card:hover .dif-icon {
    background: var(--primary) !important;
    color: white !important;
    transform: rotateY(360deg) !important;
}

.dif-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.dif-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }

    .booking-grid {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce Aesthetic Polish (Migrated from functions.php) */
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .cart .button,
.woocommerce .checkout_coupon .button,
.woocommerce .place-order .button {
    background-color: var(--wc-button);
    color: #fff;
    border-radius: 30px;
    padding: 14px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(82, 121, 111, 0.2);
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .cart .button:hover,
.woocommerce .place-order .button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(82, 121, 111, 0.3);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
}

.woocommerce div.product .product_title {
    color: var(--primary-dark);
    font-weight: 700;
}

.woocommerce div.product span.price,
.woocommerce div.product p.price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.5rem;
}

.woocommerce-checkout #payment,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    background: var(--bg-soft);
    border-radius: 24px;
    padding: 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.woocommerce-checkout .checkout_coupon {
    display: none;
}

.woocommerce-checkout #payment {
    background: #fff;
    border: 1px solid rgba(82, 121, 111, 0.1);
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Patient Portal (My Account Redesign) --- */

.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

/* Navigation Sidebar */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(82, 121, 111, 0.08);
    position: sticky;
    top: 120px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation li a i {
    font-size: 1.4rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--bg-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

.woocommerce-MyAccount-navigation li.is-active a i {
    transform: scale(1.1);
}

.woocommerce-MyAccount-navigation li a:hover {
    background: rgba(82, 121, 111, 0.05);
    padding-left: 1.5rem;
}

/* Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 320px;
    background: transparent;
}

/* Welcome Banner */
.account-welcome-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2c3e50 100%);
    padding: 3rem;
    border-radius: 30px;
    color: white;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(53, 79, 82, 0.15);
}

.account-welcome-banner h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.account-welcome-banner p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 500px;
}

.welcome-stats .stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.welcome-stats .stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.welcome-stats .stat-card a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.welcome-stats .stat-card i {
    font-size: 1.5rem;
}

/* Tables and Buttons in Portal */
.woocommerce-MyAccount-content table.shop_table {
    border: none;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.woocommerce-MyAccount-content table.shop_table thead {
    background: var(--bg-soft);
}

.woocommerce-MyAccount-content table.shop_table th {
    padding: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: none;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.woocommerce-MyAccount-content .woocommerce-Button {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
}

/* Form Styles */
.woocommerce-MyAccount-content form fieldset {
    border: none;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.woocommerce-MyAccount-content form legend {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding: 0;
}

/* Responsive My Account */
@media (max-width: 992px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        flex: 1 1 100%;
        width: 100%;
        position: static;
    }
}

/* Remover saudação padrão redundante do WooCommerce no Dashboard */
.woocommerce-account .woocommerce-MyAccount-content>p {
    display: none;
}

/* Reexibir parágrafos apenas se não for o painel principal (ex: se houver avisos ou textos em outras abas) */
.woocommerce-account:not(.woocommerce-dashboard) .woocommerce-MyAccount-content>p {
    display: block;
}

/* Ajuste fino no banner para não ficar colado se houver mensagens do sistema */
.woocommerce-MyAccount-content .woocommerce-notices-wrapper {
    margin-bottom: 2rem;
}

/* --- Login & Registration Redesign (Entry Experience) --- */

.woocommerce-account .u-columns.col2-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    width: 100% !important;
    float: none !important;
}

.woocommerce-form-login,
.woocommerce-form-register {
    background: white !important;
    padding: 3.5rem !important;
    border-radius: 30px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(82, 121, 111, 0.08) !important;
    position: relative;
    overflow: hidden;
}

.woocommerce-form-login::before,
.woocommerce-form-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.woocommerce-account h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    font-weight: 800;
}

.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.woocommerce form .form-row input.input-text {
    background: var(--bg-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(82, 121, 111, 0.1);
    outline: none;
}

.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem !important;
    font-size: 1.1rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.woocommerce-form-login__rememberme {
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: 1.5rem;
}

.woocommerce-LostPassword a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Redesenhar as mensagens de erro/sucesso nas telas de login */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-radius: 16px !important;
    padding: 1.5rem 2rem !important;
    border: none !important;
    background: white !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 2rem !important;
}

.woocommerce-error {
    border-left: 5px solid #e74c3c !important;
    color: #c0392b !important;
}

/* Responsividade Extra */
@media (max-width: 576px) {

    .woocommerce-form-login,
    .woocommerce-form-register {
        padding: 2rem !important;
    }
}

/* --- Refinamentos do Portal do Paciente --- */

/* Esconder saudações e notas do WooCommerce nativo no Painel */
.woocommerce-MyAccount-content p:first-of-type,
.woocommerce-MyAccount-content p:nth-of-type(2) {
    display: none !important;
}

/* Reverter caso não seja o dashboard (WooCommerce coloca classes no body) */
.woocommerce-orders .woocommerce-MyAccount-content p,
.woocommerce-edit-account .woocommerce-MyAccount-content p {
    display: block !important;
}

/* Ícones do Menu via CSS (evita problemas de escape HTML) */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: var(--primary);
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    content: '\f133';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: var(--primary);
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: '\f2bd';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: var(--primary);
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: '\f2f5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: var(--primary);
}

/* Melhorar Banner de Boas-Vindas */
.account-welcome-banner {
    border-left: 8px solid var(--secondary);
    background: white;
    /* Alterando para branco com sombra para parecer mais limpo */
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.account-welcome-banner h2 {
    color: var(--primary-dark);
}

.account-welcome-banner p {
    color: var(--text-muted);
}

.welcome-stats .stat-card {
    background: var(--primary);
    border: none;
    box-shadow: 0 10px 20px rgba(82, 121, 111, 0.2);
}

.welcome-stats .stat-card a {
    color: white;
}

.welcome-stats .stat-card i {
    color: white;
}

/* Garantir que o conteúdo do portal preencha bem o espaço */
.standard-page {
    background: #fdfcfb !important;
}


/* ========== PERSONALIZAÇÃO AVANÇADA DA PÁGINA MINHA CONTA ========== */

/* Página Principal - Wrapper */
.woocommerce-account {
    background: linear-gradient(135deg, #fafaf8 0%, #f5f0eb 100%);
    min-height: 100vh;
    padding: 4rem 0;
}

.woocommerce-account .woocommerce {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar de Navegação Melhorada */
.woocommerce-MyAccount-navigation {
    position: sticky;
    top: 2rem;
    width: 280px;
    flex-shrink: 0;
}

.woocommerce-MyAccount-navigation ul {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(82, 121, 111, 0.08);
    border: 1px solid rgba(82, 121, 111, 0.05);
}

.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.woocommerce-MyAccount-navigation li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.woocommerce-MyAccount-navigation li.is-active a::before {
    transform: scaleY(1);
}

.woocommerce-MyAccount-navigation li a i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: all 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: linear-gradient(135deg, rgba(82, 121, 111, 0.08) 0%, rgba(132, 169, 140, 0.05) 100%);
    color: var(--primary-dark);
    font-weight: 700;
}

.woocommerce-MyAccount-navigation li.is-active a i {
    color: var(--primary-dark);
    transform: scale(1.15);
}

.woocommerce-MyAccount-navigation li a:hover {
    background: rgba(82, 121, 111, 0.04);
    padding-left: 1.75rem;
}

.woocommerce-MyAccount-navigation li a:hover i {
    transform: translateX(4px);
}

/* Área de Conteúdo */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 320px;
    background: transparent;
}

/* Banner de Boas-Vindas Aprimorado */
.account-welcome-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2c3e50 50%, var(--primary) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    padding: 4rem 3rem;
    border-radius: 30px;
    color: white;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    box-shadow: 0 25px 60px rgba(53, 79, 82, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

@keyframes gradient-shift {

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

    50% {
        background-position: 100% 50%;
    }
}

.account-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.account-welcome-banner .welcome-text {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 300px;
}

.account-welcome-banner h2 {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    /* Letra mais clara/suave */
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.account-welcome-banner p {
    opacity: 0.9;
    font-size: 1.15rem;
    max-width: 550px;
    line-height: 1.6;
    font-weight: 400;
    /* Texto de apoio também mais leve */
}

.welcome-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.welcome-stats .stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.75rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    min-width: 200px;
}

.welcome-stats .stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.welcome-stats .stat-card a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.welcome-stats .stat-card i {
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
}

.welcome-stats .stat-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Tabelas do Portal */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border: none;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    margin-bottom: 3rem;
    border: 1px solid rgba(82, 121, 111, 0.05);
}

.woocommerce-MyAccount-content table.shop_table thead {
    background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(245, 240, 235, 0.7) 100%);
    border-bottom: 2px solid rgba(82, 121, 111, 0.1);
}

.woocommerce-MyAccount-content table.shop_table th {
    padding: 1.75rem 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border: none;
}

.woocommerce-MyAccount-content table.shop_table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.woocommerce-MyAccount-content table.shop_table tbody tr:hover {
    background: rgba(82, 121, 111, 0.02);
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 1.75rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.woocommerce-MyAccount-content table.shop_table .order-number a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-content table.shop_table .order-number a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.woocommerce-MyAccount-content table.shop_table .order-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woocommerce-MyAccount-content table.shop_table .order-status.processing {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.woocommerce-MyAccount-content table.shop_table .order-status.completed {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.woocommerce-MyAccount-content table.shop_table .order-status.pending {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
}

.woocommerce-MyAccount-content table.shop_table .order-status.cancelled {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

/* Botões do Portal */
.woocommerce-MyAccount-content .woocommerce-Button {
    border-radius: 12px;
    padding: 12px 24px !important;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none !important;
    background: var(--primary) !important;
    color: white !important;
    text-decoration: none !important;
    cursor: pointer;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(82, 121, 111, 0.25);
}

.woocommerce-MyAccount-content .woocommerce-Button.button-secondary {
    background: white !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.woocommerce-MyAccount-content .woocommerce-Button.button-secondary:hover {
    background: var(--bg-soft) !important;
}

/* Formulários do Portal */
.woocommerce-MyAccount-content form fieldset {
    border: none;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    border: 1px solid rgba(82, 121, 111, 0.05);
}

.woocommerce-MyAccount-content form legend {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    padding: 0;
    letter-spacing: -0.01em;
}

.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 1.75rem;
}

.woocommerce-MyAccount-content form label {
    display: block;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="password"],
.woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-MyAccount-content form textarea,
.woocommerce-MyAccount-content form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(82, 121, 111, 0.1);
    border-radius: 12px;
    background: var(--bg-soft);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-content form input[type="text"]:focus,
.woocommerce-MyAccount-content form input[type="email"]:focus,
.woocommerce-MyAccount-content form input[type="password"]:focus,
.woocommerce-MyAccount-content form input[type="tel"]:focus,
.woocommerce-MyAccount-content form textarea:focus,
.woocommerce-MyAccount-content form select:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(82, 121, 111, 0.1);
    outline: none;
}

/* Responsividade */
@media (max-width: 1024px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 2rem;
    }

    .woocommerce-MyAccount-navigation {
        position: static;
        width: 100%;
        top: auto;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .woocommerce-MyAccount-navigation li {
        flex: 1;
        min-width: 150px;
        border-bottom: none;
    }

    .woocommerce-MyAccount-navigation li a {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .account-welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .account-welcome-banner h2 {
        font-size: 2rem;
    }

    .welcome-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .woocommerce-account {
        padding: 2rem 0;
    }

    .account-welcome-banner {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .account-welcome-banner h2 {
        font-size: 1.75rem;
    }

    .account-welcome-banner p {
        font-size: 1rem;
    }

    .woocommerce-MyAccount-content table.shop_table {
        font-size: 0.9rem;
    }

    .woocommerce-MyAccount-content table.shop_table th,
    .woocommerce-MyAccount-content table.shop_table td {
        padding: 1rem;
    }

    .welcome-stats .stat-card {
        min-width: 100%;
    }
}

/* Animações de Entrada */
.woocommerce-MyAccount-content>* {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-MyAccount-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.woocommerce-MyAccount-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.woocommerce-MyAccount-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

.woocommerce-MyAccount-content>*:nth-child(4) {
    animation-delay: 0.4s;
}

.woocommerce-MyAccount-content>*:nth-child(5) {
    animation-delay: 0.5s;
}

/* Mensagens e Avisos */
.woocommerce-MyAccount-content .woocommerce-notices-wrapper {
    margin-bottom: 2rem;
}

.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error,
.woocommerce-MyAccount-content .woocommerce-info {
    border-radius: 16px !important;
    padding: 1.5rem 2rem !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-MyAccount-content .woocommerce-message {
    background: rgba(46, 204, 113, 0.1) !important;
    color: #27ae60 !important;
    border-left: 5px solid #27ae60 !important;
}

.woocommerce-MyAccount-content .woocommerce-error {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #c0392b !important;
    border-left: 5px solid #c0392b !important;
}

/* =================================================================
   MELHORIA 4: OTIMIZAÇÃO GERAL MOBILE (Redução de Tamanho)
   ================================================================= */
@media (max-width: 767px) {

    /* Redução de Padding do Container */
    .container {
        padding: 0 1rem;
        /* De 2rem para 1rem */
    }

    /* Redução de Tamanho das Fontes dos Títulos */
    h1 {
        font-size: 2.5rem;
        /* De 3.5rem para 2.5rem */
    }

    h2 {
        font-size: 2rem;
        /* De 2.75rem para 2rem */
    }

    h3 {
        font-size: 1.5rem;
        /* De 2rem para 1.5rem */
    }

    /* Redução de Padding e Margem em Seções (Assumindo que o tema usa a tag <section>) */
    section {
        padding: 4rem 0;
        /* Reduz o padding vertical padrão de seções */
    }

    /* Redução do tamanho dos botões */
    .btn {
        padding: 0.75rem 1.5rem;
        /* Padding menor */
        font-size: 0.9rem;
        /* Fonte menor */
    }

    /* Otimização dos efeitos de botão para mobile */
    .btn::before {
        /* Shimmer mais rápido no mobile */
        transition: left 0.4s ease;
    }

    .btn-primary {
        /* Pulse mais sutil no mobile */
        animation: subtlePulseMobile 3s ease-in-out infinite;
    }

    @keyframes subtlePulseMobile {

        0%,
        100% {
            box-shadow: 0 8px 20px rgba(53, 79, 82, 0.25);
        }

        50% {
            box-shadow: 0 8px 22px rgba(53, 79, 82, 0.3);
        }
    }

    /* Efeitos de hover apenas em dispositivos com hover real (não touch) */
    @media (hover: hover) {
        .btn:hover {
            transform: translateY(-2px) scale(1.01);
        }

        .btn-share:hover {
            transform: translateY(-3px) rotate(3deg) scale(1.05);
        }
    }

    /* Efeitos de toque para dispositivos touch */
    @media (hover: none) {
        .btn:active {
            transform: scale(0.98);
            transition: transform 0.1s ease;
        }

        .btn-share:active {
            transform: scale(0.95) rotate(0deg);
        }

        /* Remove hover effects que não funcionam bem em touch */
        .btn::before {
            display: none;
        }
    }
}

/* =================================================================
   OTIMIZAÇÃO ADICIONAL: Touch-Friendly Buttons
   ================================================================= */

/* Melhora a área de toque em dispositivos móveis */
@media (max-width: 767px) {
    .btn {
        min-height: 44px;
        /* Tamanho mínimo recomendado para touch */
        -webkit-tap-highlight-color: rgba(82, 121, 111, 0.2);
    }

    .mobile-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .btn-share {
        min-width: 48px;
        min-height: 48px;
    }

    /* Garante que ícones sociais sejam facilmente clicáveis */
    .mobile-socials a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .social-links a {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Área do Paciente - Menu Styles */
.menu-client-area {
    color: var(--primary) !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-client-area i {
    font-size: 1.2rem;
}

.client-area-link {
    color: var(--primary-dark) !important;
    border-top: 1px solid rgba(82, 121, 111, 0.1);
    padding-top: 1rem !important;
    margin-top: 0.5rem !important;
}

/* Mobile Close Button */
.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--bg-soft);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.mobile-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .mobile-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Portal do Paciente - WooCommerce Customization */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--bg-soft);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(82, 121, 111, 0.1);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: var(--primary);
    color: white !important;
}

.patient-portal-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    border: 2px dashed rgba(82, 121, 111, 0.2);
    margin-top: 2rem;
}

.patient-portal-empty-state i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

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

.portal-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portal-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.portal-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.portal-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem !important;
    height: auto !important;
    min-height: auto !important;
    font-size: 0.85rem !important;
}

/* --- Portal V46 Custom Styles --- */
.portal-v46-dashboard {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-welcome-header {
    margin-bottom: 2rem;
}

.portal-welcome-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
}

.portal-welcome-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards Grid */
.portal-grid-v46 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portal-card-v46 {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(82, 121, 111, 0.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.portal-card-v46:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(82, 121, 111, 0.12);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.portal-card-v46:hover .card-icon {
    background: var(--primary);
    color: white;
}

.card-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-info .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0.2rem 0;
}

.card-info .sub-value {
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 500;
}

.status-badge {
    font-size: 0.7rem;
    background: #f0f7f5;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Quick Actions */
.portal-quick-actions {
    margin-top: 4rem;
}

.portal-quick-actions h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.actions-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: white;
    padding: 1.25rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 1.4rem;
    color: var(--primary);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.action-btn:hover i {
    color: white;
}

.action-btn.emergency {
    background: #fff1f2;
    color: #9f1239;
    border-color: #fecdd3;
}

.action-btn.emergency i {
    color: #e11d48;
}

.action-btn.emergency:hover {
    background: #e11d48;
    color: white;
}

/* Alerts */
.portal-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.alert-icon i {
    font-size: 2rem;
    color: #d97706;
}

.alert-content h4 {
    margin: 0;
    color: #92400e;
    font-size: 1.15rem;
}

.alert-content p {
    margin: 5px 0 0;
    color: #b45309;
    font-size: 0.95rem;
}

/* Mobile Menu Bell */
.portal-notification-bell .bell-wrapper i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-notification-bell .bell-wrapper:hover i {
    transform: rotate(15deg) scale(1.1);
}