* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #1e3a8a;
    --primary-dark: #172d6b;
    --accent: #2563eb;
    --border: #e5e7eb;
    --yellow: #facc15;
    --shadow: 0 12px 30px rgba(0,0,0,.08);
    --radius: 16px;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #eff3f8 0%, #f9fafb 100%);
    color: var(--text);
}

/* ===== NAVBAR ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 78px;
    background: linear-gradient(90deg, var(--primary), #1d4ed8);
    color: #fff;
    z-index: 1000;
    box-shadow: 0 10px 28px rgba(30, 58, 138, .24);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.brand-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-box h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.brand-box small {
    font-size: 12px;
    color: rgba(255,255,255,.84);
    margin-top: 4px;
    line-height: 1.3;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    backdrop-filter: blur(4px);
    min-height: 48px;
    max-width: 360px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.user-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 210px;
    display: inline-block;
}

.user-level {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 48px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
    border: 1px solid rgba(255,255,255,.16);
    white-space: nowrap;
}

.nav-btn.support {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.nav-btn.support:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-1px);
}

.nav-btn.admin {
    background: rgba(250, 204, 21, .16);
    color: #fff;
    border-color: rgba(250, 204, 21, .30);
}

.nav-btn.admin:hover {
    background: rgba(250, 204, 21, .24);
    transform: translateY(-1px);
}

.nav-btn.logout {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.nav-btn.logout:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

/* ===== CONTAINER ===== */
.wrapper {
    max-width: 1280px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-text h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.hero-text p {
    color: #374151;
    line-height: 1.6;
    max-width: 760px;
}

.hero-meta {
    min-width: 220px;
    display: grid;
    gap: 12px;
}

.mini-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.mini-card strong {
    display: block;
    font-size: 22px;
    color: var(--primary);
    margin-top: 4px;
}

.mini-card span {
    color: var(--muted);
    font-size: 13px;
}

/* ===== SEÇÃO ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 10px;
}

.section-title h3 {
    color: var(--primary);
    font-size: 22px;
}

.section-title p {
    color: var(--muted);
    font-size: 14px;
}

/* ===== CARDS ===== */
.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: .25s ease;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0,0,0,.10);
}

.card a {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 22px;
    height: 100%;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
}

.icon-box svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f172a;
}

.card p {
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
    min-height: 44px;
}

.card-footer {
    margin-top: 18px;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-container {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-right {
        width: 100%;
        justify-content: flex-start;
    }

    .wrapper {
        margin-top: 150px;
    }
}

@media (max-width: 600px) {
    .hero-text h2 {
        font-size: 22px;
    }

    .menu-cards {
        grid-template-columns: 1fr;
    }

    .wrapper {
        padding: 0 14px;
    }

    .user-badge {
        max-width: 100%;
    }

    .user-name {
        max-width: 140px;
    }
}