:root {
    --portal-primary: #0d6e6e;
    --portal-secondary: #124170;
    --portal-accent: #f4b860;
    --portal-ink: #1b263b;
    --portal-surface: #f5f8fb;
    --portal-card: #ffffff;
    --portal-muted: #6c7a89;
    --portal-success: #1d7f5f;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--portal-ink);
    background: var(--portal-surface);
}

.public-body {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 110, 0.15), transparent 30%),
        radial-gradient(circle at right bottom, rgba(18, 65, 112, 0.12), transparent 25%),
        linear-gradient(180deg, #f8fbfd 0%, #eef4f9 100%);
}

.auth-body {
    background: linear-gradient(135deg, #0c5c67 0%, #123a67 100%);
}

h1, h2, h3, h4, h5 {
    color: var(--portal-ink);
}

.display-serif {
    font-family: 'Source Serif 4', serif;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 110, 110, 0.95), rgba(18, 65, 112, 0.95));
    color: #fff;
    border-radius: 32px;
}

.hero-shell::after {
    content: '';
    position: absolute;
    inset: auto -15% -40% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(244, 184, 96, 0.18);
    filter: blur(10px);
}

.metric-card,
.feature-card,
.portal-card,
.admin-card {
    border: 0;
    border-radius: 24px;
    background: var(--portal-card);
    box-shadow: 0 18px 50px rgba(15, 46, 77, 0.08);
}

.metric-card {
    padding: 1.5rem;
    height: 100%;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--portal-secondary);
}

.metric-label {
    color: var(--portal-muted);
    font-size: 0.92rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(12px);
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
}

.section-heading {
    max-width: 720px;
}

.chart-panel {
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(12, 44, 76, 0.08);
    padding: 1.5rem;
}

.timeline-list .timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-list .timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--portal-primary);
}

.publication-card {
    border: 1px solid rgba(13, 110, 110, 0.08);
    border-radius: 22px;
    padding: 1.25rem;
    background: #fff;
    height: 100%;
}

.form-section {
    border: 1px solid rgba(13, 110, 110, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--portal-secondary);
    margin-bottom: 1rem;
}

.upper-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--portal-muted);
    font-weight: 700;
}

.admin-stat {
    border-radius: 22px;
    color: #fff;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.admin-stat.primary { background: linear-gradient(135deg, #0d6e6e, #139b8a); }
.admin-stat.secondary { background: linear-gradient(135deg, #124170, #345b9b); }
.admin-stat.warning { background: linear-gradient(135deg, #c9861d, #f4b860); }
.admin-stat.success { background: linear-gradient(135deg, #1d7f5f, #28a679); }

.admin-stat .value {
    font-size: 2rem;
    font-weight: 800;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
}

.badge-soft.pending { background: #fff2db; color: #9b6500; }
.badge-soft.approved { background: #dff8ea; color: #156b4c; }
.badge-soft.rejected { background: #ffe4e6; color: #a02736; }

.table thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--portal-muted);
}

.login-panel {
    width: min(100%, 460px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 25px 60px rgba(9, 20, 44, 0.22);
    padding: 2rem;
}

.fade-up {
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .hero-shell {
        border-radius: 24px;
    }

    .metric-value,
    .admin-stat .value {
        font-size: 1.6rem;
    }
}
