/* ===== VARIABLES ===== */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0d1f3c;
  --primary-light: #2d5aa0;
  --secondary: #c9a84c;
  --secondary-light: #e8c96a;
  --accent: #e8f0fe;
  --success: #2e7d32;
  --success-light: #e8f5e9;
  --error: #c62828;
  --error-light: #ffebee;
  --warning: #e65100;
  --warning-light: #fff3e0;
  --text: #1a1a2e;
  --text-muted: #5c6780;
  --border: #dde3ed;
  --light: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26, 58, 107, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 58, 107, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --sidebar-width: 280px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--light); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.d-none { display: none !important; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.fw-bold { font-weight: 700; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 1rem; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-primary {
  background: var(--secondary); color: var(--primary-dark); border-color: var(--secondary);
}
.btn-primary:hover { background: var(--secondary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }
.btn-outline {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-solid {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.btn-solid:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-success {
  background: var(--success); color: var(--white); border-color: var(--success);
}
.btn-success:hover { background: #1b5e20; transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 31, 60, 0.97); backdrop-filter: blur(10px);
  padding: 0 24px; height: 70px; display: flex; align-items: center;
  justify-content: space-between; box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 40px; height: 40px; background: var(--secondary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.nav-title { color: var(--white); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.nav-title span { color: var(--secondary); }
.nav-title small { display: block; font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,0.6); letter-spacing: 1px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); padding: 8px 16px; border-radius: 8px;
  font-size: 0.9rem; transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-links .btn { font-size: 0.9rem; padding: 9px 22px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e3f8c 100%);
  display: flex; align-items: center; padding-top: 70px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4); color: var(--secondary); padding: 8px 16px;
  border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; letter-spacing: 0.5px;
}
.hero-text h1 { color: var(--white); margin-bottom: 24px; }
.hero-text h1 em { color: var(--secondary); font-style: normal; }
.hero-text p { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--secondary); }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.hero-card {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg);
  padding: 40px; color: var(--white);
}
.hero-card h3 { margin-bottom: 24px; color: var(--secondary); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.access-options { display: flex; flex-direction: column; gap: 16px; }
.access-option {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 20px; display: flex; align-items: center;
  gap: 16px; transition: var(--transition); cursor: pointer;
}
.access-option:hover { background: rgba(255,255,255,0.13); border-color: var(--secondary); transform: translateX(4px); }
.access-icon { font-size: 2rem; width: 56px; height: 56px; background: rgba(201,168,76,0.2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.access-info h4 { margin-bottom: 4px; font-size: 1rem; }
.access-info p { font-size: 0.85rem; opacity: 0.7; margin: 0; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: var(--accent); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.section-header h2 { color: var(--primary); margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { color: var(--primary); margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== MODULES ===== */
.modules-bg { background: var(--primary-dark); }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.module-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px; transition: var(--transition); cursor: pointer;
  color: var(--white);
}
.module-card:hover { background: rgba(255,255,255,0.1); border-color: var(--secondary); transform: translateY(-4px); }
.module-number { font-size: 0.75rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.module-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.module-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 20px; }
.module-meta { display: flex; gap: 16px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.module-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--light); border-radius: 0 0 var(--radius) var(--radius); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.form-label span { color: var(--error); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition);
  background: var(--white); color: var(--text); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,107,0.1); }
.form-control.error { border-color: var(--error); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px;
}
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #a5d6a7; }
.alert-error { background: var(--error-light); color: var(--error); border: 1px solid #ef9a9a; }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #ffcc80; }
.alert-info { background: var(--accent); color: var(--primary); border: 1px solid #90caf9; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: var(--accent); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-secondary { background: #fff8e1; color: #8B6914; }

/* ===== PROGRESS ===== */
.progress-bar { background: var(--border); border-radius: 50px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.5s ease; }

/* ===== TABS ===== */
.tabs { border-bottom: 2px solid var(--border); display: flex; gap: 4px; margin-bottom: 32px; }
.tab-btn {
  padding: 12px 24px; background: none; color: var(--text-muted); font-weight: 600;
  font-size: 0.95rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative; bottom: -2px; border: 2px solid transparent; border-bottom: none;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--primary); background: var(--accent); }
.tab-btn.active { color: var(--primary); border-color: var(--border); border-bottom: 2px solid var(--white); background: var(--white); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== ACCESS PAGE ===== */
.access-page {
  min-height: 100vh; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex; align-items: center; justify-content: center; padding: 80px 24px 40px;
}
.access-container { width: 100%; max-width: 540px; }
.access-logo { text-align: center; margin-bottom: 32px; }
.access-logo-icon { width: 64px; height: 64px; background: var(--secondary); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 12px; }
.access-logo h2 { color: var(--white); font-size: 1.4rem; }
.access-logo p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.access-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.access-tabs { display: flex; background: var(--light); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 32px; }
.access-tab {
  flex: 1; padding: 10px 16px; border-radius: 6px; font-weight: 600;
  font-size: 0.875rem; text-align: center; transition: var(--transition);
  background: none; color: var(--text-muted);
}
.access-tab.active { background: var(--white); color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.access-divider { text-align: center; margin: 20px 0; position: relative; }
.access-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.access-divider span { background: var(--white); padding: 0 12px; position: relative; color: var(--text-muted); font-size: 0.85rem; }

/* ===== PLATFORM LAYOUT ===== */
.platform { display: flex; min-height: 100vh; padding-top: 0; }
.platform-sidebar {
  width: var(--sidebar-width); background: var(--primary-dark); position: fixed;
  top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; color: var(--white); margin-bottom: 20px; }
.sidebar-brand-icon { width: 36px; height: 36px; background: var(--secondary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.sidebar-brand span { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.user-info { background: rgba(255,255,255,0.07); border-radius: var(--radius-sm); padding: 12px; }
.user-avatar { width: 40px; height: 40px; background: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary-dark); flex-shrink: 0; }
.user-name { color: var(--white); font-weight: 600; font-size: 0.9rem; }
.user-type { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section { margin-bottom: 24px; }
.nav-section-title { color: rgba(255,255,255,0.35); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; padding: 0 12px; margin-bottom: 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: rgba(255,255,255,0.65); font-size: 0.9rem;
  transition: var(--transition); margin-bottom: 2px; cursor: pointer;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-link.active { background: var(--secondary); color: var(--primary-dark); font-weight: 600; }
.sidebar-link .link-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.sidebar-link .badge { margin-left: auto; font-size: 0.7rem; padding: 2px 8px; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.platform-main { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; background: var(--light); }
.platform-topbar {
  background: var(--white); border-bottom: 1px solid var(--border); padding: 0 32px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.platform-content { padding: 32px; }

/* ===== DASHBOARD ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-icon.blue { background: var(--accent); }
.stat-icon.gold { background: #fff8e1; }
.stat-icon.green { background: var(--success-light); }
.stat-icon.orange { background: var(--warning-light); }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

/* ===== MODULE LIST ===== */
.module-list-item {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition);
}
.module-list-item:last-child { border-bottom: none; }
.module-list-item:hover { background: var(--light); }
.module-num { width: 44px; height: 44px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.module-num.done { background: var(--success-light); color: var(--success); }
.module-num.locked { background: var(--border); color: var(--text-muted); }
.module-info { flex: 1; }
.module-info h4 { margin-bottom: 4px; color: var(--text); }
.module-info p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.module-status { display: flex; align-items: center; gap: 8px; }

/* ===== COURSE CONTENT ===== */
.course-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 40px; color: var(--white); border-radius: var(--radius) var(--radius) 0 0;
}
.course-header .breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.course-header h2 { margin-bottom: 12px; }
.course-header p { color: rgba(255,255,255,0.75); margin: 0; }
.course-meta-bar {
  background: var(--white); padding: 16px 24px; display: flex;
  gap: 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.course-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.course-body { display: grid; grid-template-columns: 1fr 300px; min-height: 500px; }
.course-text { padding: 32px; border-right: 1px solid var(--border); }
.course-text h3 { color: var(--primary); margin-bottom: 16px; margin-top: 28px; font-size: 1.2rem; }
.course-text h3:first-child { margin-top: 0; }
.course-text p { color: var(--text); font-size: 0.95rem; line-height: 1.8; }
.course-text ul, .course-text ol { padding-left: 24px; margin-bottom: 16px; }
.course-text li { color: var(--text); font-size: 0.95rem; margin-bottom: 8px; line-height: 1.6; }
.course-text ul li { list-style: disc; }
.course-text ol li { list-style: decimal; }
.law-box {
  background: var(--accent); border-left: 4px solid var(--primary); padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0;
}
.law-box strong { color: var(--primary); display: block; margin-bottom: 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.law-box p { font-size: 0.9rem; margin: 0; color: var(--text); }
.tip-box {
  background: #fff8e1; border-left: 4px solid var(--secondary); padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0;
}
.tip-box strong { color: #8B6914; display: block; margin-bottom: 6px; font-size: 0.85rem; }
.warning-box {
  background: var(--error-light); border-left: 4px solid var(--error); padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0;
}
.warning-box strong { color: var(--error); display: block; margin-bottom: 6px; font-size: 0.85rem; }
.course-sidebar-panel { padding: 24px; background: var(--light); }
.toc-title { font-weight: 700; color: var(--primary); margin-bottom: 16px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.toc-list { list-style: none; }
.toc-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); color: var(--text-muted); font-size: 0.875rem; }
.toc-item:hover { background: var(--white); color: var(--primary); }
.toc-item.active { background: var(--accent); color: var(--primary); font-weight: 600; }
.toc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.toc-item.active .toc-dot { background: var(--primary); }
.course-nav-bar { padding: 20px 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--white); }

/* ===== QUIZ ===== */
.quiz-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 32px; border-radius: var(--radius) var(--radius) 0 0; }
.quiz-progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.question-number { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.quiz-timer { background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; }
.quiz-progress-bar { background: rgba(255,255,255,0.2); border-radius: 50px; height: 6px; }
.quiz-progress-fill { height: 100%; border-radius: 50px; background: var(--secondary); transition: width 0.3s ease; }
.question-text { font-size: 1.1rem; font-weight: 600; margin-top: 20px; }
.quiz-body { padding: 32px; }
.options-list { display: flex; flex-direction: column; gap: 12px; }
.option-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px;
  border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); background: var(--white);
}
.option-item:hover { border-color: var(--primary); background: var(--accent); }
.option-item.selected { border-color: var(--primary); background: var(--accent); }
.option-item.correct { border-color: var(--success); background: var(--success-light); }
.option-item.incorrect { border-color: var(--error); background: var(--error-light); }
.option-letter {
  width: 32px; height: 32px; border-radius: 50%; background: var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 0.85rem; flex-shrink: 0; transition: var(--transition);
}
.option-item.selected .option-letter { background: var(--primary); color: var(--white); }
.option-item.correct .option-letter { background: var(--success); color: var(--white); }
.option-item.incorrect .option-letter { background: var(--error); color: var(--white); }
.option-text { font-size: 0.95rem; line-height: 1.5; }
.option-explanation { margin-top: 8px; font-size: 0.85rem; color: var(--text-muted); font-style: italic; display: none; }
.option-item.correct .option-explanation, .option-item.incorrect .option-explanation { display: block; }
.quiz-footer { padding: 20px 32px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* ===== RESULTS ===== */
.results-card { text-align: center; padding: 48px; }
.results-score-circle {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 6px solid; font-size: 2.5rem; font-weight: 800;
}
.results-score-circle.pass { border-color: var(--success); color: var(--success); background: var(--success-light); }
.results-score-circle.fail { border-color: var(--error); color: var(--error); background: var(--error-light); }
.results-score-circle small { font-size: 0.75rem; font-weight: 400; }

/* ===== CERTIFICATE ===== */
.certificate-wrapper { max-width: 800px; margin: 0 auto; }
.certificate {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.cert-border {
  position: absolute; inset: 12px; border: 3px solid var(--secondary);
  border-radius: calc(var(--radius) - 4px); pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.3);
}
.cert-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 40px; text-align: center; color: var(--white); }
.cert-logo { font-size: 2.5rem; margin-bottom: 8px; }
.cert-org { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--secondary); margin-bottom: 4px; }
.cert-title { font-size: 1.4rem; font-weight: 300; letter-spacing: 2px; }
.cert-body { padding: 48px; text-align: center; }
.cert-subtitle { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.cert-name { font-size: 2.2rem; font-weight: 800; color: var(--primary); border-bottom: 2px solid var(--secondary); padding-bottom: 12px; margin-bottom: 24px; }
.cert-course { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.cert-detail { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.cert-score-badge { display: inline-block; background: var(--success-light); color: var(--success); padding: 8px 24px; border-radius: 50px; font-weight: 700; font-size: 1rem; border: 1px solid #a5d6a7; margin-bottom: 32px; }
.cert-footer { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 0 32px; }
.cert-sig { text-align: center; }
.cert-sig-line { width: 160px; border-bottom: 2px solid var(--text); margin: 0 auto 8px; padding-bottom: 4px; font-style: italic; color: var(--text-muted); font-size: 0.9rem; }
.cert-sig-name { font-weight: 700; font-size: 0.85rem; color: var(--text); }
.cert-sig-role { font-size: 0.75rem; color: var(--text-muted); }
.cert-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand h3 { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 0.875rem; transition: var(--transition); }
.footer ul li a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 500px; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-body { grid-template-columns: 1fr; }
  .course-sidebar-panel { border-top: 1px solid var(--border); border-right: none; }
}
@media (max-width: 768px) {
  .platform-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .platform-sidebar.open { transform: translateX(0); }
  .platform-main { margin-left: 0; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 20px; }
  .modules-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cert-footer { flex-direction: column; gap: 24px; align-items: center; }
}
@media (max-width: 480px) {
  .platform-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .access-card { padding: 24px; }
  .hero-actions { flex-direction: column; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.animate-fade { animation: fadeIn 0.5s ease forwards; }
.animate-slide { animation: slideIn 0.4s ease forwards; }

/* ===== LOADER ===== */
.loader { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px; }
.loader-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 0.8s ease-in-out infinite; }
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); transform: scale(0.9); transition: var(--transition); }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }
.modal-close { background: var(--light); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--border); }

/* ===== ADMIN ===== */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--light); padding: 12px 16px; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:hover td { background: var(--light); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== PRINT ===== */
@media print {
  .navbar, .platform-sidebar, .platform-topbar, .cert-actions, .sidebar-footer { display: none !important; }
  .platform-main { margin-left: 0 !important; }
  .certificate { box-shadow: none; }
}
