:root {
    --blue: #39758e;
    --green: #80af12;
    --dark: #162b43;
    --muted: #64748b;
    --background: #edf2f7;
    --border: #dce5ed;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--dark);
    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    background: white;
    border-bottom: 3px solid var(--green);
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand, .account {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand img {
    width: 105px;
    height: 76px;
    object-fit: contain;
}

.brand strong {
    color: var(--blue);
    font-size: 21px;
}

.brand small, .account small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.account {
    text-align: right;
}

button, .access {
    background: var(--blue);
    color: white;
    border: 0;
    border-radius: 7px;
    padding: 12px 20px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .access:hover {
    background: #285d74;
}

.container {
    max-width: 1440px;
    margin: auto;
    padding: 40px 30px;
}

.welcome {
    background: linear-gradient(115deg, #24556c, #39758e);
    color: white;
    padding: 40px;
    border-radius: 14px;
    border-bottom: 4px solid var(--green);
}

.environment {
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: bold;
    color: #e1efb7;
}

.welcome h1 {
    font-size: 32px;
    margin: 18px 0 12px;
}

.welcome p {
    line-height: 1.6;
    max-width: 850px;
    margin-bottom: 0;
    color: #e7f0f5;
}

.section-title {
    margin: 35px 0 22px;
}

.section-title h2 {
    margin-bottom: 8px;
}

.section-title p {
    color: var(--muted);
}

.modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.module {
    background: white;
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    box-shadow: 0 4px 14px rgba(20, 45, 70, .04);
    transition: transform .2s, box-shadow .2s;
}

.module:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(20, 45, 70, .09);
}

.module-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: #e5eff3;
    color: var(--blue);
    border-radius: 10px;
}

.module-icon svg {
    width: 28px;
    height: 28px;
}

.module h3 {
    font-size: 19px;
    margin: 18px 0 8px;
}

.module p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 12px;
}

.available {
    font-size: 12px;
    color: #166534;
    background: #dcfce7;
    padding: 6px 10px;
    border-radius: 20px;
}

.pending {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 7px 10px;
    border-radius: 20px;
}

.notice {
    margin-top: 30px;
    background: white;
    border-left: 4px solid var(--green);
    border-radius: 7px;
    padding: 20px;
    font-size: 14px;
}

.notice p {
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.5;
}

#mensagem {
    color: #b91c1c;
    margin-bottom: 15px;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    padding: 25px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1150px) {
    .modules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .modules {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-wrap: wrap;
    }

    .account {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .container {
        padding: 20px 15px;
    }

    .welcome {
        padding: 25px;
    }

    .welcome h1 {
        font-size: 25px;
    }
}
