@import url('https://fonts.googleapis.com/css2?family=Arizonia&family=Cormorant+Garamond:ital,wght@1,600;1,700&family=Dancing+Script:wght@600;700&family=Great+Vibes&family=Lobster+Two:ital,wght@1,700&family=Marck+Script&family=Outfit:wght@400;600;700;800;900&family=Pinyon+Script&family=Playball&family=Satisfy&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #2563eb, #8b5cf6);
    --accent-glow: 0 8px 30px rgba(37, 99, 235, 0.3);
    --dark-navy: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: #0f172a !important; /* Cegah sudut putih saat modal terbuka */
    min-height: 100%;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scroll-behavior: auto;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    width: 100% !important;
    overflow: visible !important;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* Header Navigation Styling with Glassmorphism */
.header {
    position: relative !important;
    top: auto !important;
    z-index: 100 !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 1px 32px rgba(37, 99, 235, 0.06), 0 1px 4px rgba(15, 23, 42, 0.04);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    max-width: 1400px;
    margin: auto;
    gap: 20px;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    letter-spacing: -0.03em;
    white-space: nowrap;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(37, 99, 235, 0.18));
}

.brand:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.brand i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-bar {
    flex-grow: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 18px;
    background: #f8fafc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    padding: 2px 6px;
    font-size: 14px;
    background: transparent;
    color: var(--text-main);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 15px;
    margin-right: 6px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Navigation Tabs */
nav {
    display: flex;
    gap: 4px;
    padding: 0 28px;
    max-width: 1400px;
    margin: auto;
    overflow-x: auto;
    scrollbar-width: none;
    transition: opacity 0.25s ease;
}

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

nav button {
    border: 0;
    background: transparent;
    padding: 14px 14px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 0;
    position: relative;
}

nav button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2.5px;
    border-radius: 2px 2px 0 0;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

nav button.active::after {
    transform: scaleX(1);
}

@media (hover: hover) {
    nav button:hover::after {
        transform: scaleX(1);
    }
    nav button:hover {
        color: var(--primary);
    }
}

nav button.active {
    color: var(--primary);
    border-bottom-color: transparent;
}

nav button i {
    font-size: 13px;
}

nav .nav-btn-switch {
    margin-left: auto;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    background: #eff6ff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    border: 1px solid #bfdbfe !important;
    border-bottom: 1px solid #bfdbfe !important;
    align-self: center;
}

nav .nav-btn-switch:hover {
    background: #dbeafe !important;
}

nav .nav-btn-switch-back {
    margin-left: auto;
    color: #4338ca !important;
    font-weight: 700 !important;
    background: #e0e7ff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    border: 1px solid #c7d2fe !important;
    border-bottom: 1px solid #c7d2fe !important;
    align-self: center;
}

nav .nav-btn-switch-back:hover {
    background: #c7d2fe !important;
}

/* Page Container */
.shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}

/* ─── Smooth Page Transition System (100% Strict Single-Page Isolation & Ultra-Smooth Transitions) ─── */
.page {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    padding: 36px 0 80px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    transform: translateY(12px) scale(0.995);
    transition:
        opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.page.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.page.page-exit {
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(0.995) !important;
    pointer-events: none !important;
    transition:
        opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Smooth Admin & Tutor Tab System ─── */
.admin-tab-content,
.tutor-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-tab-content.active,
.tutor-tab-content.active {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;         /* Hapus transform agar touch gesture scroll di Safari iOS tidak terblokir */
    will-change: auto !important;
}

/* Wrapper */
#pageWrapper {
    position: relative;
    min-height: 100vh;
}

.partners-banner {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #e2e8f0;
    border-top-color: #f1f5f9;
    border-bottom-color: #cbd5e1;
    border-radius: 18px;
    padding: 14px 22px;
    margin: 0 0 24px 0;
    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.07),
        0 2px 4px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.partners-label {
    font-weight: 700;
    font-size: 15.5px;
    color: #475569;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 4px;
}

.partners-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    gap: 8px;
    min-width: 0;
}

.partner-item {
    height: 56px;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: transparent;
    border-left: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.partners-banner img,
.partners-track img,
.partner-item img {
    max-height: 50px !important;
    max-width: 95% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.2s ease;
}

.partners-banner img:hover,
.partners-track img:hover,
.partner-item img:hover {
    transform: scale(1.08);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* General Premium Buttons */
.btn {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14.5px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.btn:active {
    transform: translateY(1px) !important;
}

.btn.primary {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: 1px solid #1e40af;
    border-top-color: #60a5fa;
    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn.primary:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px rgba(37, 99, 235, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn.secondary {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--primary);
    border: 1.5px solid #bfdbfe;
    border-bottom-color: #93c5fd;
    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.10),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn.secondary:hover {
    background: #eff6ff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow:
        0 6px 18px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 #fff;
}

.btn.accent {
    background: linear-gradient(180deg, #3b82f6 0%, #7c3aed 100%);
    color: var(--white);
    border: 1px solid #6d28d9;
    border-top-color: #a78bfa;
    box-shadow:
        0 6px 18px rgba(124, 58, 237, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn.accent:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(124, 58, 237, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn.white {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--dark-navy);
    border: 1px solid #e2e8f0;
    border-top-color: #f8fafc;
    border-bottom-color: #cbd5e1;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.08),
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.btn.white:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 #fff;
    border-color: #cbd5e1;
}

.btn.danger {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    color: var(--white);
    border: 1px solid #b91c1c;
    border-top-color: #fca5a5;
    box-shadow:
        0 4px 14px rgba(239, 68, 68, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn.danger:hover {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px rgba(239, 68, 68, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* User Info Widget in Header */
.user-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.08));
    padding: 7px 16px;
    border-radius: 50px;
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.user-widget:hover {
    background: rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* Hero Section */
.hero-banners {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 32px;
}

.banner {
    border-radius: 20px;
    padding: 44px 48px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 340px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
    transition: var(--transition);
}

.banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
}

.banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -25%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.banner-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1a1040 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.banner-dark h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.banner-blue {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
}

.banner-blue h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.08);
}

.banner p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Stat Counter Section */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.08),
        0 2px 4px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid #e2e8f0;
    border-top-color: #f1f5f9;
    border-bottom-color: #cbd5e1;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(37, 99, 235, 0.2));
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Section Titles */
.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 36px 0 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-navy);
    letter-spacing: -0.025em;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(15, 23, 42, 0.08);
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--accent-gradient);
    border-radius: 4px;
    flex-shrink: 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    margin-top: 6px;
    padding-left: 14px;
}

/* Popular Category Grid */
.role-grid,
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.role-card,
.course-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    border-top-color: #f1f5f9;
    border-bottom-color: #d1d5db;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.06),
        0 2px 4px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.role-card:hover,
.course-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.12),
        0 4px 8px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Staggered card entrance animation */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

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

.course-card.card-animate {
    animation: cardAppear 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--card-delay, 0ms);
}

.role-card .icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    transition: var(--transition);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.role-card h3,
.course-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 3px rgba(15, 23, 42, 0.06);
}

.role-card p,
.course-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.role-card .meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Form & Panels (PKBM Styles) */
.panel {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    border-top-color: #f1f5f9;
    border-bottom-color: #cbd5e1;
    border-radius: 20px;
    padding: 24px 24px 20px 24px;
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.07),
        0 2px 4px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    box-sizing: border-box;
}

#tutorAddCourseArea {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#tutorAddCourseForm {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 600;
    color: var(--dark-navy);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field input,
.field textarea,
textarea {
    border: 1.5px solid #cbd5e1;
    border-top-color: #e2e8f0;
    border-bottom-color: #94a3b8;
    border-radius: 12px;
    padding: 12px 16px;
    outline: none;
    background: #ffffff;
    box-shadow:
        inset 0 2px 4px rgba(15, 23, 42, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 14.5px;
    color: var(--text-main);
    font-family: inherit;
}

textarea,
.field textarea {
    resize: none !important;
    min-height: 100px;
    line-height: 1.5;
    overflow-y: auto;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}

.field input:focus,
.field textarea:focus,
textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow:
        0 0 0 3.5px rgba(37, 99, 235, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Custom Luxury Floating Select System (Replaces Native Square Dropdowns) */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
    font-family: inherit;
    display: inline-block;
}

.custom-select-wrapper select {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: -1 !important;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #cbd5e1;
    border-top-color: #f1f5f9;
    border-bottom-color: #94a3b8;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--dark-navy);
    cursor: pointer;
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.05),
        0 1px 2px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 #ffffff;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 46px;
    box-sizing: border-box;
}

.custom-select-trigger:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow:
        0 6px 18px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 #ffffff;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow:
        0 0 0 3.5px rgba(37, 99, 235, 0.18),
        0 6px 16px rgba(37, 99, 235, 0.12);
}

.custom-select-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 13px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 999999;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-top-color: #ffffff;
    border-radius: 16px;
    padding: 8px;
    box-shadow:
        0 20px 45px -6px rgba(15, 23, 42, 0.2),
        0 8px 16px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 #ffffff;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition:
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s ease;
    scrollbar-width: thin;
}

.custom-select-wrapper.open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 3px;
}

.custom-select-option:last-child {
    margin-bottom: 0;
}

.custom-select-option:hover {
    background: #eff6ff;
    color: var(--primary);
    transform: translateX(3px);
}

.custom-select-option.selected {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.custom-select-option.selected:hover {
    transform: none;
    color: #ffffff;
}

.custom-select-option .check-icon {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.custom-select-option.selected .check-icon {
    opacity: 1;
}

/* Custom Styled Radio & Checkboxes */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 0 #fff;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

input[type="radio"]:hover {
    border-color: #93c5fd;
    transform: scale(1.05);
}

input[type="radio"]:checked {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

input[type="radio"]:checked::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 0 #fff;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: #93c5fd;
    transform: scale(1.05);
}

input[type="checkbox"]:checked {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

input[type="checkbox"]:checked::before {
    content: "✓";
    font-size: 13px;
    color: #ffffff;
    font-weight: 900;
}

.notice {
    margin-top: 20px;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.notice.show {
    display: flex;
}

/* Table styles */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-top-color: #f1f5f9;
    border-bottom-color: #cbd5e1;
    border-radius: 16px;
    margin-top: 20px;
    background: #ffffff;
    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.06),
        0 2px 4px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    text-align: left;
}

.table th,
.table td {
    padding: 14px 18px;
    vertical-align: middle !important;
    font-size: 13.5px;
    line-height: 1.5;
    box-sizing: border-box;
}

.table th {
    color: #475569;
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    text-shadow: 0 1px 0 #ffffff;
    white-space: nowrap;
}

.table tr {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s ease;
}

.table tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.pill.aktif {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border-color: #a7f3d0;
}

.pill.lulus {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-color: #bfdbfe;
}

.pill.pending {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border-color: #fde68a;
}

.pill.approved {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border-color: #a7f3d0;
}

.pill.rejected {
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-color: #fecaca;
}

/* Modal styled clean */
.modal {
    /* Menutupi SELURUH viewport tanpa celah sudut putih */
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-width: 100vw !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Overlay gelap menutupi seluruh layar */
    background: rgba(15, 23, 42, 0.88) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    /* Menyembunyikan modal saat tidak aktif agar Chrome/Edge laptop tidak mencegat mouse wheel */
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    z-index: 9999999 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    /* Smooth fade tanpa kedipan putih */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Wrapper dalam modal untuk padding scroll yang aman */
.modal > .modal-box {
    margin: 30px 20px !important;
    flex-shrink: 0;
}

.modal .modal-box {
    transform: translateY(12px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.modal.show .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-box {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 22px;
    max-width: 600px;
    width: 100%;
    padding: 24px 28px;
    box-shadow:
        0 25px 60px -10px rgba(15, 23, 42, 0.4),
        0 10px 20px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-top-color: #ffffff;
    max-height: calc(90dvh - 20px);
    max-height: calc(90vh - 20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    box-sizing: border-box;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.close,
.modal-head .close,
button.close {
    border: 0 !important;
    background: #f1f5f9 !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    font-size: 15px !important;
    cursor: pointer !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.close:hover,
.modal-head .close:hover,
button.close:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    transform: rotate(90deg) scale(1.05) !important;
}

#modalContentArea {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 4px;
    padding-bottom: 12px;
}

/* Digital ID Card (Kartu Tanda Peserta) CSS */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 16px auto;
    padding: 0;
    box-sizing: border-box;
}

.id-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0b1329 0%, #152238 50%, #0d172a 100%);
    color: #ffffff;
    border-radius: 22px;
    padding: 22px 26px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px -10px rgba(11, 19, 41, 0.45),
        0 6px 16px -4px rgba(15, 23, 42, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.id-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 26px 48px -10px rgba(11, 19, 41, 0.55),
        0 8px 20px -4px rgba(15, 23, 42, 0.35);
}

.id-card::before {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -20%;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.id-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 12px;
    position: relative;
    z-index: 1;
}

.id-card-logo {
    font-weight: 800;
    font-size: 18px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.id-card-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 700;
    border: 1.5px solid rgba(96, 165, 250, 0.35);
}

.id-card-body {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 10px 0;
    position: relative;
    z-index: 1;
}

.id-card-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.25s ease;
}

.id-card-details {
    flex-grow: 1;
    overflow: hidden;
}

.id-card-details h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.id-card-details p {
    font-size: 13px;
    color: #94a3b8;
    margin: 2px 0;
    line-height: 1.35;
}

.id-card-details p strong {
    color: #cbd5e1;
    font-weight: 700;
}

.id-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1.5px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
    position: relative;
    z-index: 1;
}

.id-card-footer .status-label {
    font-size: 9.5px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 2px 0;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.id-card-footer .status-val {
    font-weight: 800;
    font-size: 15px;
    color: #38bdf8;
}

.id-card-qr-box {
    width: 72px !important;
    height: 72px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 5px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.25) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.id-card-qr-box:hover {
    transform: scale(1.06) !important;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4) !important;
}

.id-card-qr-box canvas,
.id-card-qr-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
}

/* Jika ada canvas dan img sekaligus, sembunyikan canvas agar hanya 1 barcode tunggal */
.id-card-qr-box:has(img[src]) canvas {
    display: none !important;
}

/* Verification Certificate layout styling */
.verify-result {
    display: none;
    margin-top: 24px;
}

.verify-result.show {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    max-width: 960px;
    margin: 24px auto 0 auto;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

#certificateFrame {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

#certificateFrame::before {
    display: none !important;
}

.certificate-frame {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    position: relative;
    box-shadow: none;
    color: #1f2432;
    overflow: visible;
}

.certificate-frame .gold-seal {
    width: 65px;
    height: 65px;
    background: radial-gradient(circle, #f9d976 0%, #e9b646 100%);
    border-radius: 50%;
    margin: 16px auto;
    position: relative;
    border: 2px dashed #b8860b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.certificate-frame h2 {
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 26px;
    color: #8b6508;
    margin: 12px 0;
}

/* Courses Interactive View styles */
.course-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.filter-btn {
    border: 1.5px solid var(--border-color);
    background: var(--white);
    padding: 8px 18px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Progress Bar styling */
.progress-container {
    margin-top: 14px;
    width: 100%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.progress-bg {
    background: var(--bg-light);
    border-radius: 8px;
    height: 8px;
    width: 100%;
    overflow: hidden;
}

.progress-bar {
    background: var(--accent-gradient);
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

/* Admin Dashboard Layout */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.admin-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    border-top-color: #f1f5f9;
    border-bottom-color: #d1d5db;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.06),
        0 2px 4px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.15);
}

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

.admin-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.admin-card-info h4 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.admin-card-info p {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(15, 23, 42, 0.06);
}

.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1.5px solid var(--border-color);
    margin-bottom: 24px;
    padding-bottom: 0;
}

.admin-tab-btn {
    border: 0;
    background: transparent;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 8px 8px 0 0;
    margin-bottom: -1.5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-tab-btn:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

.admin-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

/* Drag Drop Area */
.drag-drop-area {
    border: 2px dashed var(--border-color);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.drag-drop-area:hover,
.drag-drop-area.drag-over {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
    color: var(--primary);
}

.drag-drop-area i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.drag-drop-area:hover i {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Timeline representation */
.timeline {
    margin-top: 16px;
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

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

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
}

.timeline-content {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (LAPTOP / PC & MOBILE / TABLET)
   ========================================================================== */

/* Laptop & Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-banners {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner {
        min-height: auto;
        padding: 32px;
    }

    .role-grid,
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .admin-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .brand {
        font-size: 20px;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 4px;
        padding: 8px 14px;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        gap: 8px;
    }

    .header-actions .btn {
        padding: 8px 14px;
        font-size: 13.5px;
    }

    .user-widget {
        padding: 4px 10px;
        font-size: 13px;
    }

    nav {
        padding: 0 16px;
        gap: 14px;
    }

    nav button {
        padding: 12px 0;
        font-size: 14px;
    }

    .shell {
        padding: 0 16px;
    }

    .page.active {
        padding: 24px 0 60px;
    }

    .banner {
        padding: 24px;
    }

    .banner-dark h1,
    .banner-blue h1 {
        font-size: 24px !important;
        margin-bottom: 8px;
    }

    .banner p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 16px;
        margin-bottom: 30px;
    }

    .stat-item {
        border-right: none;
        padding: 4px 0;
    }

    .stat-item h2 {
        font-size: 26px;
    }

    .stat-item p {
        font-size: 13px;
    }

    .section-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin: 28px 0 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .role-grid,
    .course-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .panel {
        padding: 20px;
        border-radius: var(--radius-sm);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-dashboard {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-tabs,
    .course-filters,
    .material-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
    }

    .admin-tab-btn,
    .material-tab-btn,
    .filter-btn {
        flex-shrink: 0;
    }

    .verify-result.show {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
    }

}

.certificate-frame h2 {
    font-size: 20px;
}

.modal {
    padding: 12px;
}

.modal-box {
    padding: 20px;
    max-height: 92vh;
    overflow-y: auto;
    width: 100%;
}

.player-layout {
    grid-template-columns: 1fr;
    gap: 16px;
}

.module-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 16px;
    max-height: 280px;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
}

.table th,
.table td {
    padding: 12px 14px;
    font-size: 13.5px;
    white-space: nowrap;
}

/* Extra Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .card-container {
        width: 100%;
        max-width: 100%;
        margin: 16px auto 12px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .id-card {
        width: 100%;
        max-width: 100%;
        padding: 16px 18px;
        border-radius: 18px;
        min-height: auto;
    }

    .id-card-head {
        padding-bottom: 10px;
    }

    .id-card-logo {
        font-size: 15.5px;
        gap: 6px;
    }

    .id-card-type {
        font-size: 10px;
        padding: 3px 8px;
    }

    .id-card-body {
        gap: 12px;
        margin: 8px 0;
    }

    .id-card-avatar {
        width: 66px;
        height: 66px;
        border-radius: 8px;
        font-size: 22px;
    }

    .id-card-details h4 {
        font-size: 15.5px;
        margin-bottom: 3px;
    }

    .id-card-details p {
        font-size: 11.5px;
        line-height: 1.3;
        margin: 1.5px 0;
    }

    .id-card-footer {
        padding-top: 10px;
    }

    .id-card-footer .status-val {
        font-size: 13.5px;
    }

    .id-card-qr-box {
        width: 42px;
        height: 42px;
        border-radius: 4px;
        padding: 2px;
    }
}

/* Scroll Lock when Modal is Open (Smooth in Mobile HP) */
body.modal-open {
    overflow: hidden !important;
}

.modal,
.modal-box,
#modalContentArea {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
}

/* Course Player Modular Layout Styles */
.modal-box.large {
    max-width: 1180px;
    width: 92vw;
    max-height: 86vh;
    overflow-y: auto;
    padding: 24px 32px;
    margin: auto;
}

.player-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.player-layout > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .player-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.module-sidebar {
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

@media (max-width: 768px) {
    .module-sidebar {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 20px;
    }
}

.module-sidebar h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-item {
    padding: 0;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: 0 1px 4px rgba(15,23,42,0.04);
}

.module-item:hover:not(.locked) {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.12);
    transform: translateY(-1px);
}

.module-item.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
}

.module-item.active .module-item-num {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.module-item.locked {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f8fafc;
}

/* Nomor modul di sisi kiri */
.module-item-num {
    width: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #94a3b8;
    background: #f1f5f9;
    border-right: 1.5px solid #e2e8f0;
    flex-shrink: 0;
    transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
}

.module-item-body {
    flex: 1;
    padding: 12px 14px;
    min-width: 0;
}

.module-item-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--dark-navy);
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-item.active .module-item-title {
    color: var(--primary);
}

.module-item-status {
    font-size: 11px;
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.module-item-status span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 10.5px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.module-item-status span.completed {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.module-item-status span.studying {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.module-item-status span.locked-badge {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

/* Medium/Compact Media Cards in Module Player */
.media-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.media-card-box {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.media-card-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.08);
}

.media-card-box.finished {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.media-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.media-card-type {
    font-size: 13px;
    font-weight: 800;
    color: var(--dark-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.media-card-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}

.media-card-status.pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.media-card-status.completed {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.media-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
    line-height: 1.35;
}

.media-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
}

.module-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .module-footer-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .module-footer-bar .btn {
        width: 100% !important;
        justify-content: center !important;
        font-size: 12.5px !important;
        padding: 10px 14px !important;
        white-space: normal !important;
        word-break: break-word !important;
        text-align: center !important;
    }
    .module-footer-bar span {
        text-align: center !important;
        font-size: 12px !important;
        width: 100% !important;
        display: block !important;
    }
}

.option-item {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-item:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.option-item.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    font-weight: 600;
}

.quiz-notice {
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: none;
}

.quiz-notice.success {
    display: block;
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.quiz-notice.error {
    display: block;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Tab penukar materi (Video vs PDF) */
.material-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 8px;
}

.material-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.material-tab-btn:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.material-tab-btn.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

/* Pembaca PDF Mock Paper Style */
.pdf-reader-frame {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    height: 220px;
    overflow-y: auto;
    padding: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    text-align: justify;
}

.pdf-reader-frame h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 6px;
}

.pdf-reader-frame p {
    margin-bottom: 12px;
}

/* Quiz progress bar */
.quiz-progress-container {
    margin-bottom: 16px;
}

.quiz-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.quiz-progress-bg {
    background: var(--border-color);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-bar {
    background: var(--primary);
    height: 100%;
    border-radius: 3px;
    transition: var(--transition);
}

/* Tutor Dashboard Custom Styles */
.tutor-question-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
}

.tutor-question-card h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 14px;
}

.tutor-question-card .option-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tutor-question-card .option-field input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tutor-question-card .option-field input[type="text"] {
    flex-grow: 1;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.tutor-module-item {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-main);
    background: var(--bg-light);
}

.tutor-module-item:hover {
    border-color: var(--primary);
    background: var(--white);
}

.tutor-module-item.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

/* ==================== CERTIFICATE & PRINT STYLES ==================== */
.cert-page {
    position: relative;
    background: #ffffff;
    border: 4px double #2563eb;
    border-radius: 8px;
    padding: 22px 28px;
    margin: 0 auto 20px auto;
    max-width: 820px;
    width: 100%;
    color: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Outfit', 'Georgia', sans-serif;
}

.cert-page-a4-print {
    width: 1122px !important;
    min-width: 1122px !important;
    max-width: 1122px !important;
    height: 793px !important;
    min-height: 793px !important;
    max-height: 793px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 42px 52px !important;
    border-radius: 0 !important;
    border: 5px double #1e3a8a !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.cert-corner {
    position: absolute;
    pointer-events: none;
    z-index: 1 !important;
}

.cert-corner-tl {
    top: 0;
    left: 0;
}

.cert-corner-tr {
    top: 0;
    right: 0;
}

.cert-corner-bl {
    bottom: 0;
    left: 0;
}

.cert-corner-br {
    bottom: 0;
    right: 0;
}

.cert-inner-border {
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(37, 99, 235, 0.3);
    border-radius: 6px;
    pointer-events: none;
    z-index: 2 !important;
}

.cert-content {
    position: relative;
    z-index: 10 !important;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 12px;
    gap: 12px;
}

.cert-logo {
    max-height: 56px !important;
    max-width: 72px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.cert-logo-center {
    max-height: 54px !important;
    max-width: 72px !important;
    object-fit: contain !important;
    margin: 0 auto 4px auto !important;
    display: block !important;
}

.cert-header.center-layout {
    flex-direction: column;
    text-align: center;
}

.cert-inst-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.cert-title-heading {
    font-family: 'Outfit', 'Montserrat', sans-serif !important;
    font-size: 26px;
    font-weight: 900;
    color: #1a237e;
    letter-spacing: 1px;
    margin-top: 4px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.cert-recipient-name {
    font-family: 'Lobster Two', 'Playball', 'Marck Script', 'Great Vibes', cursive, serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    border-bottom: none;
    display: inline-block;
    padding: 0 24px 2px 24px;
    margin: 4px auto 8px auto;
    min-width: 50%;
    text-align: center;
    white-space: nowrap;
}

.font-lobster {
    font-family: 'Lobster Two', cursive !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

.font-playball {
    font-family: 'Playball', cursive !important;
    font-weight: 700 !important;
}

.font-marck {
    font-family: 'Marck Script', cursive !important;
    font-weight: 700 !important;
}

.font-great-vibes {
    font-family: 'Great Vibes', cursive !important;
    font-weight: 700 !important;
    -webkit-text-stroke: 1px #000000;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

/* Scaled Preview for Admin Dashboard Box */
#adminCertPreviewBox .cert-page {
    padding: 16px 20px !important;
}

#adminCertPreviewBox .cert-title-heading {
    font-size: 22px !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

#adminCertPreviewBox .cert-recipient-name {
    font-size: 20px !important;
    padding: 0 16px 2px 16px !important;
    margin: 4px auto 8px auto !important;
    min-width: 55% !important;
    white-space: nowrap !important;
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
    text-align: left;
    border: 1.5px solid #64748b;
}

.cert-table th {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1.5px solid #64748b;
    padding: 10px 12px;
    font-weight: 800;
}

.cert-table td {
    border: 1.5px solid #64748b;
    padding: 9px 12px;
    color: #1e293b;
}

.cert-table tr:nth-child(even) td {
    background: #f8fafc;
}

.cert-table-total {
    font-weight: 900;
    background: #f8fafc !important;
    color: #0f172a;
}

.cert-table-total td {
    border: 1.5px solid #64748b !important;
    font-weight: 900;
}

.cert-signature-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 12.5px;
}

.cert-signature-box {
    text-align: center;
    min-width: 220px;
}

.cert-signature-img {
    max-height: 65px;
    max-width: 180px;
    object-fit: contain;
    margin: 6px 0;
}

/* Print CSS Rules - Synchronized Font, Colors & Dimensions */
@media print {
    .no-print {
        display: none !important;
    }

    @page {
        size: A4 landscape;
        margin: 0;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html,
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
        font-family: 'Outfit', 'Inter', sans-serif !important;
    }

    body * {
        visibility: hidden !important;
    }

    #certificateFrame,
    #certificateFrame * {
        visibility: visible !important;
    }

    #certificateFrame {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cert-page {
        width: 297mm !important;
        height: 209mm !important;
        box-sizing: border-box !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        margin: 0 !important;
        padding: 20mm 18mm !important;
        border: 4px double #2563eb !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .cert-page:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }

    /* Synchronized Typography & Styling for Print */
    .cert-title-heading {
        font-family: 'Outfit', sans-serif !important;
        font-size: 34px !important;
        font-weight: 900 !important;
        color: #1a237e !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        margin-top: 4px !important;
        margin-bottom: 2px !important;
    }

    .cert-recipient-name {
        font-size: 38px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        border-bottom: none !important;
        display: inline-block !important;
        padding: 0 32px 4px 32px !important;
        margin: 6px auto 14px auto !important;
        min-width: 65% !important;
        text-align: center !important;
    }

    .font-lobster {
        font-family: 'Lobster Two', cursive !important;
        font-style: italic !important;
        font-weight: 700 !important;
    }

    .font-playball {
        font-family: 'Playball', cursive !important;
        font-weight: 700 !important;
    }

    .font-marck {
        font-family: 'Marck Script', cursive !important;
        font-weight: 700 !important;
    }

    .font-great-vibes {
        font-family: 'Great Vibes', cursive !important;
        font-weight: 700 !important;
        -webkit-text-stroke: 1px #000000 !important;
    }

    .font-cormorant {
        font-family: 'Cormorant Garamond', Georgia, serif !important;
        font-style: italic !important;
        font-weight: 700 !important;
    }

    .cert-inst-title {
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        color: #1d4ed8 !important;
    }

    .cert-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 16px 0 !important;
        font-size: 12px !important;
        border: 1.5px solid #64748b !important;
    }

    .cert-table th {
        background-color: #eff6ff !important;
        color: #1e3a8a !important;
        border: 1.5px solid #64748b !important;
        padding: 8px 10px !important;
        font-weight: 800 !important;
    }

    .cert-table td {
        border: 1.5px solid #64748b !important;
        padding: 8px 10px !important;
        color: #1e293b !important;
    }

    .cert-table tr:nth-child(even) td {
        background-color: #f8fafc !important;
    }

    .cert-table-total {
        font-weight: 900 !important;
        background-color: #f8fafc !important;
        color: #0f172a !important;
    }

    .cert-table-total td {
        border: 1.5px solid #64748b !important;
        font-weight: 900 !important;
    }

    .cert-signature-section {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        margin-top: 24px !important;
        padding-top: 14px !important;
        border-top: 1px solid #e2e8f0 !important;
        font-size: 12px !important;
    }

    .cert-signature-img {
        max-height: 60px !important;
        max-width: 170px !important;
        object-fit: contain !important;
    }

    .cert-corner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ==================== RESPONSIVE MOBILE STYLES ==================== */
.services-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .search-service-wrap {
        flex-direction: column !important;
    }

    .search-service-wrap input {
        width: 100% !important;
    }

    .search-service-wrap button {
        width: 100% !important;
    }

    #servicesResultsArea {
        word-break: break-word;
        overflow-x: auto;
    }

    .shell {
        padding: 0 16px;
    }
}

/* Anti-Cheat Quiz Copy & Zero-Delay Anti-Screenshot Protection */
.no-copy-quiz,
.no-copy-quiz * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.no-copy-quiz.screen-blind {
    filter: blur(100px) grayscale(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

/* Luxury Segmented Category Nav Bar */
.category-nav-bar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #e2e8f0;
    border-top-color: #f8fafc;
    border-bottom-color: #cbd5e1;
    border-radius: 16px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.06),
        0 2px 4px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.category-nav-bar::-webkit-scrollbar {
    display: none;
}

.cat-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-tab-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: translateY(-1px);
}

.cat-tab-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}

.cat-tab-btn.active i {
    color: #ffffff !important;
}

/* Star Rating Evaluasi Kepuasan Styles */
.star-btn {
    transition: transform 0.15s ease, color 0.15s ease;
}

.star-btn:hover {
    transform: scale(1.25);
}

/* ============================================================
   RESPONSIF KONTEN UNTUK HP DAN TABLET
   ============================================================ */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

/* Base Responsive Grid Definitions */
.responsive-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.responsive-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.responsive-split-grid-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.responsive-split-grid-1-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ============================================================
   PENYESUAIAN RESPONSIF KHUSUS HP DAN TABLET (FULL RESPONSIVE SYSTEM)
   ============================================================ */

/* ─── Tablet & iPad (max-width: 1024px) ─────────────────────────── */
@media (max-width: 1024px) {
    .shell {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-banners {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .banner {
        min-height: auto;
        padding: 32px 28px;
    }

    .stats-strip,
    .responsive-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        padding: 22px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4),
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .role-grid,
    .course-grid,
    .responsive-role-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }

    .admin-dashboard {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .player-layout {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cert-settings-grid,
    .responsive-split-grid-1-2,
    .responsive-split-grid-1-1 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .verify-result.show {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }
}

/* ─── Smartphone / HP (max-width: 768px) ─────────────────────────── */
@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100%;
        touch-action: auto;
    }

    .shell {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
    }

    .page {
        padding: 20px 0 60px !important;
    }

    /* Header & Navigation */
    .header-top {
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 10px 14px !important;
        align-items: center !important;
    }

    .brand {
        font-size: 19px !important;
        gap: 6px !important;
    }

    .header-actions {
        margin-left: auto !important;
        gap: 6px !important;
    }

    .header-actions .btn {
        padding: 7px 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    .user-widget {
        padding: 5px 12px !important;
        font-size: 12.5px !important;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .search-bar {
        order: 3 !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 2px 0 0 0 !important;
        padding: 6px 14px !important;
    }

    .search-bar input {
        font-size: 14px !important;
    }

    nav {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 14px !important;
        gap: 6px !important;
        scrollbar-width: none;
    }

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

    nav button {
        flex-shrink: 0 !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        gap: 5px !important;
    }

    nav .nav-btn-switch,
    nav .nav-btn-switch-back {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }

    /* Partners Banner Mobile */
    .partners-banner {
        display: flex !important;
        align-items: center !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 14px !important;
        gap: 10px !important;
        scrollbar-width: none;
        border-radius: 14px !important;
        margin-bottom: 20px !important;
        flex-wrap: nowrap !important;
    }

    .partners-banner::-webkit-scrollbar {
        display: none;
    }

    .partners-label {
        font-size: 13px !important;
        padding-right: 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .partners-track {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        flex-shrink: 0 !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }

    .partner-item {
        flex: 0 0 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        height: 48px !important;
        padding: 0 8px !important;
        border-left: 1px solid #e2e8f0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    .partner-item img {
        max-height: 40px !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Hero Banner */
    .hero-banners {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 24px !important;
    }

    .banner {
        padding: 24px 20px !important;
        border-radius: 16px !important;
        min-height: auto !important;
    }

    .banner-dark h1,
    .banner-blue h1 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }

    .banner p {
        font-size: 13.5px !important;
        margin-bottom: 20px !important;
    }

    .banner .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Stats Strip */
    .stats-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 16px 14px !important;
        gap: 14px !important;
        border-radius: 16px !important;
        margin-bottom: 26px !important;
    }

    .stat-item h2 {
        font-size: 24px !important;
    }

    .stat-item p {
        font-size: 12px !important;
    }

    /* Section Titles */
    .section-title-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin: 24px 0 14px !important;
    }

    .section-title {
        font-size: 20px !important;
    }

    .section-subtitle {
        font-size: 13px !important;
        padding-left: 10px !important;
    }

    /* Cards & Grids */
    .role-grid,
    .course-grid,
    .responsive-role-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .role-card,
    .course-card {
        padding: 18px !important;
        border-radius: 14px !important;
    }

    .role-card .icon-wrapper {
        width: 46px !important;
        height: 46px !important;
        font-size: 18px !important;
        margin-bottom: 14px !important;
    }

    /* Category Nav Bar */
    .category-nav-bar {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 5px 6px !important;
        gap: 6px !important;
        border-radius: 12px !important;
        scrollbar-width: none;
        margin-bottom: 18px !important;
    }

    .category-nav-bar::-webkit-scrollbar {
        display: none;
    }

    .cat-tab-btn {
        flex-shrink: 0 !important;
        padding: 7px 12px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
    }

    /* Panels & Forms */
    .panel {
        padding: 18px 14px !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .field input,
    .field select,
    .field textarea,
    textarea {
        font-size: 15px !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
    }

    .custom-select-trigger {
        padding: 10px 14px !important;
        font-size: 14px !important;
        min-height: 42px !important;
        border-radius: 10px !important;
    }

    .custom-select-dropdown {
        max-height: 220px !important;
        border-radius: 12px !important;
    }

    .custom-select-option {
        padding: 8px 12px !important;
        font-size: 13.5px !important;
    }

    /* Admin Dashboard & Tutor Panel */
    .admin-dashboard,
    .responsive-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    .admin-card {
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }

    .admin-card-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    .admin-card-info p {
        font-size: 20px !important;
    }

    .admin-tabs {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
        gap: 4px !important;
        padding-bottom: 4px !important;
        margin-bottom: 16px !important;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-tab-btn {
        flex-shrink: 0 !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    .responsive-split-grid-1-2,
    .responsive-split-grid-1-1 {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .responsive-split-grid-1-2>div:first-child {
        border-right: none !important;
        border-bottom: 1px dashed var(--border-color) !important;
        padding-right: 0 !important;
        padding-bottom: 16px !important;
    }

    /* Tables — scroll horizontal wajib aktif di HP */
    .table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px !important;
        margin-top: 14px !important;
        display: block !important;
        box-sizing: border-box !important;
        /* clip-path tidak digunakan agar scroll tidak terblokir */
    }

    /* Pastikan tabel di dalam wrapper tidak terpotong */
    .table-wrapper table,
    .table-wrapper .table,
    .table-responsive table {
        min-width: 680px !important; /* tabel tetap punya lebar minimum agar semua kolom muat dan bisa discroll */
        width: max-content !important;
    }

    .table th,
    .table td {
        padding: 10px 12px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    /* Modals & Learning Player */
    .modal {
        padding: 12px 10px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-box {
        width: 95vw !important;
        max-width: 520px !important;
        max-height: calc(88dvh - 16px) !important;
        max-height: calc(88vh - 16px) !important;
        padding: 16px 12px !important;
        border-radius: 18px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .modal-box.large {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: calc(90dvh - 16px) !important;
        max-height: calc(90vh - 16px) !important;
        padding: 16px 12px !important;
        border-radius: 18px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    #modalContentArea {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .modal-head {
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .modal-head h3 {
        font-size: 16.5px !important;
        word-break: break-word !important;
    }

    .player-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .player-layout > div {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .media-cards-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
    }

    .media-card-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        border: 1.5px solid #cbd5e1 !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    }

    .media-card-box.finished {
        border-color: #86efac !important;
        background: #f0fdf4 !important;
    }

    .media-card-title {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin-bottom: 4px !important;
        line-height: 1.4 !important;
    }

    .media-card-desc {
        font-size: 12px !important;
        color: #64748b !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    #activeModuleContent {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #activeModuleContent h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-top: 4px !important;
        margin-bottom: 12px !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    #activeModuleContent div,
    #activeModuleContent p,
    #activeModuleContent span {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    /* Responsive 16:9 Video Player */
    .player-layout iframe,
    #ytVideoPlayerIframe {
        width: 100% !important;
        height: 100% !important;
        border-radius: 8px !important;
    }

    div:has(> #ytVideoPlayerIframe),
    div[style*="height: 380px"] {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        max-height: 450px !important;
        min-height: 180px !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .module-sidebar {
        border-left: none !important;
        border-top: 1px solid var(--border-color) !important;
        padding-left: 0 !important;
        padding-top: 16px !important;
        max-height: 260px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .module-item {
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
    }

    .module-item-title {
        font-size: 13px !important;
    }

    .material-tabs {
        overflow-x: auto !important;
        white-space: nowrap !important;
        scrollbar-width: none;
        gap: 6px !important;
    }

    .material-tab-btn {
        padding: 6px 12px !important;
        font-size: 12.5px !important;
    }

    .pdf-reader-frame {
        height: 220px !important;
        padding: 14px !important;
        font-size: 13px !important;
    }

    #pdfScrollContainer {
        max-height: 48dvh !important;
        max-height: 48vh !important;
        border-radius: 12px !important;
    }

    #pdfScrollContainer iframe {
        height: 520px !important;
    }

    /* Digital ID Card */
    .card-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 14px auto 10px auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .id-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 16px !important;
        border-radius: 16px !important;
        min-height: auto !important;
    }

    .id-card-avatar {
        width: 62px !important;
        height: 62px !important;
        border-radius: 8px !important;
        font-size: 22px !important;
    }

    .id-card-details h4 {
        font-size: 15px !important;
    }

    .id-card-details p {
        font-size: 11.5px !important;
    }

    /* Verification & Certificate Preview */
    .verify-manual-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 10px !important;
    }

    .verify-manual-box > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .verify-result.show {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .certificate-frame {
        padding: 16px 10px !important;
        border-width: 4px !important;
        overflow-x: auto !important;
    }

    .certificate-frame h2 {
        font-size: 18px !important;
    }

    .cert-page {
        padding: 14px 10px !important;
        border-width: 2px !important;
        border-radius: 8px !important;
    }

    .cert-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .cert-header-left,
    .cert-header-right {
        width: auto !important;
        max-width: 80px !important;
        min-width: 32px !important;
    }

    .cert-header-left img,
    .cert-header-right img {
        max-height: 38px !important;
        max-width: 44px !important;
    }

    .cert-header-center {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0 4px !important;
    }

    .cert-inst-title {
        font-size: 11px !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }

    .cert-title-heading {
        font-size: 20px !important;
    }

    .cert-recipient-name {
        font-size: 22px !important;
        padding: 0 12px 2px 12px !important;
        min-width: 80% !important;
    }

    .cert-table {
        font-size: 11px !important;
        margin: 12px 0 !important;
    }

    .cert-table th,
    .cert-table td {
        padding: 6px 8px !important;
    }

    .cert-signature-section {
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
        text-align: center !important;
    }

    .cert-signature-box {
        min-width: auto !important;
        width: 100% !important;
    }
}

/* ─── Extra Small Mobile Screens (max-width: 480px) ───────────────── */
@media (max-width: 480px) {
    .brand {
        font-size: 17px !important;
    }

    .header-actions .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .btn {
        font-size: 13.5px !important;
        padding: 9px 16px !important;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .stat-item h2 {
        font-size: 20px !important;
    }

    .stat-item p {
        font-size: 11px !important;
    }

    .banner-dark h1,
    .banner-blue h1 {
        font-size: 19px !important;
    }

    .role-card h3,
    .course-card h3 {
        font-size: 16px !important;
    }

    .option-item {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* ─── Universal Table Responsive Rounded Corners & Scroll Fix ─── */
/* ─── Universal Table Responsive Rounded Corners & Clean No-Scrollbar Look ─── */
.table-wrapper,
.table-responsive,
.table-container {
    border-radius: 16px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    border: 1.5px solid var(--border-color) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    background: #ffffff !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.table-wrapper::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.table-wrapper table,
.table-responsive table,
.table-wrapper .table {
    width: 100% !important;
    min-width: 860px !important;       /* Wajib min-width 860px agar memicu horizontal scroll saat layar sempit */
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    display: table !important;
}

.table-wrapper th,
.table-responsive th {
    background: #f8fafc !important;
    color: var(--dark-navy) !important;
    font-weight: 700 !important;
    border-bottom: 1.5px solid var(--border-color) !important;
    white-space: nowrap !important;
    padding: 12px 16px !important;
}

.table-wrapper td,
.table-responsive td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    white-space: nowrap !important;
}

.table-wrapper tr:last-child td,
.table-responsive tr:last-child td {
    border-bottom: none !important;
}

.table-wrapper th:first-child,
.table-responsive th:first-child {
    border-top-left-radius: 15px !important;
}

.table-wrapper th:last-child,
.table-responsive th:last-child {
    border-top-right-radius: 15px !important;
}

.table-wrapper tr:last-child td:first-child,
.table-responsive tr:last-child td:first-child {
    border-bottom-left-radius: 15px !important;
}

.table-wrapper tr:last-child td:last-child,
.table-responsive tr:last-child td:last-child {
    border-bottom-right-radius: 15px !important;
}

/* ─── Admin Cert Settings Split-Grid & Live Preview Responsive Wrapper ─── */
.responsive-split-grid-1-1 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.responsive-split-grid-1-1 > * {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#adminTabCertSettings {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#adminCertSettingsForm {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#adminCertSettingsForm .field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

#adminCertSettingsForm input,
#adminCertSettingsForm select,
#adminCertSettingsForm textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* ─── Universal Admin Certificate Live Preview System (Laptop & Mobile) ─── */
.cert-preview-responsive-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    border-radius: 16px !important;
    border: 1.5px solid var(--border-color) !important;
    background: #f8fafc !important;
    padding: 12px 10px !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
    text-align: center !important;
    transition: height 0.2s ease, min-height 0.2s ease !important;
}

/* ── Mobile HP & Laptop: transform-origin dan margin dikontrol penuh oleh JS ── */
@media (max-width: 768px) {
    .cert-preview-responsive-wrapper {
        overflow: hidden !important;
        padding: 12px 8px !important;
    }
}

#adminCertPreviewBox {
    width: 720px !important;
    min-width: 720px !important;
    max-width: 720px !important;
    transform-origin: top left;  /* dikontrol oleh JS scaleCertPreviewToFit */
    display: block !important;
    margin: 0;                   /* dikontrol oleh JS scaleCertPreviewToFit */
    box-sizing: border-box !important;
}

#adminCertPreviewBox .cert-page {
    width: 720px !important;
    min-width: 720px !important;
    max-width: 720px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 22px 28px !important;
    background: #ffffff !important;
    border: 4px double #2563eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Desktop/Tablet: grid 2 kolom menjadi 1 kolom vertikal */
@media (max-width: 991px) {
    .responsive-split-grid-1-1 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
}

/* ─── Mobile: form pengaturan sertifikat & pratinjau live ─── */
@media (max-width: 768px) {
    #adminTabCertSettings {
        padding: 16px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #adminCertSettingsForm {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #adminCertSettingsForm input,
    #adminCertSettingsForm select,
    #adminCertSettingsForm textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        font-size: 13.5px !important;
    }

    #adminCertSettingsForm .field {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    /* Tombol Simpan Pengaturan Sertifikat */
    #adminCertSettingsForm .btn {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .cert-preview-panel {
        padding: 12px 10px !important;
    }

    .cert-preview-responsive-wrapper {
        padding: 8px 4px !important;
        background: #f8fafc !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
        border: 1.5px solid #cbd5e1 !important;
        display: block !important;
        text-align: center !important;
    }

    #adminCertPreviewBox {
        width: 720px !important;
        min-width: 720px !important;
        max-width: 720px !important;
        transform-origin: top left; /* dikontrol JS */
        display: block !important;
        margin: 0;                  /* dikontrol JS */
        box-sizing: border-box !important;
    }

    #adminCertPreviewBox .cert-page {
        width: 720px !important;
        min-width: 720px !important;
        max-width: 720px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        padding: 22px 28px !important;
    }

    #adminCertPreviewBox table {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        table-layout: fixed !important;
        word-break: break-word !important;
    }

    #adminCertPreviewBox table th,
    #adminCertPreviewBox table td {
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
        padding: 4px 6px !important;
    }

    /* Tombol navigasi halaman 1/2 */
    #adminTabCertSettings [style*="display:flex"] > button {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
}

/* ============================================================ */
/* UNIVERSAL INTERACTIVE BUTTON LOADING SPINNER SYSTEM          */
/* ============================================================ */
@keyframes btnSpinAnim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    display: inline-block !important;
    animation: btnSpinAnim 0.75s linear infinite !important;
}

.btn-spinner {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2.5px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50% !important;
    border-top-color: #ffffff !important;
    animation: btnSpinAnim 0.65s linear infinite !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

.btn.white .btn-spinner,
.btn.secondary .btn-spinner {
    border-color: rgba(37, 99, 235, 0.25) !important;
    border-top-color: var(--primary) !important;
}

.btn.is-loading,
.btn.loading {
    opacity: 0.85 !important;
    pointer-events: none !important;
    cursor: wait !important;
    transition: all 0.2s ease !important;
}

@keyframes errorShakeAnim {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-7px); }
    30%, 60%, 90% { transform: translateX(7px); }
}

.notice.error-shake,
.form-grid.error-shake,
.form-shake {
    animation: errorShakeAnim 0.42s ease-in-out !important;
}

.input-error-shake {
    animation: errorShakeAnim 0.42s ease-in-out !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.28) !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.photo-box-shake {
    animation: errorShakeAnim 0.42s ease-in-out !important;
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.28) !important;
}

/* ============================================================ */
/* UNIVERSAL TOP PROGRESS BAR LOADER                            */
/* ============================================================ */
#globalTopLoader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #6366f1, #10b981) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8) !important;
    z-index: 999999999 !important;
    opacity: 0 !important;
    transition: width 0.3s ease, opacity 0.3s ease !important;
    pointer-events: none !important;
}

#globalTopLoader.active {
    opacity: 1 !important;
    width: 82% !important;
    transition: width 0.7s cubic-bezier(0.1, 0.85, 0.25, 1) !important;
}

#globalTopLoader.done {
    width: 100% !important;
    opacity: 0 !important;
    transition: width 0.2s ease, opacity 0.35s ease 0.2s !important;
}

/* ============================================================ */
/* PASSWORD VISIBILITY TOGGLE (SHOW / HIDE EYE BUTTON)          */
/* ============================================================ */
.password-wrapper {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.password-wrapper input {
    width: 100% !important;
    padding-right: 46px !important;
    box-sizing: border-box !important;
}

.btn-toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    font-size: 16px !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.btn-toggle-password:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.09) !important;
}

.btn-toggle-password:active {
    transform: translateY(-50%) scale(0.9) !important;
}

/* ============================================================ */
/* REMOVE ALL BROWSER SCROLLBAR ARROWS & HORIZONTAL SLIDERS     */
/* ============================================================ */
::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.admin-tabs,
.nav-tutor,
.nav-btn-tutor,
.admin-tab-content,
.material-tabs,
.course-filters,
.category-nav-bar,
.partners-banner,
.table-wrapper,
.table-responsive,
.table-container {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.admin-tabs::-webkit-scrollbar,
.nav-tutor::-webkit-scrollbar,
.admin-tab-content::-webkit-scrollbar,
.material-tabs::-webkit-scrollbar,
.course-filters::-webkit-scrollbar,
.category-nav-bar::-webkit-scrollbar,
.partners-banner::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}