:root {
    --green-primary: #1f8f5a;
    --green-secondary: #2fba77;
    --green-light: #50cf92;
    --green-lighter: #9be8c1;
    --green-pale: #d9f7e6;
    --green-dark: #0f4d33;
    --olive-primary: #6f8a2d;
    --olive-soft: #dce8ba;
    --neutral-light: #f6faf7;
    --neutral-dark: #16211d;
    --white: #FFFFFF;
    --shadow: rgba(21, 66, 44, 0.16);
    --header-height: 86px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    color: var(--neutral-dark);
    background:
        radial-gradient(1400px 380px at 0% -12%, rgba(47, 186, 119, 0.09) 0%, rgba(47, 186, 119, 0) 60%),
        linear-gradient(180deg, #f8fcfa 0%, #f4f8f5 45%, #f8fcfa 100%);
    background-color: var(--neutral-light);
    min-height: 100vh;
}

.site-main {
    padding-top: calc(var(--header-height) + 12px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 600;
    color: var(--green-dark);
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
}

/* Navbar customizada */
.navbar-format {
    background: rgba(15, 77, 51, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(215, 245, 227, 0.28);
    box-shadow: 0 10px 30px rgba(12, 47, 31, 0.24);
    min-height: var(--header-height);
    padding: 0.65rem 0;
}

.navbar-format .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 0.5px;
}

.navbar-format .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.25s ease;
    border-radius: 8px;
    padding: 0.48rem 0.65rem !important;
}

.navbar-format .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-1px);
}

.navbar-format .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.navbar-format .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #143d2b;
    background: linear-gradient(135deg, #f4f8d6 0%, #d7f1a8 100%);
    border: 1px solid #cde599;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nav-cta-btn {
    font-weight: 700;
    border-radius: 9px;
    padding: 0.5rem 0.95rem;
    color: #11402c;
}

.nav-cta-link {
    background: rgba(255, 255, 255, 0.11);
}

/* Hero Section */
.hero-section {
    background:
        radial-gradient(1200px 450px at 98% 0%, rgba(223, 239, 180, 0.24) 0%, rgba(223, 239, 180, 0) 55%),
        linear-gradient(125deg, #0f4d33 0%, #197d50 52%, #2dbb76 100%);
    color: var(--white);
    padding: 6rem 0 5.4rem;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    margin-bottom: 1.6rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #f5fff9;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(244, 255, 249, 0.92);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-title-accent {
    color: #eff9cd;
}

.hero-pill-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #effff7;
}

.hero-pill i {
    color: #c8f4dd;
}

/* Cards modernos */
.card-modern {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow);
}

.card-modern .card-header {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-secondary) 100%);
    color: var(--white);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

/* Botões customizados */
.btn-green {
    background: linear-gradient(135deg, var(--green-secondary) 0%, var(--green-primary) 100%);
    border: none;
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
    color: var(--white);
}

.btn-outline-green {
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
    background: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-green:hover {
    background: var(--green-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Feature boxes */
.feature-box {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 2px 12px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--green-dark);
}

/* Dashboard específico */
.stats-card {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-secondary) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px var(--shadow);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Upload area */
.upload-area {
    border: 3px dashed var(--green-light);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--green-primary);
    background: var(--green-pale);
    background-opacity: 0.1;
}

.upload-icon {
    font-size: 4rem;
    color: var(--green-secondary);
    margin-bottom: 1rem;
}

/* Progress bar customizado */
.progress-modern {
    height: 8px;
    border-radius: 10px;
    background: var(--neutral-light);
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: linear-gradient(90deg, var(--green-light) 0%, var(--green-primary) 100%);
    border-radius: 10px;
}

/* Badge customizado */
.badge-green {
    background: linear-gradient(135deg, var(--green-primary) 0%, #2eb879 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Footer */
.footer-modern {
    background: linear-gradient(135deg, #0f4d33 0%, #136945 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    :root {
        --header-height: 76px;
    }

    .site-main {
        padding-top: calc(var(--header-height) + 8px);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }

    .hero-section {
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
}

/* Alerts customizados */
.alert-success {
    background: var(--green-pale);
    color: var(--green-dark);
    border: none;
    border-left: 4px solid var(--green-primary);
}

.alert-danger {
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: var(--green-lighter);
    color: var(--green-dark);
    border-left: 4px solid var(--green-secondary);
}

/* Forms melhorados */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 106, 79, 0.15);
}

.form-label {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Input group */
.input-group-outline {
    position: relative;
}

.input-group-outline .form-control {
    padding-left: 1rem;
}

/* Admin */
.admin-shell {
    max-width: 1600px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-main-content {
    min-width: 0;
}

.admin-sidebar {
    position: sticky;
    top: 90px;
    min-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #d6e7dc;
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.08);
    padding: 0.9rem;
    flex-direction: column;
}

.admin-sidebar-header {
    padding: 0.6rem 0.5rem 0.9rem 0.5rem;
    border-bottom: 1px solid #e5f0ea;
    margin-bottom: 0.75rem;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.72rem;
    border-radius: 10px;
    text-decoration: none;
    color: #1b4332;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link i {
    font-size: 1rem;
}

.admin-nav-link:hover {
    background: #edf7f1;
    border-color: #d2e7d8;
    transform: translateX(2px);
}

.admin-nav-link.active {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #fff;
    border-color: transparent;
}

.admin-sidebar-footer {
    border-top: 1px solid #e5f0ea;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.admin-sidebar .admin-chip {
    color: #1b4332;
    background: #edf7f1;
    border: 1px solid #d1e8d9;
}

.admin-mobile-bar {
    display: flex;
    justify-content: flex-end;
}

.admin-sidebar-mobile .offcanvas-header {
    border-bottom: 1px solid #e5f0ea;
}

.admin-sidebar-mobile .offcanvas-body {
    padding-top: 0.75rem;
}

.admin-sidebar-mobile .admin-nav-link.active {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #fff;
}

.admin-topbar {
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.25);
}

.admin-topbar h2 {
    color: var(--white);
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-admin-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 600;
}

.btn-admin-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
}

.admin-main-content .btn-primary,
.admin-main-content .btn-success {
    background: linear-gradient(135deg, var(--green-secondary) 0%, var(--green-primary) 100%);
    border-color: var(--green-primary);
    color: #fff;
}

.admin-main-content .btn-primary:hover,
.admin-main-content .btn-success:hover {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    border-color: var(--green-dark);
    color: #fff;
}

.admin-main-content .btn-warning {
    background: #f2b639;
    border-color: #f2b639;
    color: #173325;
}

.admin-main-content .btn-warning:hover {
    background: #df9f1b;
    border-color: #df9f1b;
    color: #10271c;
}

.admin-main-content .btn-secondary {
    background: #4f5d55;
    border-color: #4f5d55;
}

.admin-main-content .btn-secondary:hover {
    background: #3f4b45;
    border-color: #3f4b45;
}

.admin-main-content .btn-outline-primary,
.admin-main-content .btn-outline-dark {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.admin-main-content .btn-outline-primary:hover,
.admin-main-content .btn-outline-dark:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: #fff;
}

.admin-stat-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(33, 37, 41, 0.08);
}

.admin-stat-card .card-body {
    padding: 1rem;
}

.admin-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5e6974;
}

.admin-stat-value {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--green-dark);
    line-height: 1.2;
}

.admin-panel {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(33, 37, 41, 0.08);
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-toolbar .input-group {
    max-width: 380px;
}

.admin-table-wrap {
    max-height: 420px;
    overflow: auto;
    border-radius: 10px;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #edf4ef;
    border-bottom: 1px solid #d6e7dc;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-table td {
    vertical-align: middle;
}

.admin-table .badge {
    font-size: 0.75rem;
}

.admin-jobs-wrap {
    max-height: calc(100vh - 280px);
    overflow: auto;
}

.admin-jobs-table {
    min-width: 1680px;
}

.admin-jobs-table td,
.admin-jobs-table th {
    white-space: nowrap;
}

.admin-jobs-table td .text-break {
    white-space: normal;
    word-break: break-word;
}

.admin-empty {
    padding: 1rem;
    color: #6c757d;
    text-align: center;
}

/* Home extras */
.compliance-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 3px 16px rgba(29, 67, 50, 0.1);
    height: 100%;
}

.compliance-card .card-body {
    padding: 1.25rem;
}

.compliance-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.comparison-strip {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d8e3db;
}

.comparison-strip .bad {
    background: #f9ecec;
}

.comparison-strip .good {
    background: #e9f7ef;
}

/* Planos */
.plan-grid .plan-col {
    display: flex;
}

.plan-card {
    position: relative;
    width: 100%;
    border: 1px solid #d8e6dd;
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(149, 213, 178, 0.16) 0%, rgba(149, 213, 178, 0) 45%),
        linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
    box-shadow: 0 10px 32px rgba(27, 67, 50, 0.08);
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(27, 67, 50, 0.16);
    border-color: #b8d9c7;
}

.plan-card-featured {
    border: 2px solid var(--green-primary);
    box-shadow: 0 18px 40px rgba(45, 106, 79, 0.24);
}

.plan-badge-inline {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0f2d21;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4f8d6 0%, #d7f1a8 100%);
    border: 1px solid #cde599;
}

.plan-credit-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--green-dark);
    background: #e8f6ee;
    border: 1px solid #cbe7d7;
}

.plan-price-wrap {
    padding: 0.35rem 0;
    border-bottom: 1px dashed #d7e7dd;
}

.plan-price {
    color: var(--green-primary);
    font-family: 'Sora', sans-serif;
}

.plan-feature-list li {
    color: #2f3a35;
}

.plan-feature-list li i {
    color: var(--green-primary);
}

.plan-buy-btn {
    font-weight: 700;
    border-radius: 10px;
}

.service-digital-notice {
    border: 1px solid #d3e6db;
    background: #ecf9f1;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #104b30;
}

.legal-doc {
    max-width: 920px;
    background: #ffffff;
    border: 1px solid #dce9e1;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(27, 67, 50, 0.08);
    padding: 2rem 2.2rem;
}

.legal-header h1 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: #153627;
}

.legal-section {
    margin-bottom: 1.4rem;
}

.legal-section h2 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
    font-family: 'Sora', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1f4f39;
}

.legal-section h3 {
    font-size: 0.95rem;
    margin-top: 0.9rem;
    margin-bottom: 0.25rem;
    font-family: 'Sora', sans-serif;
    color: #2a6047;
}

.legal-section p,
.legal-section li {
    font-size: 0.96rem;
    line-height: 1.6;
    color: #2f3a35;
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #d8f0e2;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        padding: 1rem;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-toolbar .input-group {
        max-width: 100%;
        width: 100%;
    }

    .admin-table-wrap {
        max-height: none;
    }

    .legal-doc {
        padding: 1.2rem 1rem;
    }

}

@media (max-width: 576px) {
    .plan-credit-pill {
        font-size: 0.68rem;
        padding: 0.24rem 0.55rem;
    }

    .plan-price {
        font-size: 1.75rem;
    }
}

