:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --secondary: #10B981;
    --dark: #111827;
    --gray: #6B7280;
    --light: #F3F4F6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 140px;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    /* Alinha imagem se precisar */
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-login {
    background: var(--dark);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    background: #EEF2FF;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-box p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 35px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    background: #059669;
}

.guarantee {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.guarantee i {
    color: var(--secondary);
}

/* App Mockup */
.app-mockup {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 25px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
    border: 1px solid #F3F4F6;
}

.mockup-header {
    border-bottom: 2px solid #F3F4F6;
    padding-bottom: 15px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-body {
    padding-top: 25px;
}

.skeleton-line {
    height: 14px;
    background: #F3F4F6;
    margin-bottom: 15px;
    border-radius: 6px;
}

.full {
    width: 100%;
}

.half {
    width: 60%;
}

.skeleton-btn {
    height: 45px;
    width: 140px;
    background: var(--primary);
    border-radius: 8px;
    margin-top: 25px;
    opacity: 0.9;
}

.stamp {
    position: absolute;
    bottom: 30px;
    right: -25px;
    background: var(--secondary);
    color: white;
    padding: 8px 25px;
    transform: rotate(-10deg);
    font-weight: 800;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-size: 1.2rem;
    border: 2px solid white;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Audience Section */
.audience {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 60px;
}

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

.card {
    background: #F9FAFB;
    padding: 30px 20px;
    border-radius: 16px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: default;
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: 0.3s;
}

.card:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card:hover i {
    transform: scale(1.1);
}

/* Features */
.features {
    padding: 100px 0;
    background: #F8FAFC;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-item {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    background: #EFF6FF;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--gray);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

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

.testimonial-card {
    background: #F9FAFB;
    padding: 30px;
    border-radius: 16px;
    text-align: left;
}

.stars {
    color: #F59E0B;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 70px;
    /* Aumentando um pouco o tamanho para melhor visibilidade */
    height: 70px;
    background: #ddd;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.client-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: #F8FAFC;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-question.active::after,
.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    color: var(--gray);
}

/* Open state driven by parent class */
.faq-item.active .faq-answer {
    max-height: 2000px;
    /* Safe large number */
    padding-bottom: 25px;
    padding-top: 15px;
    opacity: 1;
    border-top: 1px solid #F3F4F6;
    margin-top: 10px;
}

.faq-answer p {
    padding-bottom: 10px;
    /* Reduced from 20px since we hav bottom padding on container */
    line-height: 1.8;
    /* Better readability */
    color: #4B5563;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    text-align: center;
    background: var(--gradient);
    color: white;
    position: relative;
}

.pricing-card {
    background: white;
    color: var(--dark);
    max-width: 420px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.ribbon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #EF4444;
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.price {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin: 15px 0 35px;
    letter-spacing: -2px;
}

.currency {
    font-size: 1.8rem;
    vertical-align: super;
}

.period {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 35px;
}

.benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.benefits li i {
    color: var(--secondary);
    background: #D1FAE5;
    padding: 5px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.security {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Footer */
footer {
    background: var(--dark);
    color: #9CA3AF;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #374151;
}

.socials {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.socials a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.socials a:hover {
    color: white;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        width: 100%;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .h1 {
        font-size: 2.5rem;
    }

    .text-box p {
        margin: 0 auto 30px;
    }

    .cta-group {
        align-items: center;
    }

    .app-mockup {
        width: 100%;
        margin-top: 60px;
    }

    .stamp {
        right: 0;
        bottom: -20px;
    }
}

/* Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

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

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--dark);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Status Badge Large */
.status-badge-lg {
    display: inline-block;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
    color: #059669;
    /* Verde escuro */
    background: #D1FAE5;
    /* Verde claro */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-badge-lg.pending {
    color: #D97706;
    /* Laranja */
    background: #FEF3C7;
}

.status-badge-lg.expired {
    color: #DC2626;
    /* Vermelho */
    background: #FEE2E2;
}

/* Flex Utilities for Card */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 0;
    flex-wrap: wrap;
    /* Mobile friendly */
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* History Table */
.table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.history-table th,
.history-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: middle;
}

.history-table th {
    background: #F9FAFB;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background: #F9FAFB;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on tablets */
    }
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
        /* Name/Email 2x wider than others */
    }
}

/* Support Tab Styles */
#suporte .card {
    text-align: left;
    display: block !important;
    /* Ensure block layout to avoid flex issues */
}

#support-subject {
    width: 100%;
    /* Mobile default */
    box-sizing: border-box;
}

#support-message {
    width: 100% !important;
    /* Force full width */
    box-sizing: border-box;
}

@media (min-width: 768px) {
    #support-subject {
        width: 50%;
        /* Desktop 50% width */
    }
}

@media (max-width: 768px) {
    #support-subject {
        width: 100% !important;
    }
}

.warning-card {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
    /* Hidden by default */
}



/* Skeleton Loading */
.skeleton {
    background: #e1e4e8;
    background: linear-gradient(90deg, #e1e4e8 25%, #f1f2f4 50%, #e1e4e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent !important;
    border-radius: 6px;
    cursor: default;
    user-select: none;
    display: inline-block;
    min-height: 1em;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Validation Feedback */
.is-invalid {
    border-color: #EF4444 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23EF4444'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px !important;
    animation: shake 0.3s;
}

@keyframes shake {

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

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #D1D5DB;
}

/* --- Marketing Elements --- */

/* 1. Scarcity Bar */
.scarcity-bar {
    background: #EF4444;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    /* Controlled by JS */
}

/* 
   Dynamic Layout handled by script.js (adjustLayout)
   Removed rigid top/padding-top rules to avoid conflicts.
*/

@media (max-width: 768px) {
    .scarcity-bar {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    /* Force content wrapping nicely */
    .scarcity-bar .container {
        flex-wrap: wrap;
        gap: 5px !important;
        /* Tighten gap */
    }

    /* Disable header shrink on mobile */
    header {
        padding: 1rem 0 !important;
    }

    body.has-scarcity-bar header {
        top: 58px;
        /* Ajustado para barra de 2 a 3 linhas (~60px) */
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        /* Ensure shadow is visible */
    }

    body.has-scarcity-bar .hero {
        padding-top: 160px;
        /* Reduced further */
    }
}

/* 2. Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    transition: all 0.3s;
    text-decoration: none;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 3. Demo Video Section */
.video-section {
    padding: 80px 0;
    background: #111827;
    color: white;
    text-align: center;
}

.video-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #374151;
    position: relative;
    cursor: pointer;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    transition: 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.video-wrapper:hover .play-button {
    transform: scale(1.1);
    background: var(--primary);
    border-color: var(--primary);
}

/* 4. Comparison Table */
.comparison-section {
    padding: 100px 0;
    background: white;
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 50px auto 0;
    border-collapse: collapse;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
}

.comparison-table th {
    background: #F9FAFB;
    font-size: 1.1rem;
    color: var(--dark);
}

.comparison-table th.highlight-col {
    background: #EFF6FF;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.comparison-table td {
    font-size: 1rem;
    color: #4B5563;
}

.comparison-table td.check {
    color: #10B981;
    font-size: 1.2rem;
}

.comparison-table td.cross {
    color: #EF4444;
    font-size: 1.2rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* 5. Exit Intent Popup */
.exit-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.exit-modal.visible {
    opacity: 1;
}

.exit-content {
    background: white;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    display: flex;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.exit-modal.visible .exit-content {
    transform: translateY(0);
}

.exit-image {
    width: 40%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
}

.exit-body {
    width: 60%;
    padding: 40px;
    position: relative;
    text-align: left;
}

.exit-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #9CA3AF;
}

@media (max-width: 768px) {
    .exit-content {
        flex-direction: column;
    }

    .exit-image {
        width: 100%;
        height: 150px;
    }

    .exit-body {
        width: 100%;
        padding: 30px;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* --- Marketing Improvements --- */

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: #F9FAFB;
    text-align: center;
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 280px;
    position: relative;
    border: 1px solid #E5E7EB;
    transition: transform 0.3s;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 3px solid white;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.step-arrow {
    font-size: 2rem;
    color: #D1D5DB;
}

@media (max-width: 768px) {
    .step-arrow {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        gap: 40px;
    }

    /* --- MOBILE DASHBOARD FIXES --- */

    /* 1. Simplify Header */
    .admin-header .admin-container.flex-between {
        /* Keep row for logo vs logout, but hide email */
        justify-content: space-between;
    }

    .admin-header #user-email {
        display: none !important;
        /* Hide long email */
    }

    .admin-header .logo-img {
        height: 35px;
        /* Smaller logo */
    }

    .admin-header .logo {
        font-size: 1.2rem;
    }

    /* 2. Welcome Section Stack */
    .welcome-box {
        padding: 20px;
    }

    .welcome-box.flex-between {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-box h1 {
        font-size: 1.8rem;
        /* Smaller title */
        line-height: 1.2;
    }

    /* 3. Status Card Full Width */
    #status-card {
        width: 100%;
        margin-top: 20px;
        padding: 20px;
    }

    /* 4. Scrollable Table */
    .dashboard-content {
        padding-top: 80px;
        /* Less top padding */
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        /* Space for scrollbar */
    }

    .history-table {
        min-width: 600px;
        /* Force scroll */
    }

    /* 5. Tabs Scroll & Icon Only */
    .tabs-nav {
        /* Use flexbox with space around/between for easy touch */
        justify-content: space-around !important;
        border-bottom: 1px solid #E5E7EB;
        padding-bottom: 0;
    }

    .tab-btn {
        flex: 1;
        /* Distribute equal width */
        padding: 15px 10px;
        /* Taller touch target */
        font-size: 1.2rem;
        /* Larger icons */
        text-align: center;
        border-bottom: 3px solid transparent;
        /* Prepare for active border */
        border-radius: 0;
        /* Square bottoms for tabs */
        margin-right: 0;
        background: transparent;
    }

    .tab-btn.active {
        background: transparent;
        border-bottom-color: var(--primary);
        color: var(--primary);
    }

    /* Hide text spans on mobile */
    .tab-btn span {
        display: none;
    }

    /* 6. Form Adjustments */
    .card {
        padding: 10px !important;
        /* Reduced padding as requested (5px-10px visual) */
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        /* Split into 2 columns */
        gap: 10px;
    }

    /* Name (1st item) - Full Width */
    .form-grid .form-group:nth-child(1) {
        grid-column: 1 / -1;
    }

    /* CPF (2nd) & Phone (3rd) - Side by Side (Auto 1fr 1fr) */
    .form-grid .form-group:nth-child(2),
    .form-grid .form-group:nth-child(3) {
        grid-column: span 1;
    }

    /* Email (4th) - Full Width */
    .form-grid .form-group:nth-child(4) {
        grid-column: 1 / -1;
    }

    /* Ensure inputs take full available width of their cell */
    .form-group input {
        width: 100%;
    }
}

/* --- New Payment Grid Layout --- */
.history-grid {
    display: grid;
    /* Using auto-fill with 250px minimum allows fitting 2 columns even in ~550px spaces */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
}

.payment-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.payment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pay-date {
    font-size: 0.85rem;
    color: #6B7280;
}

.card-body-flex {
    margin-bottom: 15px;
}

.pay-desc {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.pay-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.card-footer-flex {
    padding-top: 15px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pay-method {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.btn-receipt {
    background: #EFF6FF;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.btn-receipt:hover {
    background: var(--primary);
    color: white;
}