@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fraunces:ital,wght@0,300;0,600;0,700;1,300;1,600&display=swap');

:root {
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --accent: #F5A623;
  --accent-light: #FFC848;
  --surface: #F8F6F1;
  --surface-2: #EEE9DF;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --success: #059669;
  --danger: #DC2626;
  --warning: #D97706;
  --info: #2563EB;
  --border: #E2DDD5;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  background: var(--primary);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
}

.navbar-brand .logo-w {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.navbar-brand span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.navbar-brand .africa {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-nav {
  background: var(--accent);
  color: var(--primary) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.2rem !important;
}

.btn-nav:hover { background: var(--accent-light) !important; }

/* ─── FLASH MESSAGES ─────────────────────────────── */
.flash-container { padding: 0.75rem 2rem 0; }
.alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--success); }
.alert-danger  { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--danger); }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--warning); }
.alert-info    { background: #DBEAFE; color: #1E40AF; border-left: 4px solid var(--info); }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,67,50,0.3); }

.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #B91C1C; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1.1rem 2.4rem; font-size: 1.1rem; border-radius: var(--radius-lg); }

/* ─── CARDS ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 1.4rem 1.6rem 0;
}

.card-body {
  padding: 1.4rem 1.6rem;
}

.card-footer {
  padding: 1rem 1.6rem 1.4rem;
  border-top: 1px solid var(--border);
}

/* ─── FORMS ──────────────────────────────────────── */
.form-group { margin-bottom: 1.3rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { cursor: pointer; }

/* ─── BADGES & TAGS ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-success { background: #D1FAE5; color: #065F46; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info    { background: #DBEAFE; color: #1E40AF; }
.badge-html    { background: #FFEDD5; color: #9A3412; }
.badge-css     { background: #EDE9FE; color: #5B21B6; }
.badge-js      { background: #FEF9C3; color: #713F12; }
.badge-nodejs  { background: #DCFCE7; color: #14532D; }
.badge-mongodb { background: #D1FAE5; color: #065F46; }

/* ─── LAYOUT ─────────────────────────────────────── */
.page-wrapper { display: flex; min-height: calc(100vh - 68px); }

.sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
  margin-top: 1.2rem;
}

.sidebar-title:first-child { margin-top: 0; }

.sidebar-nav { list-style: none; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s;
  margin-bottom: 2px;
}

.sidebar-nav a:hover { background: var(--surface); color: var(--primary); }
.sidebar-nav a.active { background: var(--primary); color: var(--white); }

.sidebar-nav a .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.main-content { flex: 1; padding: 2rem; min-width: 0; }

/* ─── PAGE HEADER ────────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── STAT CARDS ─────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.stat-icon.green  { background: #D1FAE5; }
.stat-icon.gold   { background: #FEF3C7; }
.stat-icon.blue   { background: #DBEAFE; }
.stat-icon.purple { background: #EDE9FE; }

.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1; font-family: 'Fraunces', serif; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* ─── TABLES ─────────────────────────────────────── */
.table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }

thead { background: var(--surface); }
thead th {
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 0.95rem 1.2rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }

/* ─── SUBJECT CARDS ──────────────────────────────── */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.subject-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.subject-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.subject-card.html { border-top-color: #F97316; }
.subject-card.css  { border-top-color: #8B5CF6; }
.subject-card.js   { border-top-color: #EAB308; }

.subject-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.resource-content-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.resource-content-body h1,
.resource-content-body h2,
.resource-content-body h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--primary);
}

.resource-content-body p { margin-bottom: 1rem; }

.resource-content-body code {
  background: var(--surface-2);
  color: var(--primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Courier New', monospace;
}

.resource-content-body pre {
  background: #1A1A2E;
  color: #E2E8F0;
  padding: 1.3rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1rem 0;
}

.resource-content-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
}

/* ─── QUIZ ───────────────────────────────────────── */
.quiz-question {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-light);
}

.quiz-question h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s;
  font-size: 0.9rem;
}

.quiz-option:hover { border-color: var(--primary-light); background: #F0FDF4; }
.quiz-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

/* ─── CERTIFICATE (template-matched design) ─────── */
.certificate-page {
  background: #EDEAE3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cert-frame {
  max-width: 980px;
  width: 100%;
  background: #FAF8F3;
  position: relative;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border-radius: 4px;
}

.cert-border-pattern {
  position: absolute;
  inset: 10px;
  border: 1px solid #C9C2B4;
  pointer-events: none;
}

.cert-inner-panel {
  position: relative;
  background: #FAF8F3;
  padding: 3rem 3.5rem;
  min-height: 560px;
}

.cert-ribbon {
  position: absolute;
  top: 0;
  left: 60px;
  width: 90px;
  height: 100%;
  background: linear-gradient(135deg, #8A5A2B 0%, #B8854A 50%, #5C3A18 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  z-index: 1;
}

.cert-seal {
  position: absolute;
  top: 60px;
  left: 60px;
  width: 130px;
  height: 130px;
  z-index: 2;
}

.cert-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cert-brand {
  flex: 1;
  text-align: center;
}

.cert-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: #1B3A6B;
}

.cert-title-main {
  font-family: 'Fraunces', serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: #1B3A6B;
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
}

.cert-title-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: #1B3A6B;
  margin-top: 0.2rem;
}

.cert-watermark {
  width: 90px;
  flex-shrink: 0;
}

.cert-body-text {
  margin-left: 200px;
  margin-top: 3rem;
}

.cert-certify-line {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1B3A6B;
  margin-bottom: 0.6rem;
}

.cert-name-line {
  border-bottom: 1px solid #1B3A6B;
  min-height: 2.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.3rem;
}

.cert-student-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.7rem;
  color: #1B3A6B;
}

.cert-completion-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: #1B3A6B;
  line-height: 1.7;
}

.cert-completion-text strong { font-weight: 700; }

.cert-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 3.5rem;
  margin-left: 200px;
}

.cert-sig-block { text-align: left; }
.cert-sig-img {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: #1B3A6B;
  border-bottom: 1px solid #1B3A6B;
  padding-bottom: 0.3rem;
  margin-bottom: 0.3rem;
  min-width: 180px;
}
.cert-sig-name { font-size: 0.78rem; font-weight: 700; color: #1B3A6B; letter-spacing: 0.03em; }
.cert-sig-title { font-size: 0.72rem; color: #555; letter-spacing: 0.05em; }

.cert-partner-logos {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.cert-partner-logos .gimg { height: 22px; }
.cert-partner-logos .wimg { height: 32px; }

.cert-id-footer {
  position: absolute;
  bottom: 14px;
  right: 30px;
  font-size: 0.68rem;
  color: #A8A29A;
  font-family: 'Courier New', monospace;
}

@media print {
  .no-print { display: none !important; }
  .certificate-page { background: white; padding: 0; }
  .cert-frame { box-shadow: none; }
}

@media (max-width: 768px) {
  .cert-inner-panel { padding: 2rem 1.2rem; }
  .cert-ribbon, .cert-seal { display: none; }
  .cert-body-text, .cert-bottom-row { margin-left: 0; }
  .cert-title-main { font-size: 2.2rem; }
}

/* ─── LANDING PAGE ───────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1B4332 60%, #0D2B1A 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45,106,79,0.5) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,166,35,0.15);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245,166,35,0.3);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.hero h1 em { color: var(--accent); font-style: normal; }

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.features-section {
  padding: 5rem 2rem;
  background: var(--surface);
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; color: var(--text); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ─── SUBSCRIPTION ───────────────────────────────── */
.subscribe-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--surface) 0%, #E8F5E9 100%);
}

.subscribe-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.price-tag {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
  margin: 1.2rem 0 0.25rem;
}

.price-tag sup { font-size: 1.5rem; vertical-align: super; }
.price-period { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.features-list { list-style: none; text-align: left; margin-bottom: 2rem; }
.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.features-list li:last-child { border-bottom: none; }
.features-list .check { color: var(--success); font-size: 1.1rem; }

/* ─── AUTH PAGES ─────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .auth-logo { font-size: 2.5rem; margin-bottom: 0.5rem; }
.auth-header h2 { font-size: 1.7rem; margin-bottom: 0.25rem; }
.auth-header p { color: var(--text-muted); font-size: 0.9rem; }

.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── PROGRESS BAR ───────────────────────────────── */
.progress-bar-wrap {
  background: var(--surface-2);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transition: width 0.6s ease;
}

/* ─── BADGE DISPLAY ──────────────────────────────── */
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-item {
  background: linear-gradient(135deg, #FEF9C3, #FEF3C7);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.3rem;
  text-align: center;
  min-width: 120px;
}

.badge-item .badge-emoji { font-size: 2.5rem; margin-bottom: 0.4rem; }
.badge-item .badge-name { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.badge-item .badge-date { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ─── RESULT CARD ────────────────────────────────── */
.result-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 3rem auto;
}

.result-score {
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin: 1rem 0;
}

.result-score.pass { color: var(--success); }
.result-score.fail { color: var(--danger); }
.result-score.pending { color: var(--primary); }

/* ─── CERTIFICATE GALLERY ────────────────────────── */
.cert-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-gallery-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.cert-gallery-card.earned:hover { transform: translateY(-4px); }

.cert-gallery-preview {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #FAF8F3, #EDEAE3);
}

.cert-gallery-preview .ribbon-mini {
  position: absolute;
  left: 24px;
  top: 0;
  width: 28px;
  height: 100%;
  background: linear-gradient(135deg, #8A5A2B, #B8854A, #5C3A18);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.cert-gallery-preview .seal-mini {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1B3A6B;
  border: 3px solid #D4AF6A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFE9B0;
  font-weight: 800;
  font-size: 0.65rem;
  margin-left: 50px;
}

.cert-gallery-preview.locked { filter: grayscale(1) opacity(0.5); }

.cert-gallery-body { padding: 1.2rem; text-align: center; }
.cert-gallery-subject { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cert-gallery-status { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.8rem; }

/* ─── NAME ENTRY FORM ────────────────────────────── */
.name-entry-card {
  max-width: 480px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { padding: 1.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { padding: 0 1rem; }
}

/* ─── UTILITY ────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.hidden { display: none; }

/* Adinkra-inspired decorative pattern */
.pattern-stripe {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--primary) 0px, var(--primary) 12px, var(--accent) 12px, var(--accent) 20px);
}
