/* ============================================================
   SISFORS - Sistem Informasi RG
   Global Stylesheet v4.0 (FINAL)
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
    --deep-purple:   #5D3FD3;
    --soft-lavender: #A78BFA;
    --misty-lilac:   #F8F4FF;
    --blush-pink:    #FFDEE9;
    --deep-navy:     #23263A;
    --white:         #ffffff;
    --gray-100:      #f5f5f7;
    --gray-500:      #8888a0;

    --shadow-sm: 0 4px 12px rgba(93, 63, 211, 0.08);
    --shadow-md: 0 12px 32px rgba(93, 63, 211, 0.15);
    --shadow-lg: 0 24px 56px rgba(93, 63, 211, 0.22);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: var(--misty-lilac);
    color: var(--deep-navy);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   NAVBAR — Clean & Complete
   ============================================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    isolation: isolate;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}
.logo:hover { transform: translateY(-1px); }

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5D3FD3, #A78BFA);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(93, 63, 211, 0.3);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.logo-text strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #23263A;
    white-space: nowrap;
}

.logo-text small {
    font-size: 0.7rem;
    color: #8888a0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #23263A;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-menu a:hover {
    background: #F8F4FF;
    color: #5D3FD3;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #23263A;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- NAVBAR MOBILE ---------- */
@media (max-width: 768px) {
    .nav-container { padding: 0.75rem 1rem; }

    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 0.78rem;
        border-radius: 10px;
    }
    .logo-text strong { font-size: 0.95rem; }
    .logo-text small  { font-size: 0.58rem; }

    .nav-toggle {
        display: flex;
        padding: 8px 6px;
    }
    .nav-toggle span { width: 22px; height: 2px; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 0.75rem 1rem 1rem;
        gap: 0.25rem;
        box-shadow: 0 20px 40px rgba(93, 63, 211, 0.15);
        border-top: 1px solid #f5f5f7;
        border-radius: 0 0 20px 20px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .nav-menu a {
        display: block;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
        width: 100%;
        text-align: left;
    }

    .nav-menu a:active {
        background: #F8F4FF;
        color: #5D3FD3;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: white;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(93, 63, 211, 0.88) 0%, rgba(167, 139, 250, 0.78) 100%),
        url('assets/hero.jpeg') center/cover no-repeat;
    background-blend-mode: multiply;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 222, 233, 0.25), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.35), transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
    animation: fadeUp 1s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.5rem 1.3rem;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 3px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, #FFDEE9, #ffffff, #FFDEE9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    max-width: 620px;
    margin-left: auto; margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.hero-stat span {
    font-size: 0.8rem;
    opacity: 0.85;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
    background: var(--white);
    color: var(--deep-purple);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: white;
    transform: translateY(-3px);
}

/* ============================================================
   SECTION GENERAL
   ============================================================ */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-head .kicker {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: var(--deep-purple);
    background: rgba(93, 63, 211, 0.08);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--deep-navy);
    margin-bottom: 0.7rem;
}

.section-head p {
    color: var(--gray-500);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   KATEGORI BLOCK
   ============================================================ */
.kategori-block { margin-bottom: 3.5rem; }

.kategori-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, rgba(93, 63, 211, 0.06), rgba(255, 222, 233, 0.35));
    border-radius: var(--radius-md);
    border-left: 5px solid var(--deep-purple);
}

.kategori-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: rgba(93, 63, 211, 0.1);
    border-radius: 10px;
    color: var(--deep-purple);
    flex-shrink: 0;
}

.kategori-icon svg { width: 20px; height: 20px; }

.kategori-head h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: var(--deep-purple);
    flex: 1;
    font-weight: 700;
}

.kategori-count {
    background: var(--deep-purple);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ============================================================
   STRUKTUR KELAS
   ============================================================ */
.grid-biodata {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.grid-pengurus { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid-pj       { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid-anggota  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.card-biodata {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card-biodata::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--deep-purple), var(--soft-lavender), var(--blush-pink));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.card-biodata:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--soft-lavender);
}

.card-biodata:hover::before { transform: scaleX(1); }

.card-biodata .foto-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 0.9rem;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--misty-lilac), var(--blush-pink));
}

.card-biodata img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-biodata:hover img { transform: scale(1.08); }

.card-biodata .foto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(93, 63, 211, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.8rem;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.card-biodata:hover .foto-overlay { opacity: 1; }

.card-biodata h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--deep-navy);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-biodata .jabatan {
    display: inline-block;
    background: var(--misty-lilac);
    color: var(--deep-purple);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-biodata.ketua .jabatan {
    background: linear-gradient(135deg, var(--deep-purple), var(--soft-lavender));
    color: white;
}

.badge-pengurus {
    background: linear-gradient(135deg, var(--deep-purple), var(--soft-lavender)) !important;
    color: white !important;
}
.badge-pj {
    background: linear-gradient(135deg, #FFDEE9, #FFB6D5) !important;
    color: #8B1E5C !important;
}
.badge-anggota {
    background: var(--misty-lilac) !important;
    color: var(--deep-purple) !important;
}

/* ============================================================
   SEARCH ANGGOTA
   ============================================================ */
.search-anggota {
    position: relative;
    margin-bottom: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.search-anggota .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
}

.search-anggota input {
    width: 100%;
    padding: 0.85rem 1.2rem 0.85rem 2.6rem;
    border: 2px solid var(--gray-100);
    background: white;
    border-radius: var(--radius-pill);
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    color: var(--deep-navy);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-anggota input:focus {
    outline: none;
    border-color: var(--soft-lavender);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

/* ============================================================
   JADWAL
   ============================================================ */
.jadwal-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.jadwal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.jadwal-table thead {
    background: linear-gradient(135deg, var(--deep-purple), var(--soft-lavender));
    color: white;
}

.jadwal-table th {
    padding: 1rem 1.2rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jadwal-table th:first-child { border-top-left-radius: var(--radius-sm); }
.jadwal-table th:last-child  { border-top-right-radius: var(--radius-sm); }

.jadwal-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.jadwal-table tbody tr { transition: background 0.2s; }
.jadwal-table tbody tr:hover { background: var(--misty-lilac); }

.jadwal-table .hari {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--deep-purple);
}

.kode-mk {
    display: inline-block;
    background: var(--misty-lilac);
    color: var(--deep-purple);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

/* ============================================================
   FORM MENFESS
   ============================================================ */
.form-menfess {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 680px;
    margin: 0 auto;
    border-top: 5px solid var(--deep-purple);
}

.form-menfess label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-navy);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.form-menfess select,
.form-menfess textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    margin-bottom: 1.4rem;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    background: var(--gray-100);
    color: var(--deep-navy);
    transition: var(--transition);
    resize: vertical;
}

.form-menfess select:focus,
.form-menfess textarea:focus {
    outline: none;
    border-color: var(--soft-lavender);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

.form-menfess button {
    width: 100%;
    background: linear-gradient(135deg, var(--deep-purple), var(--soft-lavender));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-menfess button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.form-menfess button:active { transform: translateY(0); }

/* ============================================================
   WALL MENFESS
   ============================================================ */
.feed-menfess {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.3rem;
}

.pesan-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 5px solid var(--deep-purple);
    position: relative;
}

.pesan-card:nth-child(3n+2) { border-left-color: var(--soft-lavender); }
.pesan-card:nth-child(3n+3) { border-left-color: var(--blush-pink); }

.pesan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pesan-card .penerima {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--deep-purple);
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pesan-card .penerima::before {
    content: '→';
    color: var(--soft-lavender);
    font-size: 1rem;
}

.pesan-card .isi-pesan {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--deep-navy);
    line-height: 1.6;
    font-style: italic;
}

.pesan-card .waktu {
    font-size: 0.72rem;
    color: var(--gray-500);
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.empty-state {
    text-align: center;
    color: var(--gray-500);
    padding: 3rem 1rem;
    font-style: italic;
    grid-column: 1 / -1;
}

/* ============================================================
   MODAL DETAIL SISWA
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(35, 38, 58, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active { display: flex; opacity: 1; }

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    color: var(--deep-navy);
    display: grid; place-items: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.modal-close svg { pointer-events: none; }

.modal-close:hover {
    background: var(--blush-pink);
    transform: rotate(90deg);
}

.modal-hero {
    background: linear-gradient(135deg, var(--deep-purple), var(--soft-lavender));
    padding: 2.5rem 2rem 3.5rem;
    text-align: center;
    color: white;
    position: relative;
}

.modal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 222, 233, 0.25), transparent 60%);
    pointer-events: none;
}

.modal-avatar {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    background: var(--misty-lilac);
}

.modal-hero h3 {
    font-size: 1.6rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    margin-bottom: 0.3rem;
}

.modal-hero .panggilan {
    font-family: 'Montserrat', sans-serif;
    opacity: 0.9;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0.8rem;
    min-height: 1.2em;
}

.modal-hero .jabatan-badge {
    display: inline-block;
    background: var(--blush-pink);
    color: var(--deep-purple);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.modal-body { padding: 2rem; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    background: var(--misty-lilac);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--deep-purple);
}

.detail-item .label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.detail-item .value {
    font-weight: 600;
    color: var(--deep-navy);
    font-size: 0.95rem;
    word-break: break-word;
}

.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
    color: white;
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.ig-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(225, 48, 108, 0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(180deg, var(--deep-navy) 0%, #1a1c2c 100%);
    color: white;
    margin-top: 5rem;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.25), transparent 70%);
    border-radius: 50%;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255, 222, 233, 0.18), transparent 70%);
    border-radius: 50%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--soft-lavender), var(--blush-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    opacity: 0.75;
    font-size: 0.9rem;
    max-width: 360px;
}

.footer h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: var(--soft-lavender);
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }

.footer ul a {
    font-size: 0.88rem;
    opacity: 0.75;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer ul a:hover {
    opacity: 1;
    color: var(--blush-pink);
    transform: translateX(4px);
}

.footer-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.footer-bottom strong { color: var(--soft-lavender); }

/* ============================================================
   NEXA — MASKOT KELAS
   ============================================================ */

.mascot-section {
    position: relative;
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 222, 233, 0.2) 0%, transparent 50%);
}

/* ---------- DECOR: Glow & Particles ---------- */
.mascot-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    animation: mascotGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
    filter: blur(40px);
    z-index: 0;
}
@keyframes mascotGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.6; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.mascot-particles {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden; z-index: 0;
}
.mascot-particles span {
    position: absolute;
    width: 8px; height: 8px;
    background: linear-gradient(135deg, #A78BFA, #FFB6D5);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.8);
    opacity: 0;
    animation: mascotParticleFloat 6s ease-in-out infinite;
}
.mascot-particles span:nth-child(1) { left: 15%; top: 80%; animation-delay: 0s;   }
.mascot-particles span:nth-child(2) { left: 25%; top: 90%; animation-delay: 0.8s; }
.mascot-particles span:nth-child(3) { left: 70%; top: 85%; animation-delay: 1.6s; }
.mascot-particles span:nth-child(4) { left: 85%; top: 75%; animation-delay: 2.4s; }
.mascot-particles span:nth-child(5) { left: 45%; top: 95%; animation-delay: 3.2s; }
.mascot-particles span:nth-child(6) { left: 60%; top: 88%; animation-delay: 4s;   }
@keyframes mascotParticleFloat {
    0%   { opacity: 0; transform: translateY(0)      scale(0.5); }
    20%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-300px) scale(1.3); }
}

/* ---------- LAYOUT: Hero Grid ---------- */
.nexa-hero {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    z-index: 2;
    padding: 1rem 0;
}

/* ---------- STAGE (kiri) ---------- */
.nexa-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.nexa-stage:focus-visible {
    filter: drop-shadow(0 0 0 3px rgba(167, 139, 250, 0.5));
}

.nexa-scene {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.3);
}

/* Entrance — sekali */
.nexa-scene.entering {
    animation: nexaEntrance 8s cubic-bezier(0.45, 0, 0.25, 1) 1 forwards;
}
@keyframes nexaEntrance {
    0%   { opacity: 0; transform: translate(-200px, 200px) scale(0.2) rotate(-180deg); filter: blur(12px); }
    15%  { opacity: 1; filter: blur(4px); }
    30%  { transform: translate(150px, 80px) scale(0.5) rotate(60deg); }
    50%  { transform: translate(-80px, -60px) scale(0.8) rotate(220deg); filter: blur(0); }
    70%  { transform: translate(40px, -110px) scale(0.95) rotate(320deg); }
    85%  { transform: translate(-15px, -20px) scale(1.05) rotate(355deg); }
    100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(360deg); filter: blur(0); }
}

/* Idle — selamanya setelah entrance */
.nexa-scene.idle {
    opacity: 1;
    transform: scale(1);
    animation: nexaIdleFloat 3.5s ease-in-out infinite;
}
@keyframes nexaIdleFloat {
    0%, 100% { transform: translateY(0)     scale(1); }
    50%      { transform: translateY(-12px) scale(1.02); }
}

/* Safety net: paksa visible kalau JS gagal */
.nexa-scene.force-visible {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: none !important;
}

/* ---------- CANVAS: Chroma key output ---------- */
.nexa-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 20px 30px rgba(93, 63, 211, 0.3));
    pointer-events: none;
}

/* Fallback kalau MP4 gagal load */
.nexa-canvas.is-blank {
    background:
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.25), transparent 70%),
        linear-gradient(135deg, #F8F4FF, #E8DFFF);
    border-radius: 50%;
}

/* ---------- INTERAKSI ---------- */
.nexa-scene.petting { animation: nexaBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes nexaBounce {
    0%, 100% { transform: scale(1); }
    30%      { transform: scale(1.08) rotate(-3deg); }
    60%      { transform: scale(0.98) rotate(2deg); }
}
.nexa-scene.feeding { animation: nexaWobble 0.7s ease-in-out; }
@keyframes nexaWobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25%      { transform: rotate(-5deg) scale(1.05); }
    75%      { transform: rotate(5deg) scale(1.05); }
}
.nexa-scene.playing { animation: nexaJump 0.6s ease 2; }
@keyframes nexaJump {
    0%, 100% { transform: translateY(0); }
    40%      { transform: translateY(-30px) rotate(5deg); }
}

/* ---------- HINT ---------- */
.nexa-hint {
    position: absolute;
    top: 0; right: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, #ffffff, #F8F4FF);
    color: var(--deep-purple);
    border: 1.5px solid rgba(167, 139, 250, 0.35);
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    box-shadow: 0 4px 12px rgba(93, 63, 211, 0.15);
    animation: nexaHintPulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nexa-stage.has-idle .nexa-hint { opacity: 1; }
@keyframes nexaHintPulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(-4px); opacity: 0.7; }
}
.nexa-stage.petted-once .nexa-hint { display: none; }

/* ---------- SPEECH BUBBLE ---------- */
.nexa-speech {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, #ffffff, #F8F4FF);
    color: var(--deep-purple);
    padding: 0.7rem 1.2rem;
    border-radius: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 28px rgba(93, 63, 211, 0.2), 0 0 0 2px rgba(167, 139, 250, 0.3);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nexa-speech.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.nexa-speech-tail {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #F8F4FF;
}

/* ---------- EFFECTS (emoji floating) ---------- */
.nexa-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 5;
}
.nexa-effect-emoji {
    position: absolute;
    font-size: 1.6rem;
    pointer-events: none;
    animation: nexaEffectFloat 1.4s ease-out forwards;
}
@keyframes nexaEffectFloat {
    0%   { opacity: 1; transform: translate(0, 0) scale(0.5) rotate(0deg); }
    100% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, -120px)) scale(1.3) rotate(360deg); }
}

/* ---------- INFO (kanan) ---------- */
.nexa-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    min-width: 0;
}

.nexa-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--deep-purple);
    background: rgba(93, 63, 211, 0.08);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
}

.nexa-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--deep-purple);
    line-height: 1.1;
    margin: 0;
}

.nexa-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}
.nexa-tagline strong {
    color: var(--deep-purple);
    font-weight: 800;
}

.nexa-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 222, 233, 0.6), rgba(167, 139, 250, 0.15));
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--deep-purple);
    width: fit-content;
}
.nexa-counter svg { color: #E1306C; }
.nexa-counter.bump { animation: counterBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes counterBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.nexa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.nexa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, #ffffff, #F8F4FF);
    color: var(--deep-purple);
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(93, 63, 211, 0.08);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.nexa-btn:hover {
    background: linear-gradient(135deg, #A78BFA, #5D3FD3);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(93, 63, 211, 0.25);
}
.nexa-btn:active { transform: translateY(-1px) scale(0.97); }
.nexa-btn svg { flex-shrink: 0; }
.nexa-btn-ghost { background: transparent; box-shadow: none; }

/* ============================================================
   CHAT MODAL
   ============================================================ */
.nexa-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.nexa-chat-modal.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}
.nexa-chat-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 10, 40, 0.7);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.nexa-chat-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    animation: nexaChatIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}
@keyframes nexaChatIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.nexa-chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.9rem 1.1rem;
    background: linear-gradient(135deg, #5D3FD3, #A78BFA);
    color: white;
    flex-shrink: 0;
}
.nexa-chat-title { display: flex; align-items: center; gap: 0.7rem; }
.nexa-chat-avatar {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.nexa-chat-title strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.2;
}
.nexa-chat-title small { font-size: 0.7rem; opacity: 0.9; }
.nexa-chat-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none; color: white;
    cursor: pointer; font-size: 1.2rem; line-height: 1;
    display: grid; place-items: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nexa-chat-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}
.nexa-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem 1.15rem;
    background: #f8f9fc;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 380px;
    max-height: 500px;
    scroll-behavior: smooth;
}
.nexa-chat-body::-webkit-scrollbar { width: 5px; }
.nexa-chat-body::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.4);
    border-radius: 4px;
}
.nexa-chat-body::-webkit-scrollbar-track { background: transparent; }
.nexa-bubble {
    max-width: 80%;
    padding: 0.65rem 0.95rem;
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.86rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: nexaBubblePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes nexaBubblePop {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.nexa-bubble-sifi {
    align-self: flex-start;
    background: white;
    color: var(--deep-navy);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(93, 63, 211, 0.08);
}
.nexa-bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #5D3FD3, #A78BFA);
    color: white;
    border-bottom-right-radius: 4px;
}
.nexa-bubble-typing {
    align-self: flex-start;
    background: white;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(93, 63, 211, 0.08);
}
.nexa-bubble-typing span {
    display: inline-block;
    width: 6px; height: 6px;
    background: #A78BFA;
    border-radius: 50%;
    margin: 0 2px;
    animation: nexaTyping 1.4s infinite;
}
.nexa-bubble-typing span:nth-child(2) { animation-delay: 0.2s; }
.nexa-bubble-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes nexaTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-6px); opacity: 1; }
}
.nexa-chat-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem;
    background: white;
    border-top: 1px solid #f0f0f5;
    flex-shrink: 0;
}
.nexa-chat-form input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e8e8ee;
    border-radius: 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    background: #f8f9fc;
    color: var(--deep-navy);
    transition: all 0.2s;
    outline: none;
}
.nexa-chat-form input:focus {
    border-color: #A78BFA;
    background: white;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}
.nexa-chat-form button {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5D3FD3, #A78BFA);
    color: white;
    border: none;
    cursor: pointer;
    display: grid; place-items: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nexa-chat-form button:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(93, 63, 211, 0.35);
}

/* ============================================================
   MINI NEXA FLOATING (pojok kanan bawah)
   ============================================================ */
.mini-sifi {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    cursor: pointer;
    animation: miniSifiFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 24px rgba(93, 63, 211, 0.3));
    transition: transform 0.3s ease, opacity 0.3s ease;
    outline: none;
}
@keyframes miniSifiFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.mini-sifi-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F8F4FF, #E8DFFF);
    display: grid;
    place-items: center;
    border: 3px solid white;
    box-shadow: 0 8px 24px rgba(93, 63, 211, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    padding: 0;
}
.mini-sifi-avatar img,
.mini-sifi-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    animation: miniNexaBreathe 3s ease-in-out infinite;
}
@keyframes miniNexaBreathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
.mini-sifi:hover .mini-sifi-avatar {
    transform: scale(1.08) rotate(-5deg);
}
.mini-sifi-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: linear-gradient(135deg, #ffffff, #F8F4FF);
    color: var(--deep-purple);
    padding: 0.6rem 1rem;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 20px rgba(93, 63, 211, 0.2), 0 0 0 2px rgba(167, 139, 250, 0.25);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.mini-sifi-bubble.show {
    opacity: 1;
    transform: translateY(0);
}
.mini-sifi-tail {
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #F8F4FF;
}
.mini-sifi-close {
    position: absolute;
    top: -4px; right: -4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: white;
    color: #666;
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    padding: 0;
    font-family: Arial, sans-serif;
}
.mini-sifi-close:hover {
    background: #fee;
    color: #DC2626;
    transform: scale(1.1) rotate(90deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }

    .nexa-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .nexa-info {
        align-items: center;
        text-align: center;
        order: 1;
    }
    .nexa-tagline { margin: 0 auto; }
    .nexa-actions { justify-content: center; }
    .nexa-stage { min-height: 280px; }
    .nexa-scene { max-width: 300px; }
}

@media (max-width: 768px) {
    .section { padding: 2.2rem 1rem; }

    .hero {
        min-height: 70vh;
        padding: 2.5rem 1.2rem;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }
    .hero .badge { font-size: 0.62rem; padding: 0.35rem 0.9rem; letter-spacing: 2px; margin-bottom: 1.2rem; }
    .hero h1 { font-size: 1.85rem; margin-bottom: 0.9rem; letter-spacing: -0.5px; }
    .hero p { font-size: 0.85rem; margin-bottom: 1.8rem; line-height: 1.5; }
    .hero-stats { gap: 1.2rem; margin: 1.5rem 0; }
    .hero-stat strong { font-size: 1.4rem; }
    .hero-stat span { font-size: 0.62rem; letter-spacing: 0.5px; }

    .cta-group { flex-direction: column; gap: 0.7rem; width: 100%; }
    .btn { width: 100%; justify-content: center; padding: 0.8rem 1.4rem; font-size: 0.85rem; }

    .section-head { margin-bottom: 2rem; }
    .section-head .kicker { font-size: 0.65rem; letter-spacing: 2px; padding: 0.3rem 0.85rem; }
    .section-head h2 { font-size: 1.35rem; line-height: 1.3; }
    .section-head p { font-size: 0.82rem; }

    .kategori-block { margin-bottom: 2rem; }
    .kategori-head {
        padding: 0.75rem 0.9rem;
        gap: 0.6rem;
        border-left-width: 4px;
        margin-bottom: 1rem;
    }
    .kategori-icon { width: 30px; height: 30px; border-radius: 8px; }
    .kategori-icon svg { width: 16px !important; height: 16px !important; }
    .kategori-head h3 { font-size: 0.9rem; }
    .kategori-count { font-size: 0.62rem; padding: 0.2rem 0.55rem; }

    .grid-biodata,
    .grid-pengurus,
    .grid-pj,
    .grid-anggota {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.55rem;
    }

    .card-biodata {
        padding: 0.45rem 0.45rem 0.55rem;
        border-radius: 10px;
        border-width: 1.5px;
    }
    .card-biodata::before { height: 3px; }
    .card-biodata h3 { font-size: 0.68rem; margin-bottom: 0.15rem; letter-spacing: -0.2px; }
    .card-biodata .jabatan {
        font-size: 0.5rem;
        padding: 0.13rem 0.35rem;
        letter-spacing: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        line-height: 1.25;
    }
    .card-biodata .foto-overlay { font-size: 0.5rem; padding: 0.25rem; letter-spacing: 0.3px; }

    .card-biodata:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
        border-color: transparent;
    }
    .card-biodata:active { transform: scale(0.95); transition: transform 0.1s; }
    .card-biodata:hover img { transform: none; }
    .card-biodata:hover::before { transform: scaleX(0); }

    .search-anggota { max-width: 100%; margin-bottom: 1rem; }
    .search-anggota input { padding: 0.7rem 1rem 0.7rem 2.5rem; font-size: 0.82rem; }
    .search-anggota .search-icon { left: 0.9rem; }

    .jadwal-wrapper { padding: 0.7rem; border-radius: 16px; }
    .jadwal-table { min-width: 520px; font-size: 0.78rem; }
    .jadwal-table th { padding: 0.6rem 0.7rem; font-size: 0.62rem; letter-spacing: 0.5px; }
    .jadwal-table td { padding: 0.6rem 0.7rem; }
    .kode-mk { font-size: 0.62rem; padding: 0.15rem 0.45rem; }

    .form-menfess { padding: 1.2rem; border-radius: 20px; }
    .form-menfess label { font-size: 0.75rem; margin-bottom: 0.35rem; }
    .form-menfess select,
    .form-menfess textarea {
        padding: 0.75rem 0.9rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    .form-menfess textarea { min-height: 90px; }
    .form-menfess button { padding: 0.85rem; font-size: 0.85rem; border-radius: 10px; }

    .feed-menfess { grid-template-columns: 1fr; gap: 0.85rem; }
    .pesan-card { padding: 1rem; border-radius: 14px; border-left-width: 4px; }
    .pesan-card .penerima { font-size: 0.82rem; margin-bottom: 0.55rem; }
    .pesan-card .isi-pesan { font-size: 0.85rem; margin-bottom: 0.7rem; }
    .pesan-card .waktu { font-size: 0.68rem; }

    .modal { padding: 0; align-items: flex-end; }
    .modal-content {
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
        animation: modalInMobile 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes modalInMobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .modal-hero { padding: 1.6rem 1.2rem 2.2rem; }
    .modal-avatar { width: 95px; height: 95px; border-width: 4px; margin-bottom: 0.7rem; }
    .modal-hero h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
    .modal-hero .panggilan { font-size: 0.78rem; margin-bottom: 0.6rem; }
    .modal-hero .jabatan-badge { font-size: 0.65rem; padding: 0.3rem 0.8rem; letter-spacing: 0.5px; }
    .modal-close { width: 32px; height: 32px; top: 0.7rem; right: 0.7rem; }
    .modal-close svg { width: 14px !important; height: 14px !important; }
    .modal-body { padding: 1.1rem; }
    .detail-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem; }
    .detail-item { padding: 0.7rem 0.85rem; border-left-width: 3px; }
    .detail-item .label { font-size: 0.6rem; margin-bottom: 0.15rem; }
    .detail-item .value { font-size: 0.82rem; }
    .ig-link { font-size: 0.8rem; padding: 0.55rem 1rem; }

    .footer { border-top-left-radius: 32px; border-top-right-radius: 32px; margin-top: 3rem; }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 2.5rem 1.2rem 1.5rem;
        text-align: center;
    }
    .footer-logo { font-size: 1.4rem; margin-bottom: 0.5rem; }
    .footer-brand p { font-size: 0.82rem; margin: 0 auto; }
    .footer h4 { font-size: 0.78rem; letter-spacing: 1px; margin-bottom: 0.85rem; }
    .footer ul li { margin-bottom: 0.5rem; }
    .footer ul a { font-size: 0.82rem; justify-content: center; }
    .footer ul a:hover { transform: none; }
    .footer-bottom { padding: 1.2rem 1rem; font-size: 0.7rem; }
    .footer-icon { width: 14px; height: 14px; }
}

@media (max-width: 600px) {
    .mascot-section { padding: 2rem 1rem 1.5rem; }
    .nexa-hero { gap: 1rem; padding: 0.5rem 0; }
    .nexa-scene { max-width: 240px; }
    .nexa-stage { min-height: 240px; }
    .nexa-title { font-size: 1.6rem; }
    .nexa-tagline { font-size: 0.85rem; }
    .nexa-btn { padding: 0.5rem 0.85rem; font-size: 0.68rem; }
    .nexa-counter { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
    .nexa-hint { font-size: 0.6rem; padding: 0.3rem 0.6rem; }
    .nexa-speech { font-size: 0.72rem; padding: 0.55rem 0.9rem; top: -0.5rem; }

    .mini-sifi { bottom: 16px; right: 16px; }
    .mini-sifi-avatar { width: 54px; height: 54px; }
    .mini-sifi-bubble { font-size: 0.72rem; padding: 0.5rem 0.85rem; max-width: 180px; bottom: 68px; }
    .mini-sifi-close { width: 18px; height: 18px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .mini-sifi-avatar { width: 48px; height: 48px; }
    .mini-sifi-bubble {
        font-size: 0.68rem;
        padding: 0.45rem 0.75rem;
        max-width: 150px;
        bottom: 60px;
    }
}

@media (max-width: 380px) {
    .grid-biodata,
    .grid-pengurus,
    .grid-pj,
    .grid-anggota {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hero h1 { font-size: 1.6rem; }
    .section-head h2 { font-size: 1.2rem; }
    .kategori-head h3 { font-size: 0.85rem; }

    .nexa-scene { max-width: 200px; }
    .nexa-stage { min-height: 200px; }
    .nexa-title { font-size: 1.4rem; }
    .nexa-btn { padding: 0.45rem 0.75rem; font-size: 0.62rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-pengurus,
    .grid-pj { grid-template-columns: repeat(3, 1fr); }
    .grid-anggota { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .nexa-scene.entering,
    .nexa-scene.idle,
    .mascot-glow,
    .mascot-particles span,
    .nexa-hint,
    .nexa-effect-emoji,
    .mini-sifi,
    .mini-sifi-avatar img {
        animation: none !important;
    }
    .nexa-scene { opacity: 1; transform: scale(1); }
}
/* ============================================================
   NEXA CHAT — Markdown + Layout (FINAL)
   ============================================================ */

/* ---------- BUBBLE: ukuran & spasi ---------- */
.nexa-bubble {
    max-width: 85%;
    padding: 0.8rem 1.05rem;
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: break-word;
    animation: nexaBubblePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nexa-bubble-sifi {
    max-width: 92%;
    padding: 0.9rem 1.1rem;
}
.nexa-bubble-user {
    max-width: 80%;
}

/* ---------- MARKDOWN: paragraf ---------- */
.nexa-bubble p { margin: 0 0 0.75rem 0; }
.nexa-bubble p:last-child { margin-bottom: 0; }
.nexa-bubble > *:first-child { margin-top: 0; }
.nexa-bubble > *:last-child { margin-bottom: 0; }

/* ---------- MARKDOWN: heading ---------- */
.nexa-bubble h1,
.nexa-bubble h2,
.nexa-bubble h3,
.nexa-bubble h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--deep-purple);
    font-weight: 700;
    line-height: 1.35;
    margin: 0.9rem 0 0.45rem 0;
}
.nexa-bubble h1:first-child,
.nexa-bubble h2:first-child,
.nexa-bubble h3:first-child,
.nexa-bubble h4:first-child { margin-top: 0; }
.nexa-bubble h3 { font-size: 0.98rem; }
.nexa-bubble h4 { font-size: 0.9rem; }

/* ---------- MARKDOWN: list ---------- */
.nexa-bubble ol,
.nexa-bubble ul {
    margin: 0.5rem 0 0.75rem 1.35rem;
    padding-left: 0.2rem;
}
.nexa-bubble li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
    padding-left: 0.15rem;
}
.nexa-bubble li:last-child { margin-bottom: 0; }
.nexa-bubble li::marker {
    color: var(--deep-purple);
    font-weight: 700;
}

/* ---------- MARKDOWN: text emphasis ---------- */
.nexa-bubble strong {
    color: var(--deep-purple);
    font-weight: 800;
}
.nexa-bubble em {
    color: var(--gray-500);
    font-style: italic;
}

/* ---------- MARKDOWN: inline code ---------- */
.nexa-bubble code {
    background: rgba(93, 63, 211, 0.09);
    color: var(--deep-purple);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.85em;
    font-weight: 600;
    word-break: break-word;
}

/* ---------- MARKDOWN: code block ---------- */
.nexa-bubble pre {
    background: #1e1e2e;
    color: #e0e0e0;
    padding: 0.9rem 1.05rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 0.75rem 0;
    font-size: 0.78rem;
    line-height: 1.6;
    border-left: 4px solid var(--deep-purple);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.5) transparent;
}
.nexa-bubble pre::-webkit-scrollbar { height: 6px; }
.nexa-bubble pre::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.5);
    border-radius: 4px;
}
.nexa-bubble pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-weight: 400;
    font-size: inherit;
    white-space: pre;
    word-break: normal;
    font-family: 'Courier New', 'Consolas', monospace;
}

/* ---------- MARKDOWN: blockquote, hr, link ---------- */
.nexa-bubble blockquote {
    border-left: 4px solid var(--soft-lavender);
    padding-left: 0.9rem;
    margin: 0.7rem 0;
    color: var(--gray-500);
    font-style: italic;
}
.nexa-bubble hr {
    border: none;
    border-top: 1px solid rgba(93, 63, 211, 0.12);
    margin: 1rem 0;
}
.nexa-bubble a {
    color: var(--deep-purple);
    text-decoration: underline;
    word-break: break-word;
}

/* ---------- QUICK SUGGESTIONS ---------- */
.nexa-quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.3rem 0 0.1rem 0;
    padding: 0;
}
.nexa-quick-btn {
    padding: 0.5rem 0.9rem;
    background: #ffffff;
    color: var(--deep-purple);
    border: 1.5px solid rgba(93, 63, 211, 0.25);
    border-radius: var(--radius-pill);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(93, 63, 211, 0.06);
}
.nexa-quick-btn:hover {
    background: linear-gradient(135deg, var(--deep-purple), var(--soft-lavender));
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(93, 63, 211, 0.25);
}
.nexa-quick-btn:active { transform: translateY(0); }
.nexa-quick-suggestions.hidden { display: none; }

/* ============================================================
   RESPONSIVE — NEXA CHAT
   Urutan: dari layar besar ke kecil (600px dulu, baru 380px)
   ============================================================ */

/* Tablet & HP besar (≤600px) */
@media (max-width: 600px) {
    .nexa-chat-body {
        min-height: 300px;
        max-height: 400px;
        padding: 0.9rem;
        gap: 0.6rem;
    }
    .nexa-bubble {
        max-width: 90%;
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }
    .nexa-bubble-sifi {
        max-width: 96%;
        padding: 0.75rem 0.95rem;
    }
    .nexa-bubble pre {
        font-size: 0.7rem;
        padding: 0.7rem 0.85rem;
        border-radius: 8px;
    }
    .nexa-bubble pre code { font-size: 0.7rem; }
    .nexa-quick-btn {
        font-size: 0.68rem;
        padding: 0.4rem 0.75rem;
    }
}

/* HP kecil (≤380px) */
@media (max-width: 380px) {
    .nexa-chat-body {
        min-height: 280px;
        max-height: 380px;
        padding: 0.8rem;
    }
    .nexa-bubble {
        font-size: 0.82rem;
        padding: 0.65rem 0.85rem;
    }
    .nexa-bubble-sifi {
        padding: 0.7rem 0.9rem;
    }
    .nexa-quick-btn {
        font-size: 0.65rem;
        padding: 0.38rem 0.7rem;
    }
}

/* ============================================================
   MOBILE — chat lebih compact & tetap enak dibaca
   ============================================================ */
@media (max-width: 600px) {
    .nexa-chat-body {
        min-height: 300px;
        max-height: 400px;
        padding: 0.9rem;
        gap: 0.6rem;
    }
    .nexa-bubble {
        max-width: 90%;
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }
    .nexa-bubble-sifi {
        max-width: 96%;
    }
    .nexa-bubble pre {
        font-size: 0.7rem;
        padding: 0.7rem 0.85rem;
        border-radius: 8px;
    }
    .nexa-quick-btn {
        font-size: 0.68rem;
        padding: 0.4rem 0.75rem;
    }
}
/* ============================================================
   KAS PUBLIC PAGE
   ============================================================ */

.kas-public {
    min-height: 100vh;
    background: var(--misty-lilac);
    padding-bottom: 3rem;
}

/* ---------- HERO ---------- */
.kas-public-hero {
    background:
        linear-gradient(135deg, rgba(93, 63, 211, 0.92) 0%, rgba(167, 139, 250, 0.82) 100%),
        url('assets/hero.jpeg') center/cover no-repeat;
    background-blend-mode: multiply;
    color: #fff;
    padding: 4.5rem 1.5rem 5rem;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    position: relative;
    overflow: hidden;
}
.kas-public-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 222, 233, 0.2), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.3), transparent 50%);
    pointer-events: none;
}
.kas-public-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}
.kas-public-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 3px;
    margin-bottom: 1.3rem;
    backdrop-filter: blur(10px);
}
.kas-public-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.kas-public-hero .kas-highlight {
    background: linear-gradient(90deg, #FFDEE9, #ffffff, #FFDEE9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: kasShine 4s linear infinite;
}
@keyframes kasShine {
    to { background-position: 200% center; }
}
.kas-public-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    opacity: 0.95;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- CONTAINER ---------- */
.kas-public-container {
    max-width: 1200px;
    margin: -3rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 3;
}

/* ---------- STAT CARDS ---------- */
.kas-public-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.kas-pub-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(93, 63, 211, 0.1);
    border-left: 4px solid #A78BFA;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.kas-pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(93, 63, 211, 0.18);
}
.kas-pub-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.kas-pub-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.kas-pub-card-info > span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #8888a0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}
.kas-pub-card-info > strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #23263A;
    line-height: 1.15;
    word-break: break-word;
}
.kas-pub-card-info > small {
    font-size: 0.72rem;
    color: #8888a0;
    margin-top: 0.15rem;
}
.pub-green  { border-left-color: #10B981; }
.pub-green  .kas-pub-card-icon { background: linear-gradient(135deg, #10B981, #34D399); }
.pub-red    { border-left-color: #EF4444; }
.pub-red    .kas-pub-card-icon { background: linear-gradient(135deg, #EF4444, #F87171); }
.pub-purple { border-left-color: #5D3FD3; }
.pub-purple .kas-pub-card-icon { background: linear-gradient(135deg, #5D3FD3, #A78BFA); }
.pub-blue   { border-left-color: #3B82F6; }
.pub-blue   .kas-pub-card-icon { background: linear-gradient(135deg, #3B82F6, #60A5FA); }

/* ---------- PANEL ---------- */
.kas-pub-panel {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(93, 63, 211, 0.08);
    margin-bottom: 1.5rem;
}
.kas-pub-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.kas-pub-panel-head h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #23263A;
    margin-bottom: 0.2rem;
}
.kas-pub-panel-head p {
    font-size: 0.85rem;
    color: #8888a0;
}

/* ---------- PICKER ---------- */
.kas-pub-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #23263A;
}
.kas-pub-picker select {
    padding: 0.5rem 0.9rem;
    border: 1.5px solid #e8e8ee;
    border-radius: 10px;
    background: #F8F4FF;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #23263A;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
.kas-pub-picker select:focus {
    border-color: #A78BFA;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

/* ---------- PROGRESS ---------- */
.kas-pub-progress-wrap { margin-bottom: 1.2rem; }
.kas-pub-progress-bar {
    height: 14px;
    background: #F8F4FF;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(93, 63, 211, 0.06);
}
.kas-pub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5D3FD3, #A78BFA, #FFB6D5);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.kas-pub-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: kasShimmer 2.2s infinite;
}
@keyframes kasShimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
.kas-pub-progress-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: #8888a0;
}
.kas-pub-progress-labels strong {
    color: #5D3FD3;
    font-size: 1.05rem;
    font-weight: 800;
}

/* ---------- MINI GRID ---------- */
.kas-pub-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.kas-pub-mini {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #F8F4FF;
    border-left: 3px solid #A78BFA;
}
.kas-pub-mini .mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.kas-pub-mini.mini-green { border-left-color: #10B981; }
.kas-pub-mini.mini-green .mini-dot { background: #10B981; }
.kas-pub-mini.mini-orange { border-left-color: #F59E0B; }
.kas-pub-mini.mini-orange .mini-dot { background: #F59E0B; }
.kas-pub-mini.mini-red { border-left-color: #EF4444; }
.kas-pub-mini.mini-red .mini-dot { background: #EF4444; }
.kas-pub-mini > div { display: flex; flex-direction: column; min-width: 0; }
.kas-pub-mini strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #23263A;
    line-height: 1;
}
.kas-pub-mini span:last-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: #8888a0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* ---------- 2 COLUMN ---------- */
.kas-pub-2col {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* ---------- STUDENT LIST ---------- */
.kas-pub-student-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.3rem;
}
.kas-pub-student-list::-webkit-scrollbar { width: 6px; }
.kas-pub-student-list::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.4);
    border-radius: 3px;
}
.kas-pub-student-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #F8F4FF;
    transition: background 0.2s;
}
.kas-pub-student-row:hover { background: #EFE9FF; }
.kas-pub-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    background: #E8DFFF;
}
.kas-pub-student-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.kas-pub-student-info strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #23263A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kas-pub-student-info small {
    font-size: 0.72rem;
    color: #8888a0;
    margin-top: 0.1rem;
}
.kas-status-badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.st-lunas { background: #D1FAE5; color: #065F46; }
.st-cicil { background: #FEF3C7; color: #92400E; }
.st-belum { background: #FEE2E2; color: #991B1B; }

/* ---------- EXPENSE LIST ---------- */
.kas-pub-expense-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.3rem;
}
.kas-pub-expense-list::-webkit-scrollbar { width: 6px; }
.kas-pub-expense-list::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.4);
    border-radius: 3px;
}
.kas-pub-expense-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #f0f0f5;
}
.kas-pub-expense-row:last-child { border-bottom: none; }
.kas-pub-expense-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
}
.kas-pub-expense-icon.cat-konsumsi { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.kas-pub-expense-icon.cat-atk      { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.kas-pub-expense-icon.cat-sosial   { background: linear-gradient(135deg, #EC4899, #F472B6); }
.kas-pub-expense-icon.cat-lainnya  { background: linear-gradient(135deg, #6B7280, #9CA3AF); }
.kas-pub-expense-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.kas-pub-expense-info strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    color: #23263A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kas-pub-expense-info small {
    font-size: 0.7rem;
    color: #8888a0;
    margin-top: 0.1rem;
}
.kas-pub-expense-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: #EF4444;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- EMPTY ---------- */
.kas-pub-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #8888a0;
}
.kas-pub-empty i {
    font-size: 2.4rem;
    color: #DDD6FE;
    margin-bottom: 0.7rem;
}
.kas-pub-empty p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #23263A;
    margin-bottom: 0.3rem;
}
.kas-pub-empty span {
    font-size: 0.82rem;
    font-style: italic;
}

/* ---------- FOOTNOTE ---------- */
.kas-pub-footnote {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(93, 63, 211, 0.06), rgba(167, 139, 250, 0.04));
    border-radius: 14px;
    border-left: 4px solid #5D3FD3;
    margin-top: 1.5rem;
    color: #4a4a65;
    font-size: 0.86rem;
    line-height: 1.55;
}
.kas-pub-footnote i {
    color: #5D3FD3;
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
}
.kas-pub-footnote p { margin: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .kas-public-container { padding: 0 1rem; }
    .kas-public-hero {
        padding: 3.5rem 1rem 4.5rem;
        border-bottom-left-radius: 32px;
        border-bottom-right-radius: 32px;
    }
    .kas-pub-2col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .kas-public { padding-bottom: 2rem; }
    .kas-public-hero {
        padding: 2.5rem 1rem 3.5rem;
    }
    .kas-public-kicker { font-size: 0.62rem; letter-spacing: 2px; padding: 0.35rem 0.9rem; }
    .kas-public-hero p { font-size: 0.85rem; }

    .kas-pub-panel { padding: 1.1rem; border-radius: 14px; }
    .kas-pub-panel-head { flex-direction: column; align-items: stretch; }
    .kas-pub-picker { width: 100%; }
    .kas-pub-picker select { flex: 1; }

    .kas-public-stats { grid-template-columns: 1fr; gap: 0.7rem; }
    .kas-pub-card { padding: 1rem; }
    .kas-pub-card-info > strong { font-size: 1.15rem; }

    .kas-pub-mini-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .kas-pub-mini { padding: 0.7rem 0.85rem; }

    .kas-pub-student-row { padding: 0.65rem 0.75rem; gap: 0.7rem; }
    .kas-pub-avatar { width: 36px; height: 36px; }
    .kas-pub-student-info strong { font-size: 0.82rem; }
    .kas-status-badge { font-size: 0.62rem; padding: 0.22rem 0.6rem; }

    .kas-pub-expense-icon { width: 36px; height: 36px; }
    .kas-pub-expense-info strong { font-size: 0.8rem; }
    .kas-pub-expense-amount { font-size: 0.85rem; }
}
/* ============================================================
   NEXA HINT — Sembunyikan kalau video gak load
   ============================================================ */

/* Default: hint hidden sampai stage siap */
.nexa-stage:not(.has-idle) .nexa-hint {
    display: none;
}

/* Kalau canvas blank (video gagal load), sembunyikan hint juga */
.nexa-stage:has(.nexa-canvas.is-blank) .nexa-hint {
    display: none !important;
}

/* Kalau stage kosong di mobile, perkecil tingginya */
@media (max-width: 768px) {
    /* Kalau canvas gak ke-load, collapse stage */
    .nexa-stage:has(.nexa-canvas.is-blank) {
        min-height: 60px;
    }

    /* Atau, sembunyikan hint sepenuhnya di mobile kalau canvas blank */
    .nexa-stage:has(.nexa-canvas.is-blank) .nexa-hint {
        display: none !important;
    }
}

/* Fallback untuk browser yang gak support :has() */
@media (max-width: 768px) {
    .nexa-canvas.is-blank ~ .nexa-hint,
    .nexa-canvas.is-blank ~ .nexa-effects {
        display: none !important;
    }
}

