:root {
    --ares-ink: #111111;
    --ares-ink-soft: #232323;
    --ares-carbon: #2f2f2f;
    --ares-blue: #0f4fb6;
    --ares-blue-deep: #0b3f92;
    --ares-blue-soft: #eaf3ff;
    --ares-sand: #f4efe6;
    --ares-warm: #e4d2b2;
    --ares-gold: #ffc21a;
    --ares-gold-deep: #e0a800;
    --ares-line: #d9d9d9;
    --ares-paper: #f9f7f2;
    --ares-white: #ffffff;
    --ares-danger: #a64242;
    --ares-success: #2f6b4f;
    --ares-shadow: 0 22px 48px rgba(17, 17, 17, 0.14);
}

body.ares-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(15, 79, 182, 0.14), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, #f7f3eb 42%, #eef4ff 100%);
    color: var(--ares-ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.ares-shell {
    max-width: 1200px;
}

.ares-topbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 255, 0.96));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 28px;
    padding: 22px 24px;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
    position: relative;
    overflow: hidden;
}

.ares-topbar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--ares-blue), #1670df, var(--ares-gold));
}

.ares-topbar-centered {
    text-align: center;
}

.ares-brand-mark {
    width: 170px;
    max-width: 100%;
    display: block;
}

.ares-brand-top {
    width: min(100%, 260px);
    background: var(--ares-blue);
    border-radius: 22px;
    padding: 18px 26px;
    margin: 0 auto 18px;
    box-shadow: 0 18px 36px rgba(15, 79, 182, 0.24);
}

.ares-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    padding: 12px 18px;
    background: rgba(15, 79, 182, 0.08);
    border-radius: 999px;
}

.ares-user-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ares-blue);
    padding: 9px;
    object-fit: contain;
}

.ares-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: var(--ares-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.ares-title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 1.08;
    margin-bottom: 12px;
}

.ares-subtitle {
    color: rgba(17, 17, 17, 0.72);
    max-width: 640px;
    font-size: 1.02rem;
}

.ares-hero {
    background: linear-gradient(135deg, var(--ares-blue) 0%, #1360d0 46%, #25a9ff 100%);
    color: var(--ares-white);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 26px 56px rgba(15, 79, 182, 0.2);
}

.ares-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.2), transparent 18%),
        linear-gradient(130deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

.ares-hero::after {
    content: "";
    position: absolute;
    inset: auto -130px -120px auto;
    width: 360px;
    height: 220px;
    background: var(--ares-paper);
    border-radius: 50% 50% 0 0;
    transform: rotate(-10deg);
    opacity: 0.96;
}

.ares-hero > * {
    position: relative;
    z-index: 1;
}

.ares-greeting {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    margin-bottom: 14px;
}

.ares-quote {
    max-width: 760px;
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 194, 26, 0.9);
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.92);
}

.ares-stat-grid,
.ares-card-grid {
    display: grid;
    gap: 18px;
}

.ares-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ares-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ares-stat,
.ares-panel,
.ares-action-card,
.ares-table-wrap,
.ares-login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
}

.ares-stat,
.ares-panel,
.ares-action-card,
.ares-login-card {
    padding: 24px;
}

.ares-stat-label {
    color: rgba(17, 17, 17, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.ares-stat-value {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.85rem;
    margin: 0;
}

.ares-section-title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.ares-section-text {
    color: rgba(17, 17, 17, 0.68);
    margin-bottom: 0;
}

.ares-action-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
    position: relative;
}

.ares-action-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 24px 0 0 24px;
    background: linear-gradient(180deg, var(--ares-blue), var(--ares-gold));
}

.ares-action-title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.28rem;
    margin: 0;
}

.ares-action-desc {
    color: rgba(17, 17, 17, 0.68);
    flex-grow: 1;
}

.btn-ares-dark,
.btn-ares-gold,
.btn-ares-light {
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    border-width: 1px;
}

.btn-ares-dark {
    background: var(--ares-blue);
    border-color: var(--ares-blue);
    color: var(--ares-white);
}

.btn-ares-dark:hover {
    background: var(--ares-blue-deep);
    border-color: var(--ares-blue-deep);
    color: var(--ares-white);
}

.btn-ares-gold {
    background: var(--ares-gold);
    border-color: var(--ares-gold);
    color: var(--ares-blue-deep);
}

.btn-ares-gold:hover {
    background: var(--ares-gold-deep);
    border-color: var(--ares-gold-deep);
    color: var(--ares-blue-deep);
}

.btn-ares-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--ares-white);
}

.btn-ares-light:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--ares-white);
}

.ares-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ares-nav-link {
    color: var(--ares-blue-deep);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 79, 182, 0.08);
}

.ares-nav-link.active,
.ares-nav-link:hover {
    background: var(--ares-blue);
    color: var(--ares-white);
}

.ares-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.ares-filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.ares-table-wrap {
    overflow: hidden;
}

.ares-table-head {
    padding: 20px 24px 0;
}

.ares-table-title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.table.ares-table {
    margin-bottom: 0;
}

.table.ares-table thead th {
    border-bottom: none;
    background: rgba(15, 79, 182, 0.06);
    color: rgba(17, 17, 17, 0.74);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.74rem;
    white-space: nowrap;
}

.table.ares-table > :not(caption) > * > * {
    padding: 0.95rem 1rem;
    border-color: rgba(17, 17, 17, 0.08);
}

.ares-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.ares-badge.aprovado {
    background: rgba(47, 107, 79, 0.14);
    color: var(--ares-success);
}

.ares-badge.pendente {
    background: rgba(255, 194, 26, 0.18);
    color: #946f00;
}

.ares-badge.cancelado {
    background: rgba(166, 66, 66, 0.12);
    color: var(--ares-danger);
}

.ares-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.ares-login-card {
    width: min(100%, 460px);
}

.ares-login-logo {
    width: 210px;
    max-width: 100%;
    background: var(--ares-blue);
    border-radius: 20px;
    padding: 18px 22px;
    margin: 0 auto 24px;
    box-shadow: 0 18px 36px rgba(15, 79, 182, 0.22);
}

.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    padding: 0.78rem 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 79, 182, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(15, 79, 182, 0.14);
}

.ares-user-chip-top {
    margin-right: auto;
}

@media (max-width: 991px) {
    .ares-user-chip-top {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ares-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ares-hero {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .ares-hero::after {
        width: 240px;
        height: 150px;
        inset: auto -90px -82px auto;
    }

    .ares-topbar {
        padding: 16px;
        border-radius: 22px;
    }

    .ares-brand-top {
        width: min(100%, 220px);
        padding: 14px 20px;
        border-radius: 18px;
    }

    .ares-panel,
    .ares-action-card,
    .ares-stat,
    .ares-login-card {
        padding: 20px;
        border-radius: 20px;
    }

    .ares-user-chip {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 10px 14px;
    }

    .ares-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        margin: 0 -4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .ares-nav-link,
    .ares-nav .btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .ares-filter-actions,
    .ares-hero .d-flex,
    .ares-panel .d-flex.gap-2,
    .ares-panel .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch !important;
    }

    .btn-ares-dark,
    .btn-ares-gold,
    .btn-ares-light,
    .ares-filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .ares-stat-grid,
    .ares-card-grid,
    .ares-filter-grid {
        grid-template-columns: 1fr;
    }

    .ares-stat-value {
        font-size: 1.55rem;
    }

    .ares-table-head {
        padding: 18px 18px 0;
    }

    .table-responsive {
        border-top: 1px solid rgba(17, 17, 17, 0.06);
    }

    .table.ares-table {
        font-size: 0.93rem;
    }

    .table.ares-table > :not(caption) > * > * {
        padding: 0.8rem 0.72rem;
    }
}




.ares-desktop-only {
    display: block;
}

.ares-mobile-only {
    display: none;
}

.ares-mobile-list {
    display: grid;
    gap: 14px;
}

.ares-mobile-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.ares-mobile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.ares-mobile-title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.05rem;
    margin: 0;
}

.ares-mobile-subtitle {
    color: rgba(17, 17, 17, 0.62);
    margin: 0;
    font-size: 0.92rem;
}

.ares-mobile-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.ares-mobile-meta div {
    background: rgba(15, 79, 182, 0.05);
    border-radius: 14px;
    padding: 10px 12px;
}

.ares-mobile-meta strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(17, 17, 17, 0.6);
    margin-bottom: 2px;
}

.ares-mobile-actions {
    display: grid;
    gap: 8px;
}

@media (max-width: 768px) {
    .ares-desktop-only {
        display: none !important;
    }

    .ares-mobile-only {
        display: block !important;
    }

    .ares-mobile-actions .btn {
        width: 100%;
    }
}
