:root {
    --primary-color: #39aab4;
    /* Main Teal */
    --secondary-color: #39aab7;
    /* Light Teal (User updated) */
    --tertiary-color: #444444;
    /* Dark Gray (User updated) */
    --text-color: #333333;
    --text-light: #6d6d6d;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1200px;
    --hs-sidebar-bg: #ffffff;
    --hs-sidebar-text: #5a6c7d;
    --hs-sidebar-active-bg: rgba(57, 170, 180, 0.10);
    --hs-sidebar-active-text: #39aab4;
    --hs-sidebar-border: #e8ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Logo fade-in animation */
@keyframes fadeInLogo {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   MODERN HEADER DESIGN
   ======================================== */

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(57, 170, 180, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.12);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    padding: 0 30px;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.03);
}

.site-logo {
    height: 58px;
    max-height: 62px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.site-logo:hover {
    filter: drop-shadow(0 4px 8px rgba(57, 170, 180, 0.3));
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible;
    /* Prevent cart badge from being cut off */
    flex-wrap: nowrap;
}

.nav-list>li {
    position: relative;
    flex-shrink: 0;
}

.nav-list>li>a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text-color);
    text-transform: capitalize;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Gradient hover effect */
.nav-list>li>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.nav-list>li>a:hover::before,
.nav-list>li>a.active::before {
    opacity: 0.1;
}

.nav-list>li>a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 170, 180, 0.2);
}

.nav-list>li>a.active {
    color: var(--primary-color);
    background: rgba(57, 170, 180, 0.08);
}

/* Dropdown chevron animation */
.nav-list .dropdown>a i.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    opacity: 0.7;
}

.nav-list .dropdown:hover>a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(57, 170, 180, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

/* Ponte invisível para segurar o cursor ao transitar entre o link e o submenu */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
    display: block;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    list-style: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 10px;
    transition: all 0.2s ease;
    text-transform: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(57, 170, 180, 0.1), rgba(57, 170, 183, 0.15));
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Header Social Icons */
.header-social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid rgba(57, 170, 180, 0.2);
}

.header-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(57, 170, 180, 0.08);
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.header-social-icons a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57, 170, 180, 0.4);
    border-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Mobile WhatsApp Phone */
.mobile-whatsapp-phone {
    display: none;
}

/* Mobile Social Icons */
.mobile-social-icons {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .mobile-whatsapp-phone {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #25D366;
        font-weight: 600;
        font-size: 0.95rem;
        margin-right: 15px;
        transition: all 0.3s ease;
    }

    .mobile-whatsapp-phone:hover {
        opacity: 0.8;
    }

    .mobile-whatsapp-phone i {
        font-size: 1.2rem;
    }

    .mobile-whatsapp-phone span {
        font-family: var(--font-heading);
        letter-spacing: 0.3px;
        color: #333333;
    }

    /* Mobile Social Icons */
    .mobile-social-icons {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-right: 15px;
    }

    .mobile-social-icons a {
        color: var(--primary-color);
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    .mobile-social-icons a:hover {
        transform: scale(1.1);
    }

    .mobile-social-icons a[href*="instagram"] {
        color: var(--primary-color);
    }

    .mobile-social-icons a[href*="facebook"] {
        color: var(--primary-color);
    }

    .mobile-social-icons a[href*="plano-personalizado"] {
        color: var(--primary-color);
    }

    /* Hide cart and WhatsApp from mobile menu */
    @media (max-width: 768px) {

        .nav-list .cart-icon-wrapper,
        .nav-list>li:has(a[href*="wa.me"]) {
            display: none !important;
        }
    }

    .main-header .container {
        padding: 0 20px;
        height: 70px;
    }

    .site-logo {
        max-height: 45px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        display: none;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 99999;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list>li {
        width: 100%;
    }

    .nav-list>li>a {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 14px 20px;
        font-size: 1rem;
        gap: 0;
        position: relative;
    }

    .header-social-icons {
        width: 100%;
        justify-content: center;
        margin: 15px 0 0 0;
        padding: 15px 0 0 0;
        border-left: none;
        border-top: 2px solid rgba(57, 170, 180, 0.2);
    }

    /* Mobile Dropdown Improvements */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(57, 170, 180, 0.05);
        margin-top: 0;
        border: none;
        display: none;
        opacity: 1;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;
        padding: 8px;
    }

    .dropdown-menu a {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    /* Dropdown toggle indicator for mobile */
    .nav-list .dropdown>a {
        padding-right: 45px;
    }

    .nav-list .dropdown>a i.fa-chevron-down {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
}


/* Hero Section */
.hero {
    background: var(--white);
    /* Clean white background */
    padding: 100px 0;
    text-align: center;
}

/* Main Banner (Image) */
/* Main Banner (Carousel) */
.hero.main-banner {
    padding: 0;
    background: none;
    position: relative;
    border-radius: 0 !important;
}

/* Controle imediato Desktop x Mobile dos Banners */
.hero-banner-desktop {
    display: block !important;
    width: 100%;
}

.hero-banner-mobile {
    display: none !important;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-banner-desktop {
        display: block !important;
    }

    .hero-banner-mobile {
        display: none !important;
    }
}

.carousel-container {
    position: relative;
    height: 400px;
    /* Adjust height as needed based on image aspect ratio or requirements */
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track-container {
    background: #000;
    /* Fallback */
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 500ms ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the area, might crop */
    display: block;
}

/* Carousel Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

/* Carousel Nav (Dots) */
.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-indicator {
    border: none;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicator.current-slide {
    background: rgba(255, 255, 255, 1);
}

/* Responsiveness for Carousel */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
        /* Smaller height for mobile */
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Services Intro */
.services-intro {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.service-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--tertiary-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.process-step {
    padding: 20px;
}

.step-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--tertiary-color);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.stars {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 500;
    background: var(--white);
    color: var(--secondary-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: #39aab7 !important;
    /* Oficial Teal da Home */
    color: #fff;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    display: block;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    /* Teal accent */
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-col a {
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col a:hover {
    color: #666666 !important;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--tertiary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* InfinitePay Badge Hover */
.main-footer a[href*="infinitepay"]:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    /* Official WhatsApp Green */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Alinhamento do Botão Flutuante de Simular Orçamento ao lado do WhatsApp */
.hs-ep-launcher.pos-bottom-right {
    right: 104px !important;
    bottom: 35px !important;
    height: 50px !important;
    padding: 0 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}
.hs-ep-launcher.pos-bottom-right.no-wa-float {
    right: 24px !important;
    bottom: 24px !important;
}
@media (max-width: 768px) {
    .hs-ep-launcher.pos-bottom-right {
        right: 82px !important;
        bottom: 26px !important;
        height: 44px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
    }
    .hs-ep-launcher.pos-bottom-right.no-wa-float {
        right: 16px !important;
        bottom: 18px !important;
    }
}
@media (max-width: 420px) {
    .hs-ep-launcher.pos-bottom-right {
        right: 76px !important;
        bottom: 26px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-header .container {
        height: 60px;
    }

    .site-logo {
        max-height: 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-group {
        flex-direction: column;
        padding: 0 20px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Grid Section */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: background-color 0.3s, color 0.3s;
}

.service-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    min-height: 3rem;
    /* Align titles if they break lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Pushes the button down if exists */
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* ============================
   Auth Pages (Login/Register)
   ============================ */
.auth-body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-logo {
    max-height: 80px;
    margin-bottom: 20px;
}

.auth-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

.auth-links {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 700;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ============================
   Dashboard Layouts
   ============================ */
.dashboard-body {
    background: #f8f9fa;
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   MODERN ADMIN SIDEBAR - Clean Design
   ======================================== */
.sidebar {
    width: 280px;
    background: var(--hs-sidebar-bg, #ffffff);
    color: var(--hs-sidebar-text, #1a1a1a);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--hs-sidebar-border, #e8ecef);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
}

.sidebar-header {
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid var(--hs-sidebar-border, #f0f3f5);
}

.sidebar-logo {
    max-height: 48px;
    max-width: 180px;
    transition: transform 0.3s ease;
}

.sidebar-logo.is-empty,
.sidebar-logo[hidden] {
    display: none !important;
}

.sidebar-logo-placeholder {
    display: block;
    width: 140px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
}

.hs-logo-empty-wrap {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-nav {
    padding: 16px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #e0e5e9;
    border-radius: 4px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li {
    margin: 0 12px 4px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: var(--hs-sidebar-text, #5a6c7d);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.sidebar-nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    border-radius: 0 2px 2px 0;
}

.sidebar-nav ul li a:hover {
    background: var(--hs-sidebar-active-bg, rgba(57, 170, 180, 0.08));
    color: var(--hs-sidebar-active-text, var(--primary-color));
    transform: translateX(2px);
}

.sidebar-nav ul li a.active {
    background: var(--hs-sidebar-active-bg, linear-gradient(135deg, rgba(57, 170, 180, 0.08), rgba(57, 170, 180, 0.12)));
    color: var(--hs-sidebar-active-text, var(--primary-color));
    font-weight: 600;
}

.sidebar-nav ul li a.active::before {
    transform: scaleY(1);
}

.sidebar-nav ul li a i {
    width: 20px;
    height: 20px;
    font-size: 1.125rem;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav ul li.hs-nav-section {
    margin: 18px 16px 6px;
    pointer-events: none;
    list-style: none;
}

.sidebar-nav ul li.hs-nav-section:first-child {
    margin-top: 4px;
}

.hs-nav-section-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hs-sidebar-text, #94a3b8);
    opacity: 0.72;
    padding: 0 4px;
}

.sidebar.collapsed .hs-nav-section-label {
    display: none;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--hs-sidebar-border, rgba(255,255,255,0.08));
    background: var(--hs-sidebar-bg, #1a1d20);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--hs-sidebar-text, #9ea2a7);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-footer a:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Fechar menu — só no celular quando o drawer está aberto */
.sidebar-close-mobile {
    display: none;
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-header {
    padding: 24px 12px;
}

.sidebar.collapsed .sidebar-logo {
    max-height: 40px;
    max-width: 56px;
}

.sidebar.collapsed .sidebar-nav ul li a {
    padding: 14px 12px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav ul li a span {
    display: none;
}

.sidebar.collapsed .sidebar-nav ul li a i {
    margin-right: 0;
    font-size: 1.25rem;
}

.sidebar.collapsed .sidebar-footer {
    padding: 20px 12px;
}

.sidebar.collapsed .sidebar-footer a {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-footer a span {
    display: none;
}

.sidebar.collapsed .sidebar-footer a i {
    margin-right: 0;
}

/* Main content adjustment when sidebar collapsed */
.sidebar.collapsed~.main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Toggle button */
.toggle-sidebar {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #5a6c7d;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.toggle-sidebar:hover {
    background: #f0f3f5;
    color: var(--primary-color);
}

.toggle-sidebar i {
    font-size: 1.25rem;
}

/* Ícone ☰ único (SVG) — evita duplicar com Font Awesome */
.toggle-sidebar .hs-menu-icon {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.toggle-sidebar .fa-bars,
.toggle-sidebar > i.fas {
    display: none !important;
}

/* Ícones do menu lateral — garantir renderização no mobile */
@media (max-width: 992px) {
    .sidebar-nav ul li a i,
    .sidebar-footer a i,
    .submenu-arrow {
        font-style: normal;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        min-height: 22px;
        font-size: 1.1rem !important;
        -webkit-font-smoothing: antialiased;
    }
}

/* Submenu Styles */
.has-submenu>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: transparent;
    margin: 0 12px;
    padding: 0;
    list-style: none;
    border-radius: 8px;
}

.has-submenu.open .submenu {
    max-height: 500px;
    background: var(--hs-sidebar-submenu-bg, #f7f9fb);
    padding: 4px 0;
    margin: 4px 12px;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    padding: 10px 16px 10px 40px !important;
    font-size: 0.875rem;
    color: #6b7280 !important;
    border-radius: 6px;
    margin: 2px 8px;
}

.submenu li a:hover {
    background: #e8ecef !important;
    color: #2d3748 !important;
}

.submenu li a.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 12%, transparent), color-mix(in srgb, var(--primary-color) 16%, transparent)) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.submenu li a i {
    font-size: 0.875rem;
}

.main-content {
    margin-left: 280px;
    flex-grow: 1;
    width: calc(100% - 280px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    min-height: 100vh;
}

.topbar {
    background: #ffffff;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #e8ecef;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Botão CRM no topbar (WhatsApp API oficial) */
.btn-topbar-crm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn-topbar-crm:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.35);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Topbar Quick Nav & User Profile Dropdown (Desktop) */
.hs-topbar-quick-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
}
.hs-topbar-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}
.hs-topbar-quick-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.hs-topbar-quick-link.active {
    background: rgba(57, 170, 180, 0.12);
    color: var(--primary-color, #39aab4);
}
.hs-topbar-quick-link i {
    font-size: 13px;
}
@media(max-width: 992px) {
    .hs-topbar-quick-nav { display: inline-flex; }
}

/* Botão Ver site no Topbar */
.hs-topbar-site-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}
.hs-topbar-site-link:hover {
    color: var(--primary-color, #39aab4);
    background: rgba(57, 170, 180, 0.08);
}
.hs-topbar-site-link i {
    font-size: 13px;
}

/* Remoção definitiva do botão flutuante de CRM no topbar */
.btn-topbar-crm,
#btnTopbarCrm,
[data-topbar-crm] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* User Dropdown */
.hs-user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.12);
    min-width: 240px;
    z-index: 10000;
    overflow: hidden;
    padding: 6px 0;
    animation: hsFadeDown 0.15s ease;
}
@keyframes hsFadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.hs-user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}
.hs-user-dropdown-header .name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}
.hs-user-dropdown-header .email {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    word-break: break-all;
}
.hs-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.hs-user-dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary-color, #39aab4);
}
.hs-user-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}
.hs-user-dropdown-item:hover i {
    color: var(--primary-color, #39aab4);
}
.hs-user-dropdown-item.danger {
    color: #ef4444;
}
.hs-user-dropdown-item.danger i {
    color: #ef4444;
}
.hs-user-dropdown-item.danger:hover {
    background: #fef2f2;
}

.user-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}
.user-avatar.has-avatar-logo {
    background-color: #ffffff !important;
}
.user-avatar.has-avatar-logo .hs-user-avatar-char,
.user-avatar:has(.hs-user-avatar-img:not([style*="display: none"]):not([style*="display:none"])) .hs-user-avatar-char {
    display: none !important;
}

.dashboard-container {
    padding: 30px;
}

.dashboard-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.dashboard-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
    /* Primary color low opacity */
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
}

.stat-info h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

.stat-info p {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.content-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.content-card h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

/* Responsive Dashboard */
@media (max-width: 992px) {
    /* Menu 100% fora da tela até abrir — nunca faixa estreita com ícones */
    .dashboard-body .sidebar {
        width: min(280px, 88vw) !important;
        max-width: 88vw;
        transform: translate3d(-105%, 0, 0) !important;
        margin-left: 0 !important;
        left: 0;
        box-shadow: none;
        z-index: 300;
        visibility: hidden;
        pointer-events: none;
        -webkit-transform: translate3d(-105%, 0, 0) !important;
    }

    .dashboard-body .sidebar.active {
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        visibility: visible;
        pointer-events: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
        z-index: 300;
    }

    .sidebar-backdrop.visible {
        z-index: 290;
    }

    .dashboard-body .sidebar.collapsed {
        width: min(280px, 88vw) !important;
    }

    .dashboard-body .sidebar.collapsed .sidebar-nav ul li a span,
    .dashboard-body .sidebar.collapsed .sidebar-footer a span {
        display: inline !important;
    }

    .dashboard-body .sidebar.collapsed .sidebar-nav ul li a {
        justify-content: flex-start !important;
        padding: 14px 16px !important;
    }

    .dashboard-body .sidebar.collapsed .sidebar-nav ul li a i {
        margin-right: 14px !important;
        font-size: 1.125rem !important;
        min-width: 20px;
    }

    .dashboard-body .sidebar.collapsed .sidebar-footer a {
        justify-content: flex-start !important;
    }

    .dashboard-body .sidebar.collapsed .sidebar-footer a span {
        display: inline !important;
    }

    /* Topbar fixo no mobile — evita sumir ao rolar e salto ao abrir o menu */
    .dashboard-body .main-content .topbar {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        z-index: 210;
    }

    .dashboard-body .main-content {
        padding-top: 0;
    }

    body.sidebar-open .main-content .dashboard-container {
        pointer-events: none;
    }

    /* Topbar fica atrás do menu aberto — fechar pelo X ou pelo fundo escuro */
    body.sidebar-open .main-content .topbar {
        pointer-events: none;
        z-index: 50;
    }

    .sidebar-header {
        position: relative;
    }

    .sidebar-close-mobile {
        display: none;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: #f1f5f9;
        color: #475569;
        cursor: pointer;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .sidebar-close-mobile svg {
        width: 22px;
        height: 22px;
    }

    .sidebar-close-mobile:hover,
    .sidebar-close-mobile:focus {
        background: #e2e8f0;
        color: #1e293b;
        outline: none;
    }

    .dashboard-body .sidebar.active .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-right: 12px;
    }

    .dashboard-body .sidebar.active .sidebar-close-mobile {
        display: inline-flex;
    }

    .dashboard-body .sidebar.active .sidebar-header a {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .dashboard-body .sidebar.collapsed~.main-content,
    .dashboard-body .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .topbar {
        height: 60px;
        padding: 0 14px;
        gap: 8px;
    }

    .dashboard-body .topbar .toggle-sidebar {
        background: #f0f3f5;
        border: 1px solid #e2e8f0;
    }

    .dashboard-body .topbar .toggle-sidebar .hs-menu-icon {
        display: block !important;
        width: 24px;
        height: 24px;
        color: var(--secondary-color, #1B3A5C);
    }

    .user-name {
        display: none;
    }

    .btn-topbar-crm {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-right: 4px;
    }

    .dashboard-container {
        padding: 20px 16px;
    }

    .dashboard-title {
        font-size: 1.45rem;
    }

    /* Visão Geral — cards 2×2 compactos no celular */
    .dashboard-body .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 24px !important;
    }

    .dashboard-body .stat-card {
        padding: 12px 10px;
        gap: 10px;
        align-items: center;
        min-width: 0;
    }

    .dashboard-body .stat-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.05rem;
        flex-shrink: 0;
    }

    .dashboard-body .stat-info {
        min-width: 0;
    }

    .dashboard-body .stat-info h4 {
        font-size: 0.72rem;
        line-height: 1.25;
        margin: 0 0 2px;
    }

    .dashboard-body .stat-info p {
        font-size: 1.2rem;
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-backdrop.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}