/* ============================================
   E-Learning SMA Unggul BKN
   Main Stylesheet — Trailhead Inspired
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary:       #0070d2;
    --primary-dark:  #005fb2;
    --primary-light: #e8f4fd;
    --secondary:     #032d60;
    --accent:        #ffb800;
    --accent-dark:   #e6a600;
    --success:       #2eb82e;
    --danger:        #e44d26;
    --warning:       #f39c12;
    --info:          #17a2b8;
    --purple:        #6a0dad;

    --bg:            #f3f6fb;
    --bg-white:      #ffffff;
    --bg-card:       #ffffff;
    --border:        #e0e5ee;
    --border-light:  #f0f4fa;

    --text:          #181c2e;
    --text-secondary:#4a5568;
    --text-muted:    #8898aa;
    --text-white:    #ffffff;

    --nav-height:    64px;
    --radius:        12px;
    --radius-lg:     20px;
    --radius-sm:     8px;
    --shadow:        0 2px 16px rgba(0,112,210,0.10);
    --shadow-lg:     0 8px 40px rgba(0,112,210,0.16);
    --shadow-card:   0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,112,210,0.08);

    --transition:    0.2s ease;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 16px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 15px; font-weight: 800; color: var(--secondary); white-space: nowrap; }
.logo-sub  { font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.3px; white-space: nowrap; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Notification Bell */
.nav-notification { position: relative; }
.notif-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 15px;
    position: relative;
    transition: all var(--transition);
}
.notif-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}
.mark-all-read { font-size: 12px; color: var(--primary); font-weight: 400; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition);
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-light); }
.notif-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.notif-content .notif-title { font-size: 13px; font-weight: 600; }
.notif-content .notif-msg   { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notif-content .notif-time  { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-empty { padding: 32px; text-align: center; color: var(--text-muted); font-size: 14px; }
.notif-loading { padding: 24px; text-align: center; color: var(--text-muted); }

/* User Menu */
.nav-user { position: relative; }
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: all var(--transition);
}
.user-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-btn .fa-chevron-down { font-size: 10px; color: var(--text-muted); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: var(--bg);
}
.dropdown-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.dropdown-name  { font-size: 14px; font-weight: 700; }
.dropdown-rank  { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text);
    transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-item i { width: 16px; color: var(--text-muted); }
.dropdown-item.text-danger { color: var(--danger) !important; }
.dropdown-item.text-danger i { color: var(--danger); }

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    right: 20px;
    z-index: 999;
    min-width: 300px;
    max-width: 420px;
}
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.flash-close   { margin-left: auto; background: none; border: none; font-size: 18px; cursor: pointer; opacity: 0.6; }
.flash-close:hover { opacity: 1; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}
.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,112,210,0.35);
}
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}
.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}
.btn-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}
.btn-success:hover { background: #27a327; border-color: #27a327; color: #fff; transform: translateY(-1px); }
.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-light   { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-light:hover { background: var(--border); }
.btn-ghost   { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ============================================
   FORMS
   ============================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-white);
    transition: all var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,112,210,0.12);
}
.form-control.error { border-color: var(--danger); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrap > i:first-child {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.input-icon-wrap .form-control { padding-left: 38px; }
.toggle-password {
    position: absolute;
    right: 10px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition);
    z-index: 1;
}
.toggle-password:hover { color: var(--primary); }

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -8px;
    margin-bottom: 12px;
}
.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}
.strength-label { font-size: 12px; font-weight: 600; min-width: 80px; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert ul { margin: 4px 0 0 16px; list-style: disc; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page { background: var(--bg); min-height: 100vh; }
.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.auth-left {
    background: linear-gradient(150deg, var(--secondary) 0%, var(--primary) 60%, #00b4d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -100px; right: -100px;
}
.auth-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -80px; left: -60px;
}
.auth-left-content { position: relative; z-index: 1; max-width: 400px; }
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 40px;
    text-decoration: none;
}
.auth-logo i {
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.auth-left-content h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.auth-left-content p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 32px;
}
.auth-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}
.auth-stat .stat-num  { display: block; font-size: 24px; font-weight: 800; }
.auth-stat .stat-label { font-size: 12px; opacity: 0.7; }
.auth-badges-preview {
    display: flex;
    gap: 12px;
    font-size: 28px;
}
.auth-perks { display: flex; flex-direction: column; gap: 12px; }
.perk-item { display: flex; align-items: center; gap: 12px; font-size: 14px; opacity: 0.92; }
.perk-item i { color: var(--accent); font-size: 16px; flex-shrink: 0; }

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow-y: auto;
}
.auth-card {
    width: 100%;
    max-width: 440px;
}
.auth-card-header { margin-bottom: 28px; }
.auth-card-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card-header p  { font-size: 14px; color: var(--text-secondary); }
.auth-card-header a  { color: var(--primary); font-weight: 600; }

.auth-demo { margin-top: 28px; text-align: center; }
.demo-label { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; position: relative; }
.demo-accounts { display: flex; gap: 10px; justify-content: center; }
.demo-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    display: flex; align-items: center; gap: 6px;
    transition: all var(--transition);
}
.demo-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page-wrapper { padding-top: var(--nav-height); min-height: 100vh; }
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

.page-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff;
    padding: 56px 0 48px;
}
.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.page-hero p  { font-size: 16px; opacity: 0.85; max-width: 560px; }
.page-content { padding: 40px 0 80px; }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body   { padding: 20px; }
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 15px;
}
.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

/* Trail Card */
.trail-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.trail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trail-card-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
}
.trail-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}
.trail-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.trail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.trail-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
}
.trail-kelas {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.trail-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
}
.trail-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.6;
}
.trail-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.trail-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.trail-info-item i { font-size: 11px; }
.trail-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}
.trail-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Difficulty Badge */
.badge-difficulty {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.badge-difficulty.Mudah  { background: #d4edda; color: #155724; }
.badge-difficulty.Sedang { background: #fff3cd; color: #856404; }
.badge-difficulty.Sulit  { background: #f8d7da; color: #721c24; }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-page { padding-top: var(--nav-height); }
.dashboard-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #0a4a8a 50%, var(--primary) 100%);
    padding: 40px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.dashboard-header::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -200px; right: -100px;
}
.dashboard-welcome { position: relative; }
.dashboard-welcome h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.dashboard-welcome p  { font-size: 14px; opacity: 0.8; }

.dashboard-rank-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    backdrop-filter: blur(10px);
    margin-top: 24px;
}
.rank-info { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.rank-icon-big { font-size: 40px; }
.rank-label { font-size: 12px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
.rank-name  { font-size: 22px; font-weight: 800; }
.rank-points { font-size: 13px; opacity: 0.8; }
.rank-progress-wrap { }
.rank-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}
.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #fff);
    border-radius: 4px;
    transition: width 1s ease;
}
.rank-progress-label { display: flex; justify-content: space-between; font-size: 12px; opacity: 0.7; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-icon.blue   { background: var(--primary-light); color: var(--primary); }
.stat-icon.green  { background: #e8f5e9; color: var(--success); }
.stat-icon.yellow { background: #fff8e1; color: var(--accent); }
.stat-icon.purple { background: #f3e5f5; color: var(--purple); }
.stat-icon.orange { background: #fff3e0; color: var(--warning); }
.stat-info .stat-value { font-size: 22px; font-weight: 800; line-height: 1.2; }
.stat-info .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Section title */
.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title .title-icon {
    width: 32px; height: 32px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 14px;
}
.section-title a { font-size: 13px; font-weight: 500; margin-left: auto; }

/* Trails Grid */
.trails-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================================
   MODULE VIEWER
   ============================================ */
.module-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: calc(100vh - var(--nav-height));
}
.module-sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    padding: 24px 0;
}
.sidebar-trail-info {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.sidebar-trail-info h3 { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.trail-overall-progress { display: flex; align-items: center; gap: 10px; }
.trail-overall-progress .progress-bar {
    flex: 1; height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.trail-overall-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
}
.trail-overall-progress span { font-size: 12px; color: var(--text-muted); }

.sidebar-modules { padding: 0 12px; }
.sidebar-module-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition);
    margin-bottom: 2px;
}
.sidebar-module-item:hover   { background: var(--bg); }
.sidebar-module-item.active  { background: var(--primary-light); color: var(--primary); }
.sidebar-module-item.done    { color: var(--success); }
.module-status-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.module-status-icon.done    { background: var(--success); border-color: var(--success); color: #fff; }
.module-status-icon.active  { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.sidebar-module-item .module-num { font-size: 11px; }
.sidebar-module-item .module-title { font-size: 13px; font-weight: 500; line-height: 1.3; }

.module-content-area { padding: 40px; max-width: 860px; }
.module-content-area h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.module-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.module-meta span { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

.module-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--secondary); }
.module-body h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.module-body p  { margin-bottom: 14px; color: var(--text-secondary); line-height: 1.8; }
.module-body ul, .module-body ol { margin: 10px 0 14px 20px; color: var(--text-secondary); line-height: 1.8; }
.module-body li { margin-bottom: 4px; }
.module-body strong { color: var(--text); }

.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 14px;
    color: var(--primary-dark);
}
.example-box {
    background: #f0fff4;
    border-left: 4px solid var(--success);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 14px;
    color: #1a5e1a;
}

.module-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================
   QUIZ
   ============================================ */
.quiz-container { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.quiz-header { margin-bottom: 32px; }
.quiz-progress {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.4s ease;
}
.quiz-counter { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; }

.question-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}
.question-num {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
}
.question-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--text);
}
.answer-options { display: flex; flex-direction: column; gap: 12px; }
.answer-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-white);
}
.answer-option:hover { border-color: var(--primary); background: var(--primary-light); }
.answer-option.selected { border-color: var(--primary); background: var(--primary-light); }
.answer-option.correct  { border-color: var(--success); background: #d4edda; }
.answer-option.wrong    { border-color: var(--danger);  background: #f8d7da; }
.option-letter {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: all var(--transition);
}
.answer-option.selected .option-letter { background: var(--primary); border-color: var(--primary); color: #fff; }
.answer-option.correct  .option-letter { background: var(--success); border-color: var(--success); color: #fff; }
.answer-option.wrong    .option-letter { background: var(--danger);  border-color: var(--danger);  color: #fff; }
.option-text { font-size: 14px; line-height: 1.5; }

.quiz-explanation {
    padding: 14px 18px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #2e7d32;
    margin-top: 16px;
    display: none;
}
.quiz-explanation.show { display: block; }
.quiz-explanation.wrong { background: #fce4ec; border-color: #f8bbd9; color: #880e4f; }

/* Quiz Result */
.quiz-result {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.result-icon { font-size: 72px; margin-bottom: 16px; }
.result-score { font-size: 56px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.result-label { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.result-passed { color: var(--success); }
.result-failed { color: var(--danger);  }
.result-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; }
.result-stat .val  { font-size: 24px; font-weight: 800; }
.result-stat .lbl  { font-size: 12px; color: var(--text-muted); }

/* ============================================
   BADGES PAGE
   ============================================ */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.badge-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform var(--transition);
    position: relative;
    overflow: hidden;
}
.badge-card.earned { border-color: var(--accent); }
.badge-card.earned::before {
    content: '✓';
    position: absolute;
    top: 8px; right: 8px;
    width: 20px; height: 20px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    line-height: 20px;
}
.badge-card.locked { opacity: 0.5; }
.badge-card:hover { transform: translateY(-3px); }
.badge-icon { font-size: 44px; margin-bottom: 12px; }
.badge-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.badge-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    background: var(--bg);
}
.leaderboard-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.leaderboard-table tr:hover td { background: var(--bg); }
.leaderboard-table tr.me td { background: var(--primary-light); }
.rank-num {
    font-size: 16px;
    font-weight: 800;
    width: 40px;
    text-align: center;
}
.rank-num.gold   { color: #FFB800; }
.rank-num.silver { color: #9e9e9e; }
.rank-num.bronze { color: #cd7f32; }
.leaderboard-user { display: flex; align-items: center; gap: 12px; }
.leaderboard-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.leaderboard-name  { font-weight: 600; }
.leaderboard-kelas { font-size: 12px; color: var(--text-muted); }
.points-pill {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
}

/* ============================================
   PROFILE & CERTIFICATE
   ============================================ */
.profile-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 48px 0 80px;
    color: #fff;
}
.profile-avatar-wrap { position: relative; display: inline-block; }
.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.profile-body { margin-top: -48px; }
.profile-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

/* Certificate */
.certificate {
    background: #fff;
    border: 8px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.certificate::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 2px solid var(--accent);
    border-radius: calc(var(--radius-lg) - 4px);
    pointer-events: none;
}
.certificate-logo { font-size: 48px; color: var(--primary); margin-bottom: 16px; }
.certificate h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); }
.certificate h1 { font-size: 38px; font-weight: 900; color: var(--secondary); margin: 16px 0 8px; }
.certificate .recipient { font-size: 28px; font-weight: 800; color: var(--primary); margin: 20px 0 8px; }
.certificate .trail-name { font-size: 20px; font-weight: 700; color: var(--text); }
.certificate .cert-date { font-size: 13px; color: var(--text-muted); margin-top: 24px; }

/* ============================================
   ADMIN / TEACHER PANELS
   ============================================ */
.panel-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - var(--nav-height));
}
.panel-sidebar {
    background: var(--secondary);
    color: #fff;
    padding: 24px 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}
.panel-sidebar-title {
    padding: 0 20px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}
.panel-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.panel-nav-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.panel-nav-item.active { color: #fff; background: rgba(255,255,255,0.12); border-left-color: var(--accent); }
.panel-nav-item i { width: 18px; font-size: 15px; }

.panel-main { padding: 32px; overflow-x: hidden; }
.panel-header { margin-bottom: 28px; }
.panel-header h1 { font-size: 22px; font-weight: 800; }
.panel-header p  { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}
.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg); }

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.badge-status.published  { background: #d4edda; color: #155724; }
.badge-status.draft      { background: #fff3cd; color: #856404; }
.badge-status.active     { background: #d4edda; color: #155724; }
.badge-status.inactive   { background: #f8d7da; color: #721c24; }

/* Action Buttons in Table */
.action-btns { display: flex; gap: 6px; }

/* ============================================
   HOMEPAGE
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #0a3a6e 40%, var(--primary) 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,255,0.15), transparent);
    top: -200px; right: -200px;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,184,0,0.10), transparent);
    bottom: -100px; left: -100px;
}
.hero-content { position: relative; z-index: 1; color: #fff; max-width: 620px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}
.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .num  { font-size: 28px; font-weight: 900; display: block; }
.hero-stat .lbl  { font-size: 13px; opacity: 0.7; }

.hero-visual {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    z-index: 1;
}
.hero-cards { position: relative; }
.floating-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 18px 22px;
    backdrop-filter: blur(12px);
    color: #fff;
    animation: float 3s ease-in-out infinite;
    margin: 12px 0;
}
.floating-card:nth-child(2) { animation-delay: 0.5s; margin-left: 40px; }
.floating-card:nth-child(3) { animation-delay: 1s; }
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.floating-card .card-label { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
.floating-card .card-value { font-size: 18px; font-weight: 800; margin-top: 4px; }
.floating-card .card-icon  { font-size: 24px; margin-bottom: 8px; }

/* Features Section */
.features-section { padding: 96px 0; background: var(--bg-white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-header h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; color: var(--secondary); }
.section-header p  { font-size: 16px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Trail Preview Section */
.trails-preview-section { padding: 80px 0; background: var(--bg); }

/* How It Works */
.how-section { padding: 80px 0; background: var(--bg-white); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 0;
}
.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0,112,210,0.35);
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    text-align: center;
    color: #fff;
}
.cta-section h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; }
.cta-section p  { font-size: 16px; opacity: 0.85; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
}
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}
.footer-logo i { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-links h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-white   { color: #fff; }
.fw-bold      { font-weight: 700; }
.fw-800       { font-weight: 800; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }  .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.d-flex   { display: flex; }
.gap-2    { gap: 8px; }  .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hide { display: none !important; }

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    color: var(--text-muted);
}
.empty-state i   { font-size: 56px; opacity: 0.3; margin-bottom: 16px; display: block; }
.empty-state h3  { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p   { font-size: 14px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .trails-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid  { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .hero-visual { display: none; }
    .hero-content h1 { font-size: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .panel-layout { grid-template-columns: 1fr; }
    .panel-sidebar { position: static; height: auto; }
    .module-layout { grid-template-columns: 1fr; }
    .module-sidebar { position: static; height: auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg-white); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .trails-grid { grid-template-columns: 1fr; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 30px; }
    .hero-content p  { font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .user-name { display: none; }
    .container, .container-md, .container-sm { padding: 0 16px; }
    .module-content-area { padding: 20px; }
    .quiz-container { padding: 20px 16px; }
    .certificate { padding: 24px; }
    .certificate h1 { font-size: 26px; }
}

@media (max-width: 480px) {
    .stats-grid  { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats  { flex-direction: column; gap: 16px; }
    .result-stats { flex-direction: column; gap: 16px; }
    .leaderboard-table { font-size: 13px; }
    .leaderboard-table td, .leaderboard-table th { padding: 10px 10px; }
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
