/* ═══════════════════════════════════════════════
   DESIGN TOKENS & CSS VARIABLES
═══════════════════════════════════════════════ */
:root {

    /* ===== BRAND PALETTE ===== */
    --c-navy: #213f8d;
    /* juga dipakai sebagai --c-text */
    --c-blue: #1E4FD8;
    --c-blue-mid: #2D6CEB;
    --c-sky: #4A9AF5;
    --c-teal: #23C9C3;
    --c-mint: #B6F0ED;
    --c-white: #FFFFFF;
    /* juga dipakai sebagai --bg-card, --lms-card */
    --c-off-white: #F4F7FF;
    --c-surface: #EEF3FB;
    --c-muted: #7A8BAE;
    --c-text: var(--c-navy);
    --c-text-light: #465678;

    /* ===== APP / DASHBOARD PALETTE ===== */
    --primary: #696CFF;
    --primary-light: #8b8eff;
    --primary-dark: #4F46E5;
    --primary-soft: rgba(105, 108, 255, 0.08);
    --primary-border: rgba(105, 108, 255, 0.18);
    --teal: #14B8A6;
    --teal-dark: #0F766E;
    --teal-soft: rgba(20, 184, 166, 0.08);
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* ===== TEXT ===== */
    --text-main: #1e2140;
    --text-muted: #8592A3;

    /* ===== BACKGROUND ===== */
    --bg-page: #f0f1ff;
    --bg-card: var(--c-white);
    --bg-chat: #f4f5fb;

    /* ===== BORDER ===== */
    --border: rgba(105, 108, 255, 0.12);

    /* ===== LMS ===== */
    --lms-primary: #4361ee;
    --lms-secondary: #7209b7;
    --lms-accent: #f72585;
    --lms-success: #06d6a0;
    --lms-warning: #ffd166;
    --lms-info: #118ab2;
    --lms-bg: var(--bg-page);
    --lms-card: var(--c-white);
    --lms-text: #1a1a2e;
    --lms-muted: #6b7280;
    --lms-border: rgba(67, 97, 238, 0.1);
    --lms-radius: 20px;
    --lms-radius-sm: 12px;
    --sup-primary: #0f3460;
    --sup-accent: #e94560;
    --sup-success: #00b4d8;

    /* ===== ENVELOPE TOKENS — MULAI (Purple) ===== */
    --m-flap-a: var(--primary);
    /* #696CFF */
    --m-flap-b: var(--primary-dark);
    /* #4F46E5 */
    --m-seal: #FF6B6B;
    --m-glow: rgba(105, 108, 255, 0.24);
    --m-paper: #EEF2FF;
    --m-side: #dde2ff;
    --m-bottom: #f5f6ff;
    --m-label: var(--primary-dark);
    /* #4F46E5 */
    --m-info-h: var(--primary-dark);
    /* #4F46E5 */

    /* ===== ENVELOPE TOKENS — LANJUT (Teal) ===== */
    --t-flap-a: var(--teal);
    /* #14B8A6 */
    --t-flap-b: var(--teal-dark);
    /* #0F766E */
    --t-seal: #F4B400;
    --t-glow: rgba(20, 184, 166, 0.24);
    --t-paper: #ECFDF5;
    --t-side: #b6e9df;
    --t-bottom: #f0fdfb;
    --t-label: var(--teal-dark);
    /* #0F766E */
    --t-info-h: var(--teal-dark);
    /* #0F766E */

    /* ===== RADIUS ===== */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* ===== SHADOW ===== */
    --shadow-sm: 0 2px 8px rgba(105, 108, 255, 0.08);
    --shadow-md: 0 6px 24px rgba(105, 108, 255, 0.12);
    --shadow-lg: 0 12px 40px rgba(105, 108, 255, 0.16);
    --shadow-card: 0 2px 16px rgba(13, 27, 62, 0.08);
    --shadow-card-hover: 0 8px 40px rgba(13, 27, 62, 0.14);
    --shadow-btn: 0 4px 20px rgba(30, 79, 216, 0.35);
    --lms-shadow: 0 4px 24px rgba(67, 97, 238, 0.10);
    --lms-shadow-lg: 0 8px 40px rgba(67, 97, 238, 0.16);

    /* ===== TYPOGRAPHY ===== */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* ===== TRANSITION ===== */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--c-text);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.2s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.15;
}

p {
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
═══════════════════════════════════════════════ */
@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 40px) scale(1.05);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -30px) scale(1.08);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.65);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift1 {
    to {
        transform: translate(6%, 10%) scale(1.1);
    }
}

@keyframes drift2 {
    to {
        transform: translate(-7%, -6%) scale(1.08);
    }
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-teal);
    background: rgba(35, 201, 195, 0.1);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.section-label.dark {
    color: var(--c-sky);
    background: rgba(74, 154, 245, 0.12);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--c-text);
}

.section-title.light {
    color: var(--c-white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--c-text-light);
    max-width: 560px;
    margin: 0 auto;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.65);
}

/* ═══════════════════════════════════════════════
   LAYOUT — SECTIONS
═══════════════════════════════════════════════ */
.section-light {
    background: var(--c-off-white);
}

.section-dark {
    background: var(--c-navy);
}

.section-surface {
    background: var(--c-surface);
}

/* ── Sidebar Layout ── */
.layout-menu {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    z-index: 1050;
    transition: transform 0.28s cubic-bezier(.4, 0, .2, 1),
        width 0.28s cubic-bezier(.4, 0, .2, 1);
}

.layout-page {
    margin-left: 260px !important;
    transition: margin-left 0.28s cubic-bezier(.4, 0, .2, 1);
}

body.sidebar-collapsed .layout-menu {
    transform: translateX(-100%);
}

body.sidebar-collapsed .layout-page {
    margin-left: 0 !important;
}

#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1040;
    backdrop-filter: blur(2px);
}

#sidebarOverlay.active {
    display: block;
}

/* ── Ambient BG Scene ── */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-scene::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -15%;
    width: 75vw;
    height: 75vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 108, 255, 0.14) 0%, transparent 68%);
    animation: drift1 14s ease-in-out infinite alternate;
}

.bg-scene::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 62vw;
    height: 62vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.11) 0%, transparent 70%);
    animation: drift2 18s ease-in-out infinite alternate;
}

/* ── Page Wrapper ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 80px;
}

.container-xxl.container-p-y {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
/* ── Landing Navbar ── */
.navbar {
    background: var(--c-navy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--c-white) !important;
    letter-spacing: -0.02em;
}

.navbar-brand span {
    color: var(--c-teal);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--c-white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--c-blue);
    color: var(--c-white) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 0.4rem 1.1rem !important;
    border-radius: var(--radius-pill) !important;
    border: none;
    text-decoration: none;
    transition: all var(--transition);
}

.nav-login-btn:hover {
    background: var(--c-blue-mid) !important;
    color: var(--c-white) !important;
    transform: translateY(-1px);
}

/* ── Admin Panel Navbar ── */
#layout-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

#sidebarToggleBtn,
.navbar-icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: #6c757d;
    transition: background 0.18s, color 0.18s;
    display: flex;
    align-items: center;
}

#sidebarToggleBtn {
    padding: 6px 10px;
    font-size: 1.1rem;
}

.navbar-icon-btn {
    padding: 6px 10px;
    font-size: 1.05rem;
    position: relative;
}

#sidebarToggleBtn:hover,
.navbar-icon-btn:hover {
    background: #f0f0f5;
    color: #333;
}

.navbar-page-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2b2b3b;
    letter-spacing: -0.01em;
}

.navbar-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #444;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.18s;
}

.navbar-user-link:hover {
    background: #f0f0f5;
    color: #222;
}

.nav-alert-dot {
    position: absolute;
    top: 5px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc3545;
    border: 1.5px solid #fff;
    transition: opacity 0.2s;
}

.nav-alert-dot.muted {
    background: #adb5bd;
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn-primary-sci {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--c-blue);
    color: var(--c-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    border: none;
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary-sci:hover {
    background: var(--c-blue-mid);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 79, 216, 0.45);
}

.btn-primary-sci:active {
    transform: translateY(0);
}

.btn-outline-sci {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--c-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.72rem 1.75rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-outline-sci:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--c-white);
    transform: translateY(-2px);
}

.btn-teal-sci,
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--c-teal);
    color: var(--c-navy);
    font-family: var(--font-body);
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border-radius: var(--radius-pill);
}

.btn-teal-sci {
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
}

.btn-cta-primary {
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    box-shadow: 0 4px 24px rgba(35, 201, 195, 0.35);
}

.btn-teal-sci:hover,
.btn-cta-primary:hover {
    background: #1de8e1;
    color: var(--c-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(35, 201, 195, 0.4);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--c-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all var(--transition);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--c-white);
    transform: translateY(-3px);
}

.btn-start-chat {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(105, 108, 255, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-start-chat:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(105, 108, 255, 0.45);
}

.btn-start-chat:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#panggilLagiBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    background: linear-gradient(135deg, #EF4444, #dc2626) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    min-width: 130px;
    justify-content: center;
    transition: all 0.25s ease !important;
}

#panggilLagiBtn:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4) !important;
}

#panggilLagiBtn:disabled {
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.btn-selesai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    background: linear-gradient(135deg, #F59E0B, #d97706) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    cursor: pointer;
    min-width: 110px;
    justify-content: center;
    transition: all 0.25s ease !important;
}

.btn-selesai:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4) !important;
}

.btn-img-attach {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.btn-img-attach:hover {
    background: rgba(105, 108, 255, 0.14);
    transform: scale(1.05);
}

.btn-send {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-send:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(105, 108, 255, 0.4);
}

.btn-copy-code {
    background: none;
    border: none;
    padding: 2px 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.btn-copy-code:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* ═══════════════════════════════════════════════
   CARDS — SHARED
═══════════════════════════════════════════════ */
/* ── Landing Cards ── */
.about-card,
.step-card {
    background: var(--c-white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.step-card {
    padding: 1.75rem;
    position: relative;
}

.about-card:hover,
.step-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.about-card.span2 {
    grid-column: span 2;
}

.about-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 0.35rem;
}

.about-card-text {
    font-size: 0.82rem;
    color: var(--c-muted);
    line-height: 1.55;
}

/* ── Feature Card ── */
/* Ganti bagian feature-card */
.feature-card {
    background: rgba(255, 255, 255, 0.08);
    /* lebih terang dari sebelumnya */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-white);
    /* tetap putih penuh */
    margin-bottom: 0.6rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.80);
    /* naik dari 0.5 ke 0.8 */
    line-height: 1.65;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(35, 201, 195, 0.2);
    /* sedikit lebih terang */
    border: 1px solid rgba(35, 201, 195, 0.35);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--c-teal);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-blue), var(--c-teal));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}



.testi-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.20);
    /* naik dari 0.08 ke 0.20 */
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all var(--transition);
}

.testi-card:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(35, 201, 195, 0.50);
    /* hover jadi warna teal */
    transform: translateY(-4px);
}

.testi-quote-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--c-teal);
    opacity: 0.3;
    font-family: serif;
    margin-bottom: 1rem;
}

.testi-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.testi-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--c-white);
}

.testi-role {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.testi-stars {
    color: #FFB800;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* ── LMS Dashboard Cards ── */
.dash-card {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lms-shadow-lg);
}

.stat-card {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--lms-shadow);
    transition: transform .25s, box-shadow .25s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lms-shadow-lg);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-card .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lms-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 2px;
}

.stat-card .stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--lms-text);
    line-height: 1;
}

.stat-card .stat-sub {
    font-size: 11px;
    color: var(--lms-muted);
    margin-top: 3px;
}

.chart-card {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
}

.chart-card .chart-head {
    padding: 1.2rem 1.5rem .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid var(--lms-border);
}

.chart-card .chart-head .title {
    font-weight: 700;
    font-size: .9rem;
    color: var(--lms-text);
}

.chart-card .chart-head .icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lms-primary), var(--lms-accent));
}

.chart-card .chart-body {
    padding: 1.2rem 1.5rem;
}

.sup-stat {
    background: #fff;
    border-radius: var(--lms-radius);
    border: 1px solid rgba(15, 52, 96, .1);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 52, 96, .08);
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}

.sup-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(15, 52, 96, .14);
}

.sup-stat .sup-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: .75rem;
}

.sup-stat .sup-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lms-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
}

.sup-stat .sup-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lms-text);
    line-height: 1;
}

/* ── Main Wrapper Card ── */
.main-wrapper-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.main-wrapper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.04), rgba(105, 108, 255, 0.01));
}

.main-wrapper-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-wrapper-title .title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: white;
    box-shadow: 0 3px 10px rgba(105, 108, 255, 0.3);
}

/* ── Admin Panel Content Card ── */
.content-body>.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.content-body>.card .card-body {
    background: #fff !important;
    border-radius: 14px;
    padding: 1.75rem;
}

/* ── Main Portal Card ── */
.main-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--primary-border);
    border-radius: 32px;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.95) inset,
        0 28px 90px rgba(105, 108, 255, 0.11),
        0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    width: 100%;
    padding: 56px 52px 64px;
}

/* ── Help Card ── */
.help-card {
    background: var(--c-white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    text-align: center;
}

/* Fix tombol help section agar tidak full width */
.help-card .btn-primary-sci {
    display: inline-flex;
    width: auto;
    margin: 0 auto;
}

.help-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.help-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-text);
    margin-bottom: 1rem;
}

.help-desc {
    font-size: 0.95rem;
    color: var(--c-text-light);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--c-navy);
}

.hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-mesh::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 79, 216, 0.35) 0%, transparent 65%);
    border-radius: 50%;
    animation: float1 8s ease-in-out infinite;
}

.hero-mesh::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(35, 201, 195, 0.2) 0%, transparent 65%);
    border-radius: 50%;
    animation: float2 10s ease-in-out infinite;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 5px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 5px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-teal);
    background: rgba(35, 201, 195, 0.12);
    border: 1px solid rgba(35, 201, 195, 0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
    letter-spacing: 0.06em;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--c-teal);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--c-white);
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--c-sky) 0%, var(--c-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--c-white);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

/* ── Hero Visual Card ── */
.hero-visual-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.hero-visual-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(35, 201, 195, 0.3), transparent 60%, rgba(30, 79, 216, 0.2));
    z-index: -1;
}

.lms-preview {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.lms-preview-bar {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-r {
    background: #FF5F57;
}

.dot-y {
    background: #FFBD2E;
}

.dot-g {
    background: #28C840;
}

.lms-preview-body {
    padding: 1.25rem;
}

.mini-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.875rem;
}

.mini-stat-val {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--c-white);
}

.mini-stat-key {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.15rem;
}

.mini-progress-wrap {
    margin-top: 0.5rem;
}

.mini-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.mini-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.mini-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--c-blue), var(--c-teal));
}

.floating-badge {
    position: absolute;
    background: var(--c-white);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.floating-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.floating-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.3;
}

.floating-badge-sub {
    font-size: 0.65rem;
    color: var(--c-muted);
    font-weight: 400;
}

.fb-top {
    top: -20px;
    right: -20px;
}

.fb-bottom {
    bottom: -20px;
    left: -20px;
}

.hero-svg-wrapper {
    margin-top: -180px;
}

/* ═══════════════════════════════════════════════
   SECTIONS — LANDING PAGE
═══════════════════════════════════════════════ */
.about-section,
.howto-section {
    padding: 100px 0;
    background: var(--c-off-white);
}

.features-section,
.testimonials-section {
    padding: 100px 0;
    background: var(--c-navy);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(30, 79, 216, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(35, 201, 195, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section {
    padding: 100px 0;
    background: var(--c-off-white);
}

.help-section {
    padding: 100px 0;
    background: var(--c-surface);
}

.cta-inner {
    background: linear-gradient(135deg, var(--c-navy) 0%, #132580 100%);
    border-radius: var(--radius-lg);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(35, 201, 195, 0.15) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 79, 216, 0.2) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--c-white);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.cta-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-blue);
    background: rgba(30, 79, 216, 0.08);
    border: 1px solid rgba(30, 79, 216, 0.15);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}

.about-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.about-list-item:last-child {
    border-bottom: none;
}

.about-check {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.about-check i {
    font-size: 0.65rem;
    color: white;
}

.about-list-text {
    font-size: 0.95rem;
    color: var(--c-text-light);
    line-height: 1.6;
}

.about-list-text strong {
    color: var(--c-text);
}

.about-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: #b1c0ea;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    line-height: 1;
}

.step-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--c-blue), var(--c-sky));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1rem;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--c-text-light);
    line-height: 1.65;
}

.connector-line {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    color: var(--c-sky);
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════
   HERO / DASHBOARD HERO CARDS
═══════════════════════════════════════════════ */
.hero-card {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 60%, #f72585 100%);
    border-radius: var(--lms-radius);
    padding: 2rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(67, 97, 238, 0.35);
    transition: transform .3s ease, box-shadow .3s ease;
}

.hero-card::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -80px;
    right: -60px;
}

.hero-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -60px;
    left: 30px;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 56px rgba(67, 97, 238, 0.42);
}

.hero-card .hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: .4rem;
}

.hero-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .3rem;
}

.hero-card p {
    opacity: .8;
    font-size: .9rem;
    margin-bottom: 0;
}

.hero-card .switch-hint {
    font-size: 11px;
    opacity: .6;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-img {
    width: 120px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .2));
}

.support-hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-radius: var(--lms-radius);
    padding: 2rem 2.5rem;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 52, 96, .4);
    transition: transform .3s, box-shadow .3s;
}

.support-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(233, 69, 96, .12);
    border-radius: 50%;
    top: -100px;
    right: -80px;
}

.support-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 56px rgba(15, 52, 96, .5);
}

.support-hero .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(233, 69, 96, .25);
    border: 1px solid rgba(233, 69, 96, .4);
    color: #ff8fa3;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.support-hero h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.support-hero .hint {
    font-size: 11px;
    opacity: .55;
    margin-top: .5rem;
}

/* ═══════════════════════════════════════════════
   COLOR HELPER BADGES
═══════════════════════════════════════════════ */
.bg-blue-soft {
    background: rgba(67, 97, 238, .12);
    color: #4361ee;
}

.bg-purple-soft {
    background: rgba(114, 9, 183, .12);
    color: #7209b7;
}

.bg-green-soft {
    background: rgba(6, 214, 160, .12);
    color: #06d6a0;
}

.bg-orange-soft {
    background: rgba(255, 209, 102, .2);
    color: #e8900a;
}

.bg-pink-soft {
    background: rgba(247, 37, 133, .12);
    color: #f72585;
}

.bg-teal-soft {
    background: rgba(17, 138, 178, .12);
    color: #118ab2;
}

/* ═══════════════════════════════════════════════
   LMS — SECTION HEADER & DIVIDER
═══════════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lms-muted);
    margin-bottom: 1rem;
}

.section-header::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--lms-primary), var(--lms-accent));
    border-radius: 4px;
}

.grad-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--lms-primary), var(--lms-accent));
    border-radius: 4px;
    margin: 2rem 0;
    opacity: .3;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 44px 0 40px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(105, 108, 255, .18), transparent);
}

.section-divider span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   WORD CLOUD
═══════════════════════════════════════════════ */
.wc-wrapper {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: var(--lms-radius);
    padding: 1.5rem;
    min-height: 320px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.wc-wrapper span {
    display: inline-block;
    transition: transform .2s;
    cursor: default;
    line-height: 1.2;
}

.wc-wrapper span:hover {
    transform: scale(1.15) !important;
}

.word-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .75rem;
    border-radius: var(--lms-radius-sm);
    transition: background .2s;
}

.word-list-item:hover {
    background: rgba(67, 97, 238, .06);
}

.word-list-item .wl-word {
    font-size: .875rem;
    font-weight: 500;
    color: var(--lms-text);
}

.word-list-item .wl-badge {
    background: linear-gradient(135deg, var(--lms-primary), var(--lms-secondary));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
}

/* ═══════════════════════════════════════════════
   PORTAL — BRAND BADGE & HEADER
═══════════════════════════════════════════════ */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(105, 108, 255, .1), rgba(105, 108, 255, .05));
    border: 1px solid rgba(105, 108, 255, .2);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 22px;
}

.brand-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

.main-title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.2;
    color: var(--text-main);
}

.main-title span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(105, 108, 255, .07);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    margin: 14px 0 0;
}

.subtitle-pill .sep {
    opacity: .35;
    font-weight: 300;
}

.intro-text {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.8;
    max-width: 700px;
    margin: 20px auto 0;
}

/* ═══════════════════════════════════════════════
   ENVELOPE COMPONENT
═══════════════════════════════════════════════ */
.envelopes-row {
    display: flex;
    justify-content: center;
    gap: 52px;
    flex-wrap: wrap;
}

.envelope-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.envelope-link {
    text-decoration: none;
    display: block;
}

.envelope {
    width: 390px;
    height: 265px;
    position: relative;
    cursor: pointer;
    border-radius: 22px;
    z-index: 2;
    perspective: 900px;
    transition: transform .48s cubic-bezier(.22, .68, 0, 1.35), filter .48s ease;
}

.envelope:hover {
    transform: translateY(-22px) scale(1.03);
}

.env-shadow {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    transition: box-shadow .48s ease;
}

.env-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 188px;
    border-radius: 0 0 22px 22px;
    z-index: 1;
}

.env-left,
.env-right {
    position: absolute;
    bottom: 0;
    height: 188px;
    width: 50%;
    z-index: 2;
}

.env-left {
    left: 0;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.env-right {
    right: 0;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.env-paper {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 24px;
    height: 155px;
    border-radius: 10px 10px 14px 14px;
    z-index: 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.07);
    transition: transform .52s cubic-bezier(.22, .68, 0, 1.4);
}

.envelope:hover .env-paper {
    transform: translateY(-58px);
}

.env-paper-lines {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
}

.env-paper-lines i {
    position: absolute;
    left: 22px;
    right: 22px;
    height: 1.5px;
    border-radius: 2px;
    display: block;
}

.env-paper-lines i:nth-child(1) {
    top: 24px;
}

.env-paper-lines i:nth-child(2) {
    top: 42px;
}

.env-paper-lines i:nth-child(3) {
    top: 60px;
}

.env-paper-lines i:nth-child(4) {
    top: 78px;
}

.env-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 170px;
    border-radius: 22px 22px 0 0;
    transform-origin: top center;
    transform-style: preserve-3d;
    z-index: 6;
    transition: transform .58s cubic-bezier(.22, .68, 0, 1.15);
}

.envelope:hover .env-flap {
    transform: rotateX(-68deg);
}

.env-flap-face {
    position: absolute;
    inset: 0;
    border-radius: 22px 22px 0 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    backface-visibility: hidden;
}

.env-flap-face::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: linear-gradient(175deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .08) 45%, transparent 100%);
}

.env-seal {
    position: absolute;
    top: 148px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, .95);
    transition: transform .58s cubic-bezier(.22, .68, 0, 1.4), box-shadow .45s ease;
}

.env-seal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .38), transparent 58%);
}

.envelope:hover .env-seal {
    transform: translate(-50%, calc(-50% - 126px)) scale(1.18);
}

.env-label {
    position: absolute;
    bottom: 28px;
    width: 100%;
    text-align: center;
    z-index: 8;
    font-weight: 700;
    font-size: 16.5px;
    letter-spacing: .6px;
}

.env-shine {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    background: linear-gradient(155deg, rgba(255, 255, 255, .2) 0%, transparent 52%);
    z-index: 10;
}

/* ── Envelope: Mulai (Purple) ── */
.env-mulai .env-shadow {
    box-shadow: 0 10px 40px var(--m-glow), 0 2px 10px rgba(0, 0, 0, .06);
}

.env-mulai:hover .env-shadow {
    box-shadow: 0 32px 80px var(--m-glow), 0 6px 22px rgba(0, 0, 0, .09);
}

.env-mulai .env-bottom {
    background: var(--m-bottom);
}

.env-mulai .env-left,
.env-mulai .env-right {
    background: var(--m-side);
}

.env-mulai .env-paper {
    background: var(--m-paper);
    border: 1px solid rgba(105, 108, 255, .14);
}

.env-mulai .env-paper-lines i {
    background: rgba(105, 108, 255, .2);
}

.env-mulai .env-flap-face {
    background: linear-gradient(160deg, var(--m-flap-a), var(--m-flap-b));
}

.env-mulai .env-seal {
    background: radial-gradient(circle at 36% 30%, #ff9f9f, var(--m-seal) 52%, #c44040);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .8),
        0 8px 30px rgba(255, 107, 107, .5),
        inset 0 2px 5px rgba(255, 255, 255, .38),
        inset 0 -2px 5px rgba(0, 0, 0, .2);
}

.env-mulai:hover .env-seal {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .9),
        0 18px 50px rgba(255, 107, 107, .65),
        inset 0 2px 5px rgba(255, 255, 255, .38),
        inset 0 -2px 5px rgba(0, 0, 0, .2);
}

.env-mulai .env-label {
    color: var(--m-label);
}

/* ── Envelope: Lanjut (Teal) ── */
.env-lanjut .env-shadow {
    box-shadow: 0 10px 40px var(--t-glow), 0 2px 10px rgba(0, 0, 0, .06);
}

.env-lanjut:hover .env-shadow {
    box-shadow: 0 32px 80px var(--t-glow), 0 6px 22px rgba(0, 0, 0, .09);
}

.env-lanjut .env-bottom {
    background: var(--t-bottom);
}

.env-lanjut .env-left,
.env-lanjut .env-right {
    background: var(--t-side);
}

.env-lanjut .env-paper {
    background: var(--t-paper);
    border: 1px solid rgba(20, 184, 166, .15);
}

.env-lanjut .env-paper-lines i {
    background: rgba(20, 184, 166, .22);
}

.env-lanjut .env-flap-face {
    background: linear-gradient(160deg, var(--t-flap-a), var(--t-flap-b));
}

.env-lanjut .env-seal {
    background: radial-gradient(circle at 36% 30%, #fce27a, var(--t-seal) 52%, #b08000);
    color: rgba(80, 55, 0, .88);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .8),
        0 8px 30px rgba(244, 180, 0, .5),
        inset 0 2px 5px rgba(255, 255, 255, .42),
        inset 0 -2px 5px rgba(0, 0, 0, .15);
}

.env-lanjut:hover .env-seal {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .9),
        0 18px 50px rgba(244, 180, 0, .65),
        inset 0 2px 5px rgba(255, 255, 255, .42),
        inset 0 -2px 5px rgba(0, 0, 0, .15);
}

.env-lanjut .env-label {
    color: var(--t-label);
}

/* ── Info Card (Portal) ── */
.env-info {
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--primary-border);
    border-radius: 20px;
    padding: 22px 28px;
    text-align: center;
    max-width: 390px;
    width: 100%;
    transition: box-shadow .3s ease, transform .3s ease;
}

.env-info:hover {
    box-shadow: 0 8px 30px rgba(105, 108, 255, .1);
    transform: translateY(-3px);
}

.env-info h6 {
    font-weight: 700;
    font-size: 15.5px;
    margin-bottom: 7px;
}

.env-info p {
    font-size: 13px;
    line-height: 1.72;
    color: var(--text-muted);
    margin: 0;
}

.env-info-mulai h6 {
    color: var(--m-info-h);
}

.env-info-lanjut h6 {
    color: var(--t-info-h);
}

.kode-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(105, 108, 255, .06);
    border: 1px dashed rgba(105, 108, 255, .28);
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
    margin-top: 28px;
}

/* ── Timeline ── */
.timeline-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.timeline-connector {
    position: absolute;
    left: 31px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(20, 184, 166, .3) 100%);
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.tl-icon-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    font-size: 22px;
    color: var(--primary);
    border: 2px solid rgba(105, 108, 255, .2);
    box-shadow: 0 4px 18px rgba(105, 108, 255, .13), 0 0 0 5px rgba(105, 108, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.timeline-item:hover .tl-icon-wrap {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(105, 108, 255, .22), 0 0 0 7px rgba(105, 108, 255, .09);
}

.tl-card {
    flex: 1;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--primary-border);
    border-radius: 18px;
    padding: 20px 24px;
    backdrop-filter: blur(10px);
    transition: transform .3s ease, box-shadow .3s ease;
}

.timeline-item:hover .tl-card {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(105, 108, 255, .1);
}

.tl-step {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: .65;
    margin-bottom: 3px;
}

.tl-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.tl-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.72;
}

/* ═══════════════════════════════════════════════
   QNA ACCORDION
═══════════════════════════════════════════════ */
.qna-card {
    background: var(--bg-card);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    transition: box-shadow 0.3s ease;
}

.qna-card:hover {
    box-shadow: var(--shadow-md);
}

.qna-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.06), rgba(105, 108, 255, 0.02));
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease;
    user-select: none;
}

.qna-header:hover {
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.1), rgba(105, 108, 255, 0.05));
}

.qna-header.open {
    border-bottom-color: var(--primary-border);
}

.qna-icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
}

.qna-header-text {
    flex: 1;
}

.qna-header-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.qna-header-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.qna-chevron {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(.22, .68, 0, 1.2), background 0.2s ease;
}

.qna-header.open .qna-chevron {
    transform: rotate(180deg);
    background: rgba(105, 108, 255, 0.15);
}

.qna-body {
    display: none;
    padding: 18px 20px 20px;
    animation: slideDown 0.25s ease forwards;
}

.qna-body.show {
    display: block;
}

.qna-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.qna-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.qna-cat-pill.guru {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .2);
    color: #16a34a;
}

.qna-cat-pill.siswa {
    background: var(--teal-soft);
    border-color: rgba(20, 184, 166, .2);
    color: var(--teal-dark);
}

.qna-body-text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.75;
}

.qna-body-text b {
    color: var(--text-main);
}

.qna-body-text ul {
    padding-left: 18px;
    margin: 8px 0;
}

.qna-body-text li {
    margin-bottom: 5px;
}

.qna-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 12.5px;
    color: #92400e;
}

.qna-tip i {
    color: var(--warning);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ═══════════════════════════════════════════════
   TAB NAVIGATION
═══════════════════════════════════════════════ */
.tab-nav-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tab-nav-wrap .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 12px !important;
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.22s ease !important;
}

.tab-nav-wrap .nav-link:hover {
    background: var(--primary-soft) !important;
    border-color: var(--primary-border) !important;
    color: var(--primary) !important;
    transform: translateY(-1px) !important;
}

.tab-nav-wrap .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(105, 108, 255, 0.35) !important;
    transform: translateY(-1px) !important;
}

.tab-nav-wrap .nav-link .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, .25);
    color: inherit;
    line-height: 1;
}

.tab-nav-wrap .nav-link.active .tab-badge {
    background: rgba(255, 255, 255, .3);
    color: white;
}

.tab-nav-wrap .nav-link:not(.active) .tab-badge {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════
   CHAT UI
═══════════════════════════════════════════════ */
#chatBox {
    height: 440px;
    overflow-y: auto;
    background: var(--bg-chat);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    scroll-behavior: smooth;
    color: var(--text-main);
}

#chatBox::-webkit-scrollbar {
    width: 4px;
}

#chatBox::-webkit-scrollbar-track {
    background: transparent;
}

#chatBox::-webkit-scrollbar-thumb {
    background: rgba(105, 108, 255, .2);
    border-radius: 4px;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    opacity: 0.5;
    pointer-events: none;
}

.chat-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
}

.chat-empty p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* ── Chat Bubbles ── */
.bubble-me,
.bubble-other {
    padding: 10px 12px;
    border-radius: 12px;
    margin: 6px 0;
    max-width: 75%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.bubble-me {
    background: #d7fdd4;
    margin-left: auto !important;
}

.bubble-other {
    background: #ffffff;
    margin-right: auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}

.bubble-system {
    background: #f0e6d8;
    padding: 8px 12px;
    border-radius: 6px;
    width: fit-content;
    margin: 15px auto;
    text-align: center;
    font-size: 13px;
    color: #5a4d3c;
}

.sender-name {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 4px;
}

.bubble-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.chat-img {
    max-width: 200px;
    max-height: 160px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    margin-top: 6px;
    transition: opacity 0.2s ease;
}

.chat-img:hover {
    opacity: 0.88;
}

/* ── File Items ── */
.file-item {
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}

.file-thumb {
    width: 100%;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-name {
    margin-top: 4px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Chat Header ── */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.chat-header-left {
    flex-shrink: 0;
}

.chat-header-center {
    flex: 1;
    text-align: center;
}

.chat-header-right {
    flex-shrink: 0;
}

.chat-room-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.chat-room-code {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.chat-room-code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-wrap {
    margin-top: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.status-badge:hover {
    opacity: 0.8;
}

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

.status-badge.s-guru {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
}

.status-badge.s-guru .status-dot {
    background: #22c55e;
}

.status-badge.s-siswa {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.status-badge.s-siswa .status-dot {
    background: var(--teal);
}

.status-badge.s-umum {
    background: rgba(133, 146, 163, .12);
    color: var(--text-muted);
}

.status-badge.s-umum .status-dot {
    background: var(--text-muted);
}

.status-badge.s-error {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
}

.status-badge.s-error .status-dot {
    background: var(--danger);
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

.mode-badge.bot {
    background: rgba(124, 58, 237, .1);
    color: #7c3aed;
}

.mode-badge.admin {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ── Chat Info Collapsible ── */
.chat-info-card {
    background: rgba(105, 108, 255, .04);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
}

.chat-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.chat-info-header:hover {
    background: var(--primary-soft);
}

.chat-info-header-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.chat-info-header-text {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.chat-info-header-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.chat-info-chevron {
    font-size: 13px;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(.22, .68, 0, 1.2);
}

.chat-info-card.open .chat-info-chevron {
    transform: rotate(180deg);
}

.chat-info-body {
    display: none;
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
}

.chat-info-body.show {
    display: block;
}

.chat-info-body ul {
    padding-left: 18px;
    margin: 8px 0;
}

.chat-info-body li {
    margin-bottom: 5px;
}

.chat-info-body b {
    color: var(--text-main);
}

/* ── Chat Input ── */
.chat-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 8px 8px 8px 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(105, 108, 255, .12);
}

.chat-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-main);
}

.chat-input-wrap input::placeholder {
    color: var(--text-muted);
}

/* ── Bottom Action Bar ── */
#adminButtonContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.action-bar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 14px 20px 18px;
    box-shadow: 0 -4px 20px rgba(105, 108, 255, .1);
}

/* ── Room Code Pill ── */
.room-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

/* ═══════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════ */
#globalAlertBox {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

#globalAlertBox .alert {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.845rem;
    font-weight: 500;
    margin-bottom: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease;
}

#globalAlertBox .alert .alert-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#globalAlertBox .alert .alert-close {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    color: inherit;
    margin-left: 8px;
    flex-shrink: 0;
    transition: opacity 0.18s, background 0.18s;
}

#globalAlertBox .alert .alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, .08);
}

#globalAlertBox .alert .btn-sm {
    padding: 3px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.alert-hide-row {
    display: none;
}

.alert-fade-out {
    opacity: 0 !important;
    transform: translateY(-6px) !important;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════ */
.modal-dialog {
    margin: 0 auto;
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal:not(.show) {
    display: none !important;
}

.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-family: var(--font-display);
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-login-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    border: none;
    transition: all var(--transition);
}

.modal-login-btn.admin {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: white;
}

.modal-login-btn.guru {
    background: linear-gradient(135deg, var(--c-blue), var(--c-blue-mid));
    color: white;
}

.modal-login-btn.siswa {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.modal-login-btn.admin:hover,
.modal-login-btn.guru:hover,
.modal-login-btn.siswa:hover {
    filter: brightness(1.1);
    color: white;
}

.custom-modal {
    max-width: 700px;
    width: 100%;
    margin: 1.5rem auto;
}

/* ── Video Wrapper ── */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ── Store Buttons ── */
.store-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .1);
    background: var(--c-off-white);
    color: var(--c-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.store-btn:hover {
    background: var(--c-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
    transform: translateX(4px);
    color: var(--c-text);
}

.store-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.w-150 {
    width: 150px;
}

.swal-zindex-top,
.swal2-container {
    z-index: 999999 !important;
}

.service-qna-box,
.service-chat-info {
    display: none;
}

/* ── Animation Helpers ── */
.anim-up {
    opacity: 0;
    animation: fadeUp .5s ease forwards;
}

.anim-d1 {
    animation-delay: .05s;
}

.anim-d2 {
    animation-delay: .1s;
}

.anim-d3 {
    animation-delay: .15s;
}

.anim-d4 {
    animation-delay: .2s;
}

.anim-d5 {
    animation-delay: .25s;
}

.anim-d6 {
    animation-delay: .3s;
}

/* ── Fade Up (Portal) ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp .65s cubic-bezier(.22, .68, 0, 1) forwards;
}

.fade-up:nth-child(1) {
    animation-delay: .06s;
}

.fade-up:nth-child(2) {
    animation-delay: .17s;
}

.fade-up:nth-child(3) {
    animation-delay: .28s;
}

.fade-up:nth-child(4) {
    animation-delay: .38s;
}

.fade-up:nth-child(5) {
    animation-delay: .47s;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
    background: var(--c-navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-white);
    margin-bottom: 0.875rem;
}

.footer-brand span {
    color: var(--c-teal);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    max-width: 340px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.25rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--c-teal);
}

.footer-link i {
    font-size: 0.95rem;
    width: 18px;
    flex-shrink: 0;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.06);
    margin: 3rem 0 1.5rem;
}

.footer-bottom {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .layout-menu {
        transform: translateX(-100%);
    }

    .layout-menu.mobile-open {
        transform: translateX(0);
    }

    .layout-page {
        margin-left: 0 !important;
    }

    body.sidebar-collapsed .layout-menu {
        transform: translateX(-100%);
    }

    #sidebarToggleBtn {
        display: none;
    }
}

@media (max-width: 991px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .fb-top,
    .fb-bottom {
        display: none;
    }

    .cta-inner {
        padding: 3rem 1.5rem;
    }

    #sidebarToggleBtn {
        display: none;
    }
}

@media (max-width: 860px) {
    .main-card {
        padding: 36px 24px 50px;
    }

    .envelope {
        width: 310px;
        height: 214px;
    }

    .env-flap {
        height: 136px;
    }

    .env-seal {
        top: 118px;
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .envelope:hover .env-seal {
        transform: translate(-50%, calc(-50% - 98px)) scale(1.16);
    }

    .env-bottom,
    .env-left,
    .env-right {
        height: 150px;
    }

    .env-paper {
        left: 20px;
        right: 20px;
        height: 120px;
    }

    .envelope:hover .env-paper {
        transform: translateY(-44px);
    }

    .env-info {
        max-width: 310px;
    }

    .envelopes-row {
        gap: 28px;
    }

    #sidebarToggleBtn {
        display: none;
    }

    #modalStatistik .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

}


@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .about-visual-grid {
        grid-template-columns: 1fr;
    }

    .about-card.span2 {
        grid-column: span 1;
    }

    .cta-btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn-group a {
        justify-content: center;
    }

    .mini-stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .hero-svg-wrapper {
        margin-top: -30px;
    }

    #sidebarToggleBtn {
        display: none;
    }
}

@media (max-width: 580px) {
    .envelopes-row {
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 580px) {

    /* ── Page wrapper ── */
    .page-wrapper {
        padding: 20px 12px 60px;
    }

    /* ── Main card ── */
    .main-card {
        padding: 24px 16px 40px;
        border-radius: 20px;
    }

    /* ── Envelope row ── */
    .envelopes-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* ── Envelope ukuran ── */
    .envelope {
        width: 280px;
        height: 192px;
    }

    .env-bottom,
    .env-left,
    .env-right {
        height: 136px;
    }

    .env-flap {
        height: 122px;
    }

    .env-paper {
        left: 16px;
        right: 16px;
        height: 106px;
    }

    .envelope:hover .env-paper {
        transform: translateY(-38px);
    }

    .env-seal {
        top: 106px;
        width: 52px;
        height: 52px;
        font-size: 18px;
    }

    .envelope:hover .env-seal {
        transform: translate(-50%, calc(-50% - 88px)) scale(1.15);
    }

    /* ── Info card bawah envelope ── */
    .env-info {
        max-width: 280px;
        padding: 16px 20px;
    }

    /* ── Subtitle pill ── */
    .subtitle-pill {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        font-size: 11px;
        padding: 5px 14px;
    }

    /* ── Kode note ── */
    .kode-note {
        padding: 10px 14px;
        font-size: 12px;
    }

    /* ── Timeline ── */
    .tl-icon-wrap {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .timeline-connector {
        left: 24px;
    }

    .tl-card {
        padding: 16px 18px;
    }
}

/* ══════════════════════════════════════
   MANAJEMEN ADMIN — TOMBOL STATISTIK
══════════════════════════════════════ */
#modalStatistik .modal-dialog {
    max-width: 900px;
    width: calc(100% - 32px);
    margin: 16px auto;
}

/* ══════════════════════════════════════
   MODAL STATISTIK — HEADER
══════════════════════════════════════ */
.modal-statistik-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-bottom: none;
    padding: 14px 16px 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.modal-statistik-header .btn-close {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    margin: 0;
    padding: 8px;
}

.stat-modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.stat-modal-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.stat-modal-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.stat-modal-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ══════════════════════════════════════
   GRID ROW HELPER
══════════════════════════════════════ */
.stat-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* ══════════════════════════════════════
   3 HERO CARD
══════════════════════════════════════ */
.stat-hero-card {
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform .2s, box-shadow .2s;
}

.stat-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-hero-label {
    font-size: 11px;
    color: #8592A3;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.stat-hero-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.stat-hero-sub {
    font-size: 11px;
    color: #8592A3;
}

.stat-hero-purple .stat-hero-value {
    color: #696CFF;
}

.stat-hero-teal .stat-hero-value {
    color: #0F6E56;
}

.stat-hero-amber .stat-hero-value {
    color: #BA7517;
}

/* ══════════════════════════════════════
   STAT BLOCK
══════════════════════════════════════ */
.stat-block {
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    min-width: 0;
    overflow: hidden;
}

.stat-block-title {
    font-size: 11px;
    font-weight: 700;
    color: #566a7f;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-block-title i {
    color: var(--primary);
    font-size: 11px;
}

/* ══════════════════════════════════════
   KV GRID
══════════════════════════════════════ */
.stat-kv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.stat-kv-label {
    font-size: 11px;
    color: #8592A3;
    margin-bottom: 2px;
}

.stat-kv-val {
    font-size: 14px;
    font-weight: 700;
    color: #1e2140;
}

/* ══════════════════════════════════════
   BINTANG RATING
══════════════════════════════════════ */
.stat-star-row {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.stat-star {
    color: #EF9F27;
    font-size: 18px;
}

.stat-star-empty {
    color: #ddd;
    font-size: 18px;
}

/* ══════════════════════════════════════
   BAR CHART
══════════════════════════════════════ */
.stat-bar-item {
    margin-bottom: 10px;
}

.stat-bar-item:last-child {
    margin-bottom: 0;
}

.stat-bar-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.stat-bar-star {
    font-size: 12px;
    font-weight: 700;
    color: #566a7f;
    min-width: 28px;
}

.stat-bar-label-row span:last-child {
    font-size: 11px;
    color: #8592A3;
    font-weight: 600;
}

.stat-bar-track {
    height: 8px;
    border-radius: 4px;
    background: #f0f0f5;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .5s ease;
}

/* ══════════════════════════════════════
   RADAR CHART
══════════════════════════════════════ */
.stat-radar-wrap {
    text-align: center;
}

/* ══════════════════════════════════════
   TIMELINE AKTIVITAS
══════════════════════════════════════ */
.stat-tl-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f8;
}

.stat-tl-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.stat-tl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.stat-tl-action {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e2140;
}

.stat-tl-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    margin-bottom: 2px;
}

.stat-tl-time {
    color: #8592A3;
    font-size: 11px;
    margin-top: 2px;
}

/* ══════════════════════════════════════
   MODAL STATISTIK — SCROLL DI MOBILE
══════════════════════════════════════ */
@media (max-width: 860px) {
    #modalStatistik .modal-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    #modalStatistik .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .stat-row-3 {
        grid-template-columns: 1fr !important;
    }

    .stat-hero-card {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .stat-hero-value {
        font-size: 22px;
    }
}

#roleInfoPanel {
    visibility: visible !important;
}

/* Fix Bootstrap collapse visibility */
.collapse:not(.show) {
    /* display: none !important; */
    visibility: visible !important;
}

.collapse.show {
    display: block !important;
    visibility: visible !important;
}

.collapse.collapsing {
    visibility: visible !important;
}