:root {
    --bg: #F6FBF8;
    --card: #FFFFFF;
    --card2: #FFFFFF;
    --text: #0F172A;
    --muted: #5B6B7A;
    --line: rgba(16, 24, 40, .12);

    --brand: #16A34A;
    /* verde principal */
    --brand2: #22C55E;
    /* verde apoio */
    --danger: #EF4444;

    --shadow: 0 16px 40px rgba(2, 6, 23, .08);
    --radius: 18px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background:
        radial-gradient(900px 500px at 20% 10%, rgba(34, 197, 94, .14), transparent 55%),
        radial-gradient(700px 400px at 80% 20%, rgba(16, 185, 129, .10), transparent 55%),
        radial-gradient(800px 500px at 50% 110%, rgba(34, 197, 94, .08), transparent 55%),
        var(--bg);
    color: var(--text);
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px;
}

/* ===== TOPBAR ===== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .14);
    border: 1px solid rgba(16, 24, 40, .10);
}

h1 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: .2px;
}

.subtitle {
    margin: 4px 0 0 0;
    color: var(--muted);
    font-size: .88rem;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.content {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.card-soft {
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, .02);
    border-radius: 16px;
    padding: 14px;
}

/* ===== HERO ===== */
.hero {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 14px;
}

.hero-text h2 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
}

.hero-text p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.hero-buttons {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== PILLS ===== */
.pill {
    border: 1px solid rgba(34, 197, 94, .28);
    background: rgba(34, 197, 94, .10);
    padding: 12px 12px;
    border-radius: 16px;
}

.pill-title {
    font-weight: 800;
    display: block;
    color: #0B3B1B;
}

.pill-text {
    color: var(--muted);
    font-size: .88rem;
}

/* ===== MINI ===== */
.mini h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.mini ol {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.45;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 14px;
    padding: 12px 4px 2px 4px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: .84rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 750;
    transition: transform .08s ease, background .15s ease, border-color .15s ease;
    box-shadow: 0 10px 26px rgba(2, 6, 23, .06);
}

.btn:hover {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .30);
}

.btn:active {
    transform: scale(.98)
}

.btn.primary {
    border-color: rgba(34, 197, 94, .55);
    background: linear-gradient(135deg, rgba(22, 163, 74, .92), rgba(34, 197, 94, .55));
    color: #052E16;
}

.btn.primary:hover {
    background: linear-gradient(135deg, rgba(22, 163, 74, .98), rgba(34, 197, 94, .62));
}

.btn.ghost {
    background: transparent;
    box-shadow: none;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative
}

.chev {
    margin-left: 8px;
    opacity: .9
}

/* menu clean */
.menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(620px, calc(100vw - 36px));
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    z-index: 5;
}

.menu.open {
    display: block
}

.menu-item {
    width: 100%;
    text-align: left;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    line-height: 1.25;
    font-weight: 700;
}

.menu-item:hover {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .20);
}

/* ===== TOPIC ===== */
.topic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.topic-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.badge {
    font-size: .78rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .10);
    color: var(--text);
}

.topic-body {
    color: var(--muted);
    line-height: 1.55;
}

.topic-body a {
    color: #0B3B1B;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topic-body .callout {
    margin-top: 12px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, .02);
    border-radius: 14px;
    padding: 12px;
}

.muted {
    color: var(--muted)
}

.small {
    font-size: .85rem
}

/* ===== MODAIS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 99;
}

.modal-overlay.open {
    display: flex
}

.modal {
    width: min(860px, 100%);
    max-height: 88vh;
    overflow: auto;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 10px 14px;
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.icon-btn {
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--text);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(2, 6, 23, .06);
}

.icon-btn:hover {
    border-color: rgba(34, 197, 94, .30);
    background: rgba(34, 197, 94, .08);
}

.modal-body {
    padding: 14px
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.field label {
    display: block;
    font-weight: 750;
    margin-bottom: 6px;
    font-size: .9rem;
    color: var(--text);
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(16, 24, 40, .14);
    background: #FFFFFF;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 14px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(2, 6, 23, .03);
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(34, 197, 94, .70);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.field textarea {
    resize: vertical
}

/* info/result/status clean */
.info-box {
    margin-top: 12px;
    border: 1px dashed rgba(34, 197, 94, .55);
    background: rgba(34, 197, 94, .08);
    border-radius: 16px;
    padding: 12px;
}

.modal-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.result {
    border: 1px solid rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .08);
    border-radius: 16px;
    padding: 12px;
}

.result h4 {
    margin: 0 0 8px 0
}

.result-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.row input {
    flex: 1
}

/* tracking */
.track-card {
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, .02);
    border-radius: 16px;
    padding: 12px;
}

.track-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 24, 40, .08);
}

.track-line:last-child {
    border-bottom: 0
}

.status-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .10);
    color: var(--text);
    font-weight: 800;
}

.empty {
    margin-top: 10px;
    padding: 12px;
    border: 1px dashed rgba(16, 24, 40, .14);
    border-radius: 16px;
    background: rgba(2, 6, 23, .02);
}

/* ===== RESPONSIVO ===== */
@media (max-width:860px) {
    .hero {
        grid-template-columns: 1fr
    }
}

@media (max-width:720px) {
    .grid {
        grid-template-columns: 1fr
    }

    .actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.mt12 {
    margin-top: 12px
}

.link-cta {
    display: inline-block;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    color: #0B3B1B;
}

.vida-intro {
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, .02);
    border-radius: 16px;
    padding: 12px;
}