/* ========================================
   PLATAFORMA OIKOS - Landing Page Styles
   ======================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100%;
    overflow-x: hidden;
}

/* ========================================
   NAVBAR - Totalmente Responsivo
   ======================================== */

/* Navbar Scroll Effect */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Force Desktop Menu Display em telas grandes */
@media (min-width: 1024px) {
    #desktop-menu {
        display: flex !important;
    }
    
    #mobile-menu-button {
        display: none !important;
    }
    
    #mobile-menu,
    #mobile-menu-overlay {
        display: none !important;
    }
}

/* Desktop Menu Active State */
#desktop-menu a.active {
    color: #27785b;
    font-weight: 600;
    position: relative;
}

#desktop-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #27785b;
    border-radius: 2px;
}

/* Force Mobile Menu Button Display em telas pequenas */
@media (max-width: 1023px) {
    #desktop-menu {
        display: none !important;
    }
    
    #mobile-menu-button {
        display: block !important;
    }
}

/* ========================================
   MOBILE MENU - Solução Simples e Funcional
   ======================================== */

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none; /* Escondido inicialmente para evitar flash */
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-logo img {
    height: 32px;
    width: 32px;
    display: block;
}

.mobile-menu-logo span {
    margin-left: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #164531;
}

.mobile-menu-close {
    padding: 8px;
    border-radius: 8px;
    color: #374151;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
    background: #f3f4f6;
    color: #164531;
    transform: rotate(90deg);
}

.mobile-menu-close:focus {
    outline: 2px solid #27785b;
    outline-offset: 2px;
}

.mobile-menu-close i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

/* Content */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #f3f4f6;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    border-left: 3px solid transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-item:hover {
    background: #f9fafb;
    color: #164531;
    transform: translateX(4px);
    border-left-color: #27785b;
}

.mobile-menu-item:hover i {
    color: #27785b;
    transform: scale(1.1);
}

.mobile-menu-item:active {
    transform: translateX(2px);
    background: #f3faf7;
}

.mobile-menu-item:focus {
    outline: 2px solid #27785b;
    outline-offset: -2px;
    background: #f3faf7;
}

.mobile-menu-item.active {
    background: #f3faf7;
    color: #164531;
    font-weight: 600;
    border-left-color: #27785b;
}

.mobile-menu-item.active i {
    color: #27785b;
}

.mobile-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #27785b;
    border-radius: 0 2px 2px 0;
}

.mobile-menu-item i {
    width: 24px;
    min-width: 24px;
    text-align: center;
    margin-right: 12px;
    color: #374151;
    font-size: 16px;
    transition: all 0.2s ease;
}

.mobile-menu-item span {
    color: inherit;
    font-size: 16px;
    transition: color 0.2s ease;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 16px;
    background: #ea580c;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-menu-cta:hover {
    background: #c2410c;
    box-shadow: 0 6px 12px rgba(234, 88, 12, 0.3);
    transform: translateY(-2px);
}

.mobile-menu-cta:hover::before {
    width: 300px;
    height: 300px;
}

.mobile-menu-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-cta:focus {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
    background: #c2410c;
}

.mobile-menu-cta i {
    margin-right: 8px;
    color: white;
    font-size: 16px;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.mobile-menu-cta:hover i {
    transform: translateX(4px) scale(1.1);
}

.mobile-menu-cta span {
    color: white;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Footer */
.mobile-menu-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.mobile-menu-footer p {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

/* Hamburger Menu Animation */
.hamburger-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

#mobile-menu-button:hover .hamburger-line {
    background-color: #164531;
}

#mobile-menu-button:focus {
    outline: 2px solid #27785b;
    outline-offset: 2px;
}

/* Ajuste de padding-top da seção hero em mobile */
@media (max-width: 640px) {
    #hero {
        padding-top: 6rem !important; /* 96px - espaço suficiente para o header */
    }
}

/* Mobile Menu Links Hover Effect */
.mobile-menu-link {
    position: relative;
    overflow: hidden;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #27785b, #429970);
    transition: height 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.mobile-menu-link:hover::before {
    height: 70%;
}

/* Logo Responsivo */
@media (max-width: 640px) {
    #navbar .flex.items-center.flex-shrink-0 {
        max-width: calc(100% - 60px);
    }
}

/* ========================================
   RESPONSIVIDADE COMPLETA
   ======================================== */

/* Mobile First - Smartphones (320px - 640px) */
@media (max-width: 640px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    #hero p {
        font-size: 1rem !important;
    }
    
    /* Stats Grid */
    #hero .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Features Grid */
    #diferenciais .grid,
    #funcionalidades .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Pricing Cards */
    #precos .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .pricing-card {
        padding: 1.5rem !important;
    }
    
    /* Form */
    #cadastro form {
        padding: 1.5rem !important;
    }
    
    #cadastro input,
    #cadastro select,
    #cadastro button {
        font-size: 0.875rem !important;
    }
    
    /* Dashboard Tabs */
    .dashboard-tab {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Section Padding */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Container Padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Tablets (641px - 1023px) */
@media (min-width: 641px) and (max-width: 1023px) {
    /* Hero Section */
    #hero h1 {
        font-size: 3rem !important;
    }
    
    /* Stats Grid */
    #hero .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Features Grid */
    #diferenciais .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    #funcionalidades .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Pricing Cards */
    #precos .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Dashboard Tabs */
    .dashboard-tab {
        font-size: 0.875rem !important;
    }
}

/* Desktop Small (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    /* Navbar Links Spacing */
    #navbar .hidden.lg\\:flex {
        gap: 1rem !important;
    }
    
    #navbar .hidden.lg\\:flex a {
        font-size: 0.875rem !important;
    }
    
    /* Hero Section */
    #hero h1 {
        font-size: 3.5rem !important;
    }
}

/* Desktop Large (1280px+) */
@media (min-width: 1280px) {
    /* Container Max Width */
    .container {
        max-width: 1280px;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    #hero {
        min-height: auto !important;
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
    }
    
    #mobile-menu {
        overflow-y: auto;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Melhora a renderização de imagens */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    #mobile-menu-overlay,
    #scroll-to-top,
    #scroll-progress {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Dashboard Tabs */
.dashboard-tab {
    background-color: #f9fafb;
    color: #6b7280;
    border: 2px solid transparent;
}

.dashboard-tab:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.dashboard-tab.active {
    background-color: #27785b;
    color: white;
    border-color: #27785b;
}

/* Tab Panels */
.dashboard-tab-content {
    min-height: 400px;
    position: relative;
}

.tab-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 100% !important;
    height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.tab-panel.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.4s ease-out;
    width: 100% !important;
    height: auto !important;
    min-height: 400px !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1 !important;
    overflow: visible !important;
    transform: none !important;
}

/* Garantir que o container grid seja visível */
.tab-panel.active > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
}

/* Garantir que divs dentro do grid sejam visíveis */
.tab-panel.active > div > div {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
}

/* Garantir que imagens sejam sempre visíveis em painéis ativos */
.tab-panel.active img {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* FORÇAR exibição de TODOS os elementos dentro do painel ativo */
.tab-panel.active * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Garantir que o grid Tailwind funcione */
.tab-panel.active .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
}

.tab-panel.active .grid > div {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
}

/* Sobrescrever qualquer classe Tailwind que possa estar escondendo */
.tab-panel.active .hidden {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Garantir que elementos com classes Tailwind específicas sejam visíveis */
.tab-panel.active .lg\:grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tab-panel.active .gap-8 {
    gap: 2rem !important;
}

.tab-panel.active .items-center {
    align-items: center !important;
}

/* Responsive - mobile */
@media (max-width: 1023px) {
    .tab-panel.active > div {
        grid-template-columns: 1fr !important;
    }
    
    .tab-panel.active .lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .tab-panel.active .grid {
        grid-template-columns: 1fr !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Pricing Toggle - Modernizado */
.pricing-toggle-container {
    position: relative;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 4px;
    display: inline-flex;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-toggle {
    position: relative;
    z-index: 10;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pricing-toggle:hover {
    color: #374151;
}

.pricing-toggle.active {
    color: white;
}

.pricing-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #27785b 0%, #429970 100%);
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(39, 120, 91, 0.3);
    z-index: 5;
}

.pricing-toggle-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* ============================================
   BROWSER MOCKUP - Hero Section
   ============================================ */

.browser-mockup {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    width: 100%; /* Garante que não ultrapasse o container */
}

@media (max-width: 639px) {
    .browser-mockup {
        border-radius: 8px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
}

/* Browser Header */
.browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
}

@media (max-width: 639px) {
    .browser-header {
        padding: 8px 12px;
        gap: 8px;
    }
}

.browser-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

@media (max-width: 639px) {
    .dot {
        width: 8px;
        height: 8px;
    }
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #28ca42;
}

.browser-address-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    min-width: 0; /* Permite truncar texto */
}

.browser-address-bar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

@media (max-width: 639px) {
    .browser-address-bar {
        padding: 4px 8px;
    }
    
    .browser-address-bar span {
        font-size: 11px;
    }
    
    .browser-address-bar i {
        font-size: 10px;
    }
}

.browser-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Browser Content */
.browser-content {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 639px) {
    .browser-content {
        background: #f9fafb; /* Fundo mais claro para mobile */
    }
}

/* Dashboard Slideshow */
.dashboard-slideshow {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 para desktop */
    background: #f9fafb;
}

@media (max-width: 639px) {
    .dashboard-slideshow {
        padding-bottom: 150%; /* Aspect ratio 2:3 para mobile - bem mais alto */
    }
}

.dashboard-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* Padding interno para dar espaço */
}

@media (max-width: 639px) {
    .dashboard-slide {
        padding: 0.25rem; /* Padding menor no mobile */
    }
}

.dashboard-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Contain para desktop - mostra imagem completa */
    object-position: center center; /* Centraliza a imagem */
    display: block;
}

@media (max-width: 639px) {
    .dashboard-slide img {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: auto;
        object-fit: contain; /* Contain no mobile - mostra TUDO */
        object-position: center center; /* Centraliza */
    }
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Pause on Hover */
.browser-mockup:hover .dashboard-slideshow {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .browser-header {
        padding: 10px 12px;
    }
    
    .browser-dots {
        gap: 6px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .browser-address-bar {
        padding: 4px 8px;
    }
    
    .browser-address-bar span {
        font-size: 11px;
    }
    
    .browser-address-bar i {
        font-size: 10px;
    }
    
    .browser-actions {
        display: none; /* Esconder em mobile para economizar espaço */
    }
    
    .dashboard-slideshow {
        padding-bottom: 75%; /* Aspect ratio mais quadrado em mobile */
    }
    
    .slide-indicators {
        bottom: 12px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .indicator.active {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .browser-header {
        padding: 8px 10px;
    }
    
    .browser-address-bar span {
        font-size: 10px;
    }
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed !important;
    bottom: 2rem !important; /* 32px */
    right: 2rem !important; /* 32px */
    width: 3rem !important; /* 48px */
    height: 3rem !important; /* 48px */
    background: #27785b !important;
    color: white !important;
    border-radius: 9999px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s !important;
    opacity: 0;
    pointer-events: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9998 !important; /* Abaixo do menu mobile mas acima de outros elementos */
    border: none !important;
    cursor: pointer !important;
}

/* Ajuste para mobile - considerar barra de navegação do browser */
@media (max-width: 768px) {
    #scroll-to-top {
        bottom: 5rem !important; /* Mais espaço para a barra de navegação do browser */
        right: 1rem !important; /* Mais próximo da borda em mobile */
        width: 2.75rem !important; /* 44px - tamanho mínimo para touch */
        height: 2.75rem !important;
    }
}

/* Esconder botão quando menu mobile está aberto */
.mobile-menu.active ~ #scroll-to-top {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fallback para navegadores que não suportam :has() */
body.menu-open #scroll-to-top {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#scroll-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

#scroll-to-top:hover {
    transform: translateY(-2px);
    background: #1f5f46 !important;
}

#scroll-to-top:active {
    transform: translateY(0);
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input[type="checkbox"]:focus {
    outline: 2px solid #27785b;
    outline-offset: 2px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #27785b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Placeholder Images */
img[src*="dashboard-"] {
    background: linear-gradient(135deg, #f3faf7 0%, #d1e7db 100%);
    min-height: 300px;
    object-fit: cover;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #27785b 0%, #429970 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #27785b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1f5f46;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .dashboard-tab {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #scroll-to-top,
    #cadastro,
    #redes-sociais,
    footer {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #27785b;
    outline-offset: 2px;
}

/* Smooth Transitions */
a, button {
    transition: all 0.2s ease;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top-color: #27785b;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Error State */
.error-field {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success State */
.success-field {
    border-color: #10b981 !important;
}

/* ========================================
   FASE 1 - MELHORIAS MODERNAS
   ======================================== */

/* Scroll Progress Indicator - ATIVO */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #27785b 0%, #429970 50%, #ea580c 100%);
    z-index: 9999;
    width: 0%;
    transition: width 0.05s ease-out;
    box-shadow: 0 2px 6px rgba(39, 120, 91, 0.4);
}

/* Price Animation */
.price-value {
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-value.updating {
    opacity: 0;
    transform: translateY(-10px);
}

/* Lazy Loading Images */
img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.lazy.loaded {
    opacity: 1;
}

img[loading="lazy"] {
    background: linear-gradient(135deg, #f3faf7 0%, #d1e7db 100%);
}

/* Badge "Mais Popular" - Melhorado */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.4);
    white-space: nowrap;
    animation: float-badge 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes float-badge {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.popular-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-radius: 9999px;
    opacity: 0.3;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

/* Pricing Card Hover Effect - Enhanced */
.pricing-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover::before {
    opacity: 0;
}

.pricing-card.popular {
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    border-color: #ea580c !important;
    box-shadow: 0 0 0 1px #ea580c, 0 10px 15px -3px rgba(234, 88, 12, 0.2), 0 0 40px -10px rgba(234, 88, 12, 0.15);
}

.pricing-card.popular::before {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.pricing-card.popular:hover {
    box-shadow: 0 0 0 1px #ea580c, 0 20px 25px -5px rgba(234, 88, 12, 0.3), 0 0 60px -15px rgba(234, 88, 12, 0.25);
    transform: translateY(-10px) scale(1.02);
}

/* Pricing Button Enhanced */
.pricing-card .pricing-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card .pricing-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pricing-card .pricing-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   FASE 3 - UX AVANÇADO
   ======================================== */

/* Ripple Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Parallax Smooth Transition */
#hero .container {
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* Enhanced Input Focus */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #27785b;
    box-shadow: 0 0 0 3px rgba(39, 120, 91, 0.1);
    transition: all 0.2s ease;
}

input.success-field {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

input.error-field {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Stats Animation - MELHORADO */
.stat-number {
    display: inline-block;
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
}

.stats-container.animated .stat-number {
    animation: statReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes statReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Button Hover Lift */
a[href^="#"]:hover,
button:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

a[href^="#"]:active,
button:active {
    transform: translateY(0);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading State for Forms */
form.loading {
    pointer-events: none;
    opacity: 0.6;
}

form.loading button[type="submit"] {
    position: relative;
}

form.loading button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Input Loading State */
input.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2327785b' stroke-width='2'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    animation: spin 0.8s linear infinite;
    padding-right: 3rem;
}

/* Smooth Number Transition */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-count {
    animation: countUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   MELHORIAS VISUAIS ADICIONAIS
   ======================================== */

/* Features Grid Hover Effect */
#funcionalidades .group {
    position: relative;
    overflow: hidden;
}

#funcionalidades .group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(39, 120, 91, 0.05), transparent);
    transition: left 0.5s ease;
}

#funcionalidades .group:hover::before {
    left: 100%;
}

/* Pricing Card Enhanced Hover */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-12px);
}

/* Dashboard Tab Smooth Transition */
.dashboard-tab {
    position: relative;
    overflow: hidden;
}

.dashboard-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #27785b;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-tab.active::after {
    transform: scaleX(1);
}

/* Smooth Tab Panel Transition - Removido duplicata, já está definido acima */

/* Hero Background Pattern Enhancement */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(39, 120, 91, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234, 88, 12, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

