/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
}

.view-section.active > header + section,
.view-section.active > section + section {
    margin-top: 8px;
    padding-top: 24px;
    position: relative;
}

.view-section.active > header + section::before,
.view-section.active > section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider-soft), transparent);
}

/* ---------- HERO ---------- */
.hero-section {
    padding: 50px 44px 36px;
    position: relative;
    overflow: hidden;
    background: var(--upm-gradient-hero-radial);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    box-shadow:
        0 4px 24px rgba(10, 42, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

.hero-section--unified {
    padding: 28px 32px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-unified-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 20px;
}

.hero-section--unified h1 {
    font-size: 1.85rem;
    margin-bottom: 6px;
}

.hero-section--unified .hero-subtitle {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.hero-section--unified .hero-badge {
    margin-bottom: 10px;
    padding: 5px 14px;
    font-size: 0.72rem;
}

.hero-countdown {
    min-width: 280px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.hero-countdown-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.hero-countdown-label i {
    color: var(--gold);
}

.hero-countdown-date {
    margin-top: 8px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
}

.hero-countdown-date i {
    color: var(--gold);
    margin-right: 4px;
}

.countdown-timer--compact {
    gap: 4px;
}

.countdown-timer--compact .countdown-unit {
    min-width: 52px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.countdown-timer--compact .countdown-value {
    font-size: 1.45rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
}

.countdown-timer--compact .countdown-text {
    font-size: 0.58rem;
    letter-spacing: 1px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.55);
}

.countdown-timer--compact .countdown-separator {
    font-size: 1.2rem;
    margin-top: -8px;
    color: rgba(255, 255, 255, 0.45);
}

.hero-action-bar {
    display: grid;
    grid-template-columns: minmax(240px, auto) minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 78, 74, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-prodi {
    flex-shrink: 0;
    min-width: 0;
}

.hero-prodi .prodi-toggle {
    width: 100%;
}

.hero-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--upm-teal-800, #134e4a), var(--upm-teal-600, #206060));
    color: #fff;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(10, 42, 42, 0.18);
}

.hero-scope-badge i {
    color: var(--gold, #D4AF37);
    font-size: 0.9rem;
}

.hero-progress {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 0;
    align-self: center;
}

.hero-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hero-progress-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--upm-teal-800);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-progress-label i {
    color: var(--emerald-500);
}

.hero-progress .progress-percent {
    font-size: 1.15rem;
}

.hero-progress .progress-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.hero-action-bar .toggle-btn {
    min-height: 36px;
    font-size: 0.74rem;
}

.hero-unified-top,
.hero-action-bar {
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: -45%;
    right: -12%;
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    background: radial-gradient(circle, var(--upm-teal-glow) 0%, transparent 68%);
    pointer-events: none;
    animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-badge i {
    color: var(--gold);
}

.hero-section h1 {
    font-family: "Poppins", sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    letter-spacing: -0.5px;
}

.gold-text {
    background: linear-gradient(135deg, #fde68a 0%, var(--gold) 45%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    font-weight: 400;
}

.hero-programs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.program-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--upm-teal-900, #0d3333);
    transition: var(--transition-base);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.program-chip i {
    color: var(--gold-dark, #b8941e);
}

.program-chip:hover {
    background: #ffffff;
    border-color: var(--gold);
    color: var(--upm-teal-950, #0a2a2a);
    transform: translateY(-3px);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* ---------- COUNTDOWN ---------- */
.countdown-section {
    margin: 24px 32px 32px;
    padding: 36px 40px;
    background: rgba(250, 250, 250, 0.88);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: floatIn 0.7s ease-out 0.4s both;
    box-shadow: var(--shadow-float-xl);
}

.countdown-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--emerald-400), var(--emerald-500), transparent);
    border-radius: 3px 3px 0 0;
}

.countdown-section::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(19, 78, 74, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.countdown-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--emerald-600);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.countdown-label i {
    color: var(--emerald-500);
    transition: opacity 0.3s ease;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding: 12px 8px;
    background: rgba(19, 78, 74, 0.04);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.countdown-unit:hover {
    background: rgba(19, 78, 74, 0.07);
    transform: translateY(-2px);
}

.countdown-value {
    font-family: "Poppins", sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    background: linear-gradient(180deg, var(--emerald-600) 0%, var(--emerald-800) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -1px;
}

.countdown-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-top: 6px;
}

.countdown-separator {
    font-family: "Poppins", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--emerald-400);
    opacity: 0.85;
    animation: countdownSeparatorPulse 2s ease-in-out infinite;
    margin-top: -18px;
}

.countdown-date {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.countdown-date i {
    color: var(--emerald-500);
    margin-right: 6px;
}

/* ---------- CONTROLS ---------- */
.controls-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 0 32px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.glass-card {
    background: rgba(250, 250, 250, 0.88);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    transform: translateZ(0);
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-xl);
    padding: 22px 26px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-float-md);
}

.glass-card:hover {
    border-color: rgba(19, 78, 74, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-float-lg);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.prodi-toggle {
    --toggle-gap: 3px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    position: relative;
    gap: var(--toggle-gap);
    background: #eef4f4;
    border-radius: 12px;
    padding: var(--toggle-gap);
    border: 1px solid rgba(19, 78, 74, 0.14);
    overflow: hidden;
    min-width: 260px;
}

.prodi-toggle--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toggle-btn {
    position: relative;
    z-index: 1;
    padding: 8px 10px;
    border: none;
    background: transparent;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--upm-teal-800, #134e4a);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    border-radius: 9px;
}

.toggle-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--upm-teal-800, #134e4a), var(--upm-teal-600, #206060));
    box-shadow: 0 2px 10px rgba(10, 42, 42, 0.22);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.toggle-btn:not(.active):hover:not(:disabled) {
    color: var(--upm-teal-950, #0a2a2a);
    background: rgba(19, 78, 74, 0.08);
}

.toggle-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.toggle-btn[disabled] {
    opacity: 0.38;
    cursor: not-allowed;
}

.toggle-slider {
    display: none;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-title i {
    color: var(--emerald-500);
}

.progress-percent {
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald-400), var(--emerald-500), var(--emerald-600));
    border-radius: 100px;
    transition: width var(--transition-slow);
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: shimmer 4s ease-in-out infinite;
    will-change: transform;
}

.progress-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- PREDICTOR ---------- */
.predictor-section {
    margin: 0 32px 32px;
    padding: 32px;
    background: rgba(250, 250, 250, 0.88);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    transform: translateZ(0);
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-float-lg);
    animation: floatIn 0.6s ease-out 0.55s both;
    position: relative;
    overflow: hidden;
}

.predictor-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--emerald-400), var(--gold), var(--emerald-500), transparent);
    border-radius: 3px 3px 0 0;
}

.predictor-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.predictor-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.predictor-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.predictor-tiers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.predictor-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface-elevated);
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    opacity: 0.55;
}

.predictor-card.active {
    opacity: 1;
    border-color: var(--emerald-400);
}

.key-sub-section {
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.key-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.key-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface-elevated);
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-md);
}

@media (max-width: 1024px) {
    .hero-section--unified {
        padding: 22px 18px 18px;
        margin: 0 16px 16px;
        gap: 14px;
    }

    .hero-unified-top {
        grid-template-columns: 1fr;
    }

    .hero-countdown {
        min-width: 0;
        width: 100%;
    }

    .hero-action-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-prodi {
        width: 100%;
    }

    .hero-section h1 {
        font-size: 1.55rem;
    }

    .predictor-section {
        margin: 0 16px 20px;
        padding: 24px 18px;
    }

    .key-sub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .prodi-toggle {
        min-width: 0;
    }

    .prodi-toggle .toggle-btn {
        padding: 8px 6px;
        font-size: 0.68rem;
        gap: 4px;
    }

    .prodi-toggle .toggle-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-unit {
        min-width: 55px;
    }

    .countdown-separator {
        font-size: 1.8rem;
    }

    .toggle-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .predictor-title {
        font-size: 1.1rem;
    }
}

/* ---------- PREDICTOR DETAIL ---------- */
.predictor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(19, 78, 74, 0.3);
}

.predictor-card {
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.predictor-card:hover {
    opacity: 0.75;
    transform: translateY(-1px);
    box-shadow: var(--shadow-float-sm);
}

.predictor-card.active {
    box-shadow:
        0 2px 8px rgba(19, 78, 74, 0.1),
        0 8px 24px rgba(19, 78, 74, 0.08);
    transform: translateY(-2px) scale(1.01);
}

.tier-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--gray-300);
    transition: var(--transition-base);
}

.tier-unggul5 .tier-indicator { background: linear-gradient(180deg, var(--upm-teal-600), var(--upm-teal-800)); }
.tier-unggul4 .tier-indicator { background: linear-gradient(180deg, var(--upm-teal-500), var(--upm-teal-600)); }
.tier-unggul3 .tier-indicator { background: linear-gradient(180deg, var(--emerald-200), var(--upm-teal-500)); }
.tier-akreditasi .tier-indicator { background: linear-gradient(180deg, #fbbf24, #d97706); }
.tier-tidak .tier-indicator { background: linear-gradient(180deg, #f87171, #ef4444); }

.tier-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tier-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.tier-unggul5 .tier-badge { color: var(--upm-teal-800); background: rgba(19, 78, 74, 0.1); }
.tier-unggul4 .tier-badge { color: var(--upm-teal-700); background: rgba(19, 78, 74, 0.08); }
.tier-unggul3 .tier-badge { color: var(--upm-teal-600); background: rgba(42, 117, 117, 0.1); }
.tier-akreditasi .tier-badge { color: #d97706; background: rgba(245, 158, 11, 0.1); }
.tier-tidak .tier-badge { color: #ef4444; background: rgba(239, 68, 68, 0.08); }

.predictor-card.active .tier-badge { box-shadow: 0 2px 10px rgba(19, 78, 74, 0.2); }
.predictor-card.active.tier-akreditasi .tier-badge { box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2); }
.predictor-card.active.tier-tidak .tier-badge { box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2); }

.tier-info { display: flex; flex-direction: column; }

.tier-name {
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.tier-duration { font-size: 0.75rem; font-weight: 600; color: var(--emerald-600); }
.tier-akreditasi .tier-duration { color: var(--warning); }
.tier-tidak .tier-duration { color: var(--danger); }

.tier-condition {
    flex: 1;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding-left: 8px;
    border-left: 1px solid var(--gray-200);
    margin-left: 4px;
}

.tier-condition strong { color: var(--text-secondary); }

.tier-status-icon {
    display: none;
    font-size: 1.3rem;
    color: var(--emerald-500);
    flex-shrink: 0;
    animation: checkPop 0.4s ease-out;
}

.predictor-card.active .tier-status-icon { display: flex; }
.predictor-card.active.tier-akreditasi .tier-status-icon { color: var(--warning); }
.predictor-card.active.tier-tidak .tier-status-icon { color: var(--danger); }

.predictor-card.active.tier-akreditasi {
    border-color: #fbbf24;
    box-shadow:
        0 2px 8px rgba(245, 158, 11, 0.1),
        0 8px 24px rgba(245, 158, 11, 0.08);
}

.predictor-card.active.tier-tidak {
    border-color: #f87171;
    box-shadow:
        0 2px 8px rgba(239, 68, 68, 0.1),
        0 8px 24px rgba(239, 68, 68, 0.08);
}

.key-sub-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.key-sub-title i {
    color: var(--gold);
    font-size: 0.9rem;
}

.key-sub-item {
    transition: var(--transition-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.key-sub-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-float-sm);
}

.key-sub-id {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--emerald-600);
    min-width: 28px;
}

.key-sub-name {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
}

.key-sub-status {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.key-sub-status.status-memenuhi { background: rgba(19, 78, 74, 0.1); color: var(--upm-teal-800); border: 1px solid rgba(19, 78, 74, 0.2); }
.key-sub-status.status-sebagian { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }
.key-sub-status.status-tidak { background: rgba(239, 68, 68, 0.08); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.15); }

/* ---------- KRITERIA & TABLE ---------- */
.kriteria-section {
    margin: 0 32px 28px;
    animation: fadeInUp 0.4s ease-out both;
}

.kriteria-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px 22px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-float-md);
    transition: var(--transition-base);
}

.kriteria-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float-lg);
}

.kriteria-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--emerald-400), var(--emerald-600));
    border-radius: 4px 0 0 4px;
}

.kriteria-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(19, 78, 74, 0.3);
}

.kriteria-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.kriteria-progress {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--emerald-600);
}

.kriteria-progress-ring { width: 36px; height: 36px; }
.kriteria-progress-ring circle { fill: none; stroke-width: 3; }
.kriteria-progress-ring .ring-bg { stroke: var(--gray-200); }

.kriteria-progress-ring .ring-fill {
    stroke: var(--emerald-500);
    stroke-linecap: round;
    transition: stroke-dashoffset var(--transition-slow);
    transform: rotate(-90deg);
    transform-origin: center;
}

.sub-kriteria-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-xl);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-float-sm);
}

.sub-kriteria-card:hover {
    border-color: rgba(19, 78, 74, 0.18);
    transform: translateY(-2px);
    box-shadow: var(--shadow-float-md);
}

.sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(19, 78, 74, 0.06);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-base);
}

.sub-header:hover { background: rgba(19, 78, 74, 0.04); }
.sub-header-left { display: flex; align-items: center; gap: 12px; }
.sub-number { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--emerald-600); min-width: 30px; }
.sub-title { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }

.sub-element-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--emerald-600);
    background: rgba(19, 78, 74, 0.08);
    padding: 3px 12px;
    border-radius: 100px;
    white-space: nowrap;
    border: 1px solid rgba(19, 78, 74, 0.12);
}

.sub-header-right { display: flex; align-items: center; gap: 12px; }
.sub-toggle-icon { color: var(--text-muted); font-size: 0.8rem; transition: transform var(--transition-base); }
.sub-kriteria-card.expanded .sub-toggle-icon { transform: rotate(180deg); }

.element-table-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-kriteria-card.expanded .element-table-wrapper { max-height: 2000px; }
#view-spmi .spmi-glass-card .element-table-wrapper { max-height: none; overflow: visible; }

#view-spmi .element-table thead th:nth-child(1) { width: 50px; text-align: center; }
#view-spmi .element-table thead th:nth-child(2) { min-width: 180px; }
#view-spmi .element-table thead th:nth-child(3) { min-width: 220px; }
#view-spmi .element-table thead th:nth-child(4) { min-width: 140px; }
#view-spmi .element-table thead th:nth-child(5) { min-width: 200px; }

.element-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.element-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(19, 78, 74, 0.04);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.element-table thead th:first-child { width: 50px; text-align: center; }
.element-table thead th:nth-child(2) { min-width: 200px; }
.element-table thead th:nth-child(3) { width: 80px; text-align: center; }
.element-table thead th:nth-child(4) { min-width: 240px; }
.element-table thead th:nth-child(5) { min-width: 160px; }
.element-table thead th:nth-child(6) { min-width: 260px; }

.element-table tbody tr {
    border-bottom: 1px solid rgba(19, 78, 74, 0.06);
    transition: var(--transition-fast);
}

.element-table tbody tr:hover {
    background: rgba(19, 78, 74, 0.08);
    box-shadow: 0 2px 10px rgba(19, 78, 74, 0.05);
}

.element-table tbody tr.completed { background: rgba(19, 78, 74, 0.04); }
.element-table tbody td { padding: 10px 14px; color: var(--text-secondary); vertical-align: middle; }

.element-table tbody td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: "Inter", Courier, monospace;
    font-variant-numeric: tabular-nums;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.status-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.active { background: rgba(19, 78, 74, 0.1); color: var(--emerald-600); }
.status-indicator.active .dot { background: var(--emerald-500); }

.status-indicator.active .dot::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: var(--emerald-400);
    opacity: 0.4;
    animation: none;
}

.status-indicator.inactive { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }
.status-indicator.inactive .dot { background: var(--text-muted); }

.verify-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.verify-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verify-status-input {
    min-width: 130px;
    border: 1px solid rgba(19, 78, 74, 0.25);
    border-radius: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.verify-status-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.verify-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.verify-pill.verify-draft {
    background: rgba(148, 163, 184, 0.14);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.verify-pill.verify-diverifikasi {
    background: rgba(19, 78, 74, 0.14);
    color: var(--upm-teal-800);
    border: 1px solid rgba(19, 78, 74, 0.35);
}

.verify-pill.verify-revisi {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.verify-summary {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.verify-notes-input {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-secondary);
    resize: vertical;
}

.verify-notes-input[readonly] {
    opacity: 0.8;
}

/* ---------- ADMIN MONITORING ---------- */
.admin-monitoring-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-float-md);
}

.admin-monitoring-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.deadline-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.deadline-inline i {
    color: var(--emerald-600);
}

.realtime-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--emerald-700);
    background: rgba(19, 78, 74, 0.08);
    border: 1px solid rgba(19, 78, 74, 0.2);
}

.realtime-sidebar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 18px 0;
}

.realtime-pill-sidebar {
    flex: 1;
    margin: 0;
    padding: 4px 10px;
    font-size: 0.65rem;
    min-width: 0;
    justify-content: center;
}

.btn-refresh-sidebar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-refresh-sidebar:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--gold);
}

.btn-refresh-sidebar:active {
    transform: scale(0.95);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.realtime-pill.state-connected {
    color: var(--emerald-700);
    background: rgba(19, 78, 74, 0.08);
    border-color: rgba(19, 78, 74, 0.25);
}

.realtime-pill.state-connecting,
.realtime-pill.state-reconnecting {
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.realtime-pill.state-fallback {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.realtime-pill.state-offline {
    color: #475569;
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.3);
}

.admin-progress-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.admin-progress-card {
    background: var(--surface-elevated);
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.admin-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-progress-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--emerald-800);
    font-weight: 700;
}

.admin-progress-percent {
    margin: 8px 0 6px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--emerald-700);
    line-height: 1;
}

.admin-progress-bar-wrap {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.admin-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald-400), var(--emerald-600));
    transition: width var(--transition-slow);
}

.admin-progress-detail {
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.critical-badge,
.safe-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.critical-badge {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #dc2626;
}

.safe-badge {
    background: rgba(19, 78, 74, 0.12);
    border: 1px solid rgba(19, 78, 74, 0.25);
    color: var(--upm-teal-800);
}

.admin-detail-btn {
    width: 100%;
    justify-content: center;
}

.admin-kriteria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-kriteria-card {
    background: var(--surface-elevated);
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.admin-kriteria-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.admin-kriteria-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-kriteria-compare--single {
    grid-template-columns: 1fr;
}

.admin-kriteria-col {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 10px;
}

.admin-kriteria-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-kriteria-col-sub {
    margin-top: 6px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.admin-kriteria-status {
    margin-top: 7px;
    font-size: 0.7rem;
    font-weight: 700;
}

.admin-kriteria-col.status-complete {
    background: rgba(19, 78, 74, 0.1);
    border-color: rgba(19, 78, 74, 0.25);
}

.admin-kriteria-col.status-complete .admin-kriteria-status {
    color: var(--upm-teal-800);
}

.admin-kriteria-col.status-progress {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.admin-kriteria-col.status-progress .admin-kriteria-status {
    color: #b45309;
}

.admin-kriteria-col.status-empty {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.22);
}

.admin-kriteria-col.status-empty .admin-kriteria-status {
    color: #b91c1c;
}

.admin-missing-panel {
    background: rgba(19, 78, 74, 0.03);
    border: 1px dashed rgba(19, 78, 74, 0.3);
    border-radius: var(--radius-md);
    padding: 14px;
}

.admin-missing-placeholder {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-missing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-missing-head h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.admin-missing-list {
    display: grid;
    gap: 8px;
}

.admin-missing-item {
    background: var(--surface-elevated);
    border: 1px solid var(--divider-soft);
    border-radius: 10px;
    padding: 10px;
}

.admin-missing-item-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-missing-item-count {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #b45309;
    font-weight: 600;
}

.admin-missing-empty {
    font-size: 0.8rem;
    color: var(--upm-teal-800);
    font-weight: 600;
}

/* ---------- SPMI ---------- */
.spmi-section { margin: 0 30px 28px; }

.spmi-section + .spmi-section {
    padding-top: 18px;
    border-top: 1px solid var(--divider-soft);
}

.spmi-glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 20px 40px rgba(5, 47, 32, 0.05),
        inset 0 0 0 1px rgba(19, 78, 74, 0.1);
    position: relative;
    overflow: hidden;
}

.spmi-glass-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(80, 200, 120, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.spmi-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }

.spmi-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 16px rgba(19, 78, 74, 0.25);
}

.spmi-title { font-family: "Poppins", sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--emerald-800); margin: 0 0 4px 0; }
.spmi-subtitle { font-size: 0.85rem; color: var(--emerald-600); margin: 0; }
.spmi-card-body { margin-top: 20px; }
.spmi-input-group { display: flex; gap: 12px; align-items: center; }
.spmi-input-group .link-input { flex: 1; margin-bottom: 0; }
.spmi-table { width: 100%; }
.spmi-table th { background: rgba(19, 78, 74, 0.08); }
.spmi-category-name { font-weight: 600; color: var(--emerald-800) !important; }
.spmi-input { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(19, 78, 74, 0.2); }
.spmi-input:focus { background: var(--white); border-color: var(--emerald-500); box-shadow: 0 0 0 3px rgba(19, 78, 74, 0.15); }
.spmi-action-cell { text-align: right; width: 140px; }

#view-sarpras #sarpras-inventaris {
    margin: 0 30px 28px;
}

.sarpras-section {
    margin: 0 0 16px;
}

.spmi-item-title {
    margin: 18px 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--emerald-800);
}

.spmi-item-list {
    margin: 0;
    padding-left: 20px;
}

.spmi-item-list li {
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.55;
}

.btn-buka-link {
    background: linear-gradient(135deg, var(--upm-teal-800, #134e4a), var(--upm-teal-600, #206060));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 42, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-buka-link:hover {
    background: linear-gradient(135deg, var(--upm-teal-900, #0d3333), var(--upm-teal-700, #1a5050));
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(10, 42, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-buka-link:active { transform: translateY(0); }

/* Pulse halus countdown (tanpa kedip keras) */
@keyframes countdownSeparatorPulse {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 1; }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .admin-progress-grid {
        grid-template-columns: 1fr;
    }

    .admin-kriteria-compare {
        grid-template-columns: 1fr;
    }

    .admin-missing-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .predictor-card { flex-wrap: wrap; gap: 10px; }
    .tier-condition {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        padding-top: 4px;
    }

    .kriteria-section { margin: 0 16px 20px; }
    .kriteria-header { padding: 14px 16px; }
    .kriteria-title { font-size: 1rem; }
    .element-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .spmi-section { margin: 0 16px 22px; }
    .spmi-section + .spmi-section { padding-top: 14px; }
    #view-sarpras #sarpras-inventaris { margin: 0 16px 22px; }
    .sarpras-section { margin: 0 0 14px; }

    .spmi-glass-card,
    .admin-monitoring-card,
    .admin-table-card {
        padding: 22px 18px;
    }

    .spmi-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-buka-link {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .sub-header { flex-wrap: wrap; gap: 8px; }
    .sub-header-right { width: 100%; justify-content: flex-end; }

    .spmi-section { margin: 0 12px 18px; }
    .spmi-section + .spmi-section { padding-top: 12px; }
    #view-sarpras #sarpras-inventaris { margin: 0 12px 18px; }
    .sarpras-section { margin: 0 0 12px; }

    .spmi-glass-card,
    .admin-monitoring-card,
    .admin-table-card {
        border-radius: 16px;
        padding: 16px 14px;
    }

    .spmi-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .admin-monitoring-meta,
    .admin-missing-head {
        gap: 12px;
    }

    .admin-progress-grid,
    .admin-kriteria-grid,
    .admin-missing-list {
        gap: 12px;
    }

    .admin-progress-card,
    .admin-kriteria-card,
    .admin-missing-item {
        padding: 12px;
    }

    .btn-buka-link {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 0.84rem;
    }
}

/* ---------- DASHBOARD INSIGHTS (Bento grid) ---------- */
.dashboard-insights {
    padding: 0 32px 28px;
    margin-top: 4px;
    animation: fadeInUp 0.6s ease-out 0.55s both;
}

.insights-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.insights-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--upm-teal-900, #0a2a2a);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insights-title i {
    color: var(--emerald-500);
}

.insights-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.insights-archive-stamp {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(19, 78, 74, 0.06);
    border: 1px solid rgba(19, 78, 74, 0.1);
}

/* 12-column bento master grid */
.insights-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(min-content, auto);
    gap: 14px;
    align-items: stretch;
}

.bento-cell {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(19, 78, 74, 0.1);
    border-radius: var(--radius-xl);
    padding: 16px 18px;
    box-shadow: 0 4px 18px rgba(10, 42, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.bento-cell--kpi {
    grid-column: 1 / -1;
    padding: 14px;
    background: rgba(250, 252, 252, 0.96);
}

.bento-cell--trend {
    grid-column: 1 / 9;
}

.bento-cell--predict {
    grid-column: 9 / -1;
}

.bento-cell--kriteria {
    grid-column: 1 / 8;
}

.bento-stack {
    grid-column: 8 / -1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.bento-stack .bento-cell {
    flex: 1;
}

.bento-cell--archive-rtl {
    grid-column: 1 / 5;
}

.bento-cell--archive-ami {
    grid-column: 5 / 9;
}

.bento-cell--archive-cat {
    grid-column: 9 / -1;
}

.bento-cell-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(19, 78, 74, 0.08);
    flex-shrink: 0;
}

.bento-cell-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--upm-teal-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.25;
}

.bento-cell-title i {
    color: var(--emerald-500);
    font-size: 0.85rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

.bento-cell-desc {
    margin: 4px 0 0;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.bento-cell-desc code {
    font-size: 0.68rem;
    background: rgba(19, 78, 74, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
}

.bento-cell-body {
    flex: 1;
    min-height: 0;
}

.bento-cell-body--center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 300px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(19, 78, 74, 0.25) transparent;
}

.bento-scroll--sm {
    max-height: 200px;
}

.bento-scroll::-webkit-scrollbar {
    width: 5px;
}

.bento-scroll::-webkit-scrollbar-thumb {
    background: rgba(19, 78, 74, 0.22);
    border-radius: 999px;
}

/* KPI tiles inside bento row */
.insights-kpi-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.bento-kpi-tile {
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(19, 78, 74, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-kpi-tile:hover {
    border-color: rgba(19, 78, 74, 0.18);
    transform: translateY(-1px);
}

.insight-kpi-value {
    font-family: "Poppins", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--upm-teal-800);
    line-height: 1.1;
}

.insight-kpi-value.gold {
    color: var(--gold);
}

.insight-kpi-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--text-secondary);
}

.insight-kpi-sub {
    font-size: 0.64rem;
    color: var(--text-muted);
    line-height: 1.25;
}

/* Bar charts inside cells */
.insight-bars {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.insight-bars--compact {
    gap: 6px;
}

.insight-bar-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.insight-bar-item--clickable {
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 4px 6px;
    margin: -2px -4px;
    transition: background 0.2s ease;
}

.insight-bar-item--clickable:hover {
    background: rgba(19, 78, 74, 0.05);
}

.insight-bar-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.insight-bar-id {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--emerald-600);
    flex-shrink: 0;
    min-width: 1.6rem;
}

.insight-bar-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insight-bar-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.insight-bar-row--dual {
    grid-template-columns: 32px 1fr auto;
}

.insight-bar-row--secondary {
    opacity: 0.88;
}

.insight-bar-dual-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.insight-bar-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(19, 78, 74, 0.08);
    overflow: hidden;
}

.insight-bars--compact .insight-bar-track {
    height: 5px;
}

.insight-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.insight-bar-fill.bar-high {
    background: linear-gradient(90deg, #50C878, #1D8A61);
}

.insight-bar-fill.bar-mid {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.insight-bar-fill.bar-low {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.insight-bar-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--upm-teal-800);
    min-width: 32px;
    text-align: right;
}

.insight-bar-detail {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Predict donut cell */
.insight-predict-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.insight-donut {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.96);
}

.insight-predict-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    min-width: 0;
}

.insight-predict-label strong {
    font-size: 0.92rem;
    color: var(--upm-teal-900);
}

.insight-predict-label small {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Trend chart */
.insight-trend-caption {
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(19, 78, 74, 0.06);
    white-space: nowrap;
}

.insight-trend-chart {
    width: 100%;
    min-height: 160px;
}

.insight-trend-svg {
    width: 100%;
    height: auto;
    display: block;
}

.insight-trend-grid {
    stroke: rgba(19, 78, 74, 0.08);
    stroke-width: 1;
}

.insight-trend-axis {
    fill: var(--text-muted);
    font-size: 10px;
    font-family: "Inter", sans-serif;
}

.insight-trend-line {
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.insight-trend-line--bundled {
    stroke: #1D8A61;
}

.insight-trend-dot--bundled {
    fill: #1D8A61;
}

.insight-trend-swatch--bundled {
    background: #1D8A61;
}

.insight-trend-line--s1 {
    stroke: #1D8A61;
}

.insight-trend-line--profesi {
    stroke: #D4AF37;
    stroke-dasharray: 6 4;
}

.insight-trend-dot--s1 {
    fill: #1D8A61;
}

.insight-trend-dot--profesi {
    fill: #D4AF37;
}

.insight-trend-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.insight-trend-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.insight-trend-swatch {
    display: inline-block;
    width: 14px;
    height: 3px;
    border-radius: 2px;
}

.insight-trend-swatch--s1 {
    background: #1D8A61;
}

.insight-trend-swatch--profesi {
    background: #D4AF37;
}

.insight-trend-empty {
    margin: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .bento-cell--trend {
        grid-column: 1 / 8;
    }

    .bento-cell--predict {
        grid-column: 8 / -1;
    }

    .bento-cell--kriteria {
        grid-column: 1 / 7;
    }

    .bento-stack {
        grid-column: 7 / -1;
    }
}

@media (max-width: 1024px) {
    .insights-kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bento-cell--trend,
    .bento-cell--predict,
    .bento-cell--kriteria,
    .bento-stack,
    .bento-cell--archive-rtl,
    .bento-cell--archive-ami,
    .bento-cell--archive-cat {
        grid-column: 1 / -1;
    }

    .bento-scroll {
        max-height: 260px;
    }
}

@media (max-width: 768px) {
    .dashboard-insights {
        padding: 0 16px 20px;
    }

    .insights-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-predict-wrap {
        flex-direction: row;
        align-items: center;
    }

    .bento-cell {
        padding: 14px 14px;
    }
}

@media (max-width: 480px) {
    .insights-kpi-strip {
        grid-template-columns: 1fr 1fr;
    }

    .insight-kpi-value {
        font-size: 1.15rem;
    }
}

/* ---------- Compact predictor strip ---------- */
.predictor-section--compact {
    padding: 22px 26px;
}

.predictor-section--compact .predictor-header {
    margin-bottom: 16px;
}

.predictor-tier-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.predictor-tier-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider-soft);
    background: var(--surface-elevated);
    opacity: 0.55;
    transition: var(--transition-base);
    text-align: center;
}

.predictor-tier-chip i {
    font-size: 1rem;
    color: var(--emerald-600);
}

.predictor-tier-chip-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.predictor-tier-chip-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.predictor-tier-chip.active {
    opacity: 1;
    border-color: var(--emerald-400);
    background: rgba(19, 78, 74, 0.06);
    box-shadow: 0 4px 14px rgba(10, 42, 42, 0.08);
}

.predictor-tier-chip.active.tier-unggul5 i,
.predictor-tier-chip.active.tier-unggul4 i,
.predictor-tier-chip.active.tier-unggul3 i {
    color: var(--gold);
}

.predictor-tier-chip.active.tier-tidak {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.05);
}

.predictor-tier-chip.active.tier-tidak i {
    color: #ef4444;
}

.predictor-tier-chip.active.tier-akreditasi i {
    color: #f59e0b;
}

.predictor-active-note {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(19, 78, 74, 0.05);
    border-left: 3px solid var(--emerald-500);
    font-size: 0.82rem;
    color: var(--text-secondary);
    min-height: 1.2em;
}

@media (max-width: 900px) {
    .predictor-tier-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .predictor-tier-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .predictor-section--compact {
        margin-left: 16px;
        margin-right: 16px;
        padding: 18px 16px;
    }
}
