/* ═══════════════════════════════════════════════════════════
   SOMOHURU LMS — Unified Stylesheet v3.0
   Brand: Orange #F47820 · Blue #1BACE4 · Green #3AAA35
   Fonts: Poppins (headings) · Nunito (body)
   Covers: Student Dashboard · Teacher Portal · All Views
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --sh-orange:      #F47820;
  --sh-orange-d:    #D4600A;
  --sh-orange-l:    #FFF0E3;
  --sh-blue:        #1BACE4;
  --sh-blue-d:      #0E86B8;
  --sh-blue-l:      #E3F6FD;
  --sh-green:       #3AAA35;
  --sh-green-l:     #E8F8E6;
  --sh-red:         #DC2626;
  --sh-red-l:       #FEE2E2;
  --sh-purple:      #7C3AED;
  --sh-purple-l:    #F3E8FF;
  --sh-yellow:      #F5C518;
  --sh-yellow-l:    #FFFBEB;
  --sh-pink:        #EC4899;
  --sh-white:       #FFFFFF;
  --sh-bg:          #F8FAFF;
  --sh-border:      #E2E8F0;
  --sh-text:        #1E293B;
  --sh-muted:       #64748B;
  --sh-dark:        #0A1628;
  --font-h:         'Poppins',  sans-serif;
  --font-b:         'Nunito',   sans-serif;
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-full: 9999px;
  --shadow-sm:  0 2px 8px rgba(10,22,40,.07);
  --shadow-md:  0 6px 24px rgba(10,22,40,.12);
  --shadow-lg:  0 16px 48px rgba(10,22,40,.16);
  --tx: all .2s ease;
}

/* ── BASE ──────────────────────────────────────────────── */
.sh-lms-wrap *, .sh-lms-wrap *::before, .sh-lms-wrap *::after { box-sizing: border-box; }
.sh-lms-wrap { font-family: var(--font-b); color: var(--sh-text); line-height: 1.7; background: var(--sh-bg); min-height: 60vh; }
.sh-lms-wrap h1,.sh-lms-wrap h2,.sh-lms-wrap h3,.sh-lms-wrap h4 { font-family: var(--font-h); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
.sh-lms-wrap p  { margin: 0 0 .8em; }
.sh-lms-wrap a  { color: var(--sh-orange); text-decoration: none; }
.sh-lms-wrap a:hover { text-decoration: underline; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.sh-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--sh-dark); color: #fff;
  padding: 12px 20px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  flex-wrap: wrap; gap: 10px;
}
.sh-topbar-brand { display: flex; align-items: center; gap: 10px; }
.sh-topbar-icon  { font-size: 24px; }
.sh-topbar-name  { font-family: var(--font-h); font-size: 16px; font-weight: 800; }
.sh-topbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── TABS ────────────────────────────────────────────────── */
.sh-tabs {
  display: flex; flex-wrap: wrap;
  background: var(--sh-white);
  border-bottom: 2px solid var(--sh-border);
  gap: 2px; padding: 0 8px;
}
.sh-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  font-family: var(--font-h); font-size: 13px; font-weight: 700;
  color: var(--sh-muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: var(--tx); text-decoration: none !important;
  white-space: nowrap;
}
.sh-tab:hover { color: var(--sh-orange); }
.sh-tab-active { color: var(--sh-orange) !important; border-bottom-color: var(--sh-orange); }
.sh-tab span { display: none; }
@media(min-width:640px){ .sh-tab span { display: inline; } }

/* ── LMS BODY WRAPPER ─────────────────────────────────── */
.sh-lms-body { padding: 24px 20px; background: var(--sh-bg); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.sh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--r-full);
  font-family: var(--font-h); font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: var(--tx);
  text-decoration: none !important; line-height: 1; white-space: nowrap;
}
.sh-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sh-btn-orange { background: var(--sh-orange); color: #fff; }
.sh-btn-orange:hover { background: var(--sh-orange-d); color: #fff; }
.sh-btn-blue   { background: var(--sh-blue);   color: #fff; }
.sh-btn-blue:hover { background: var(--sh-blue-d); color: #fff; }
.sh-btn-green  { background: var(--sh-green);  color: #fff; }
.sh-btn-red    { background: var(--sh-red);    color: #fff; }
.sh-btn-outline { background: transparent; color: var(--sh-orange); border: 2px solid var(--sh-orange); }
.sh-btn-outline:hover { background: var(--sh-orange); color: #fff; }
.sh-btn-wallet  { background: #F6851B; color: #fff; }
.sh-btn-wallet:hover { background: #E2771A; color: #fff; }
.sh-btn-lg { padding: 14px 28px; font-size: 15px; }
.sh-btn-sm { padding: 8px 16px; font-size: 12px; }
.sh-btn-xs { padding: 5px 10px; font-size: 11px; }
.sh-btn-full { width: 100%; justify-content: center; }
.sh-btn-done { background: var(--sh-green) !important; }
.sh-disabled { opacity: .5; cursor: not-allowed; }
.sh-disabled:hover { transform: none; box-shadow: none; }

/* ── CHIPS / BADGES ────────────────────────────────────── */
.sh-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-family: var(--font-h); font-size: 11px; font-weight: 700;
  background: var(--sh-bg); color: var(--sh-muted); border: 1px solid var(--sh-border);
}
.sh-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sh-chip-green  { background: var(--sh-green-l);  color: var(--sh-green);  border-color: #86EFAC; }
.sh-chip-gold   { background: var(--sh-yellow-l); color: #92400E;          border-color: #FCD34D; }
.sh-chip-user   { background: var(--sh-blue-l);   color: var(--sh-blue-d); border-color: #BAE6FD; }
.sh-chip-teacher{ background: var(--sh-purple-l); color: var(--sh-purple); border-color: #C4B5FD; }
.sh-chip-level  { background: var(--sh-orange-l); color: var(--sh-orange-d); border-color: #FED7AA; }
.sh-chip-curr   { background: #F0FDF4; color: #15803D; border-color: #86EFAC; }
.sh-tag { display: inline-block; padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; font-family: var(--font-h); }
.sh-tag-green  { background: var(--sh-green-l);  color: var(--sh-green); }
.sh-tag-gray   { background: #F1F5F9; color: var(--sh-muted); }
.sh-tag-blue   { background: var(--sh-blue-l);   color: var(--sh-blue-d); }
.sh-tag-red    { background: var(--sh-red-l);    color: var(--sh-red); }
.sh-nft-tag    { position: absolute; top: 8px; right: 8px; background: var(--sh-yellow); color: #000; padding: 3px 8px; border-radius: var(--r-full); font-size: 10px; font-weight: 800; font-family: var(--font-h); }
.sh-status-tag { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: var(--r-full); font-size: 10px; font-weight: 800; font-family: var(--font-h); }
.sh-status-done   { background: var(--sh-green); color: #fff; }
.sh-status-active { background: var(--sh-orange); color: #fff; }

/* ── STATS ROW ─────────────────────────────────────────── */
.sh-stat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 14px; margin-bottom: 28px; }
.sh-stat { background: var(--sh-white); border: 1px solid var(--sh-border); border-radius: var(--r-lg); padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.sh-stat-icon { font-size: 26px; margin-bottom: 6px; }
.sh-stat-val  { font-family: var(--font-h); font-size: 26px; font-weight: 900; color: var(--sh-orange); line-height: 1; }
.sh-stat-lbl  { font-size: 12px; color: var(--sh-muted); margin-top: 4px; font-weight: 600; }

/* ── SECTION TITLE ─────────────────────────────────────── */
.sh-section-title {
  font-family: var(--font-h); font-size: 20px; font-weight: 800;
  color: var(--sh-text); margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sh-border);
  display: flex; align-items: center; gap: 8px;
}

/* ── EMPTY STATE ────────────────────────────────────────── */
.sh-empty {
  text-align: center; padding: 48px 24px;
  color: var(--sh-muted); font-size: 15px;
  background: var(--sh-white); border-radius: var(--r-lg);
  border: 2px dashed var(--sh-border);
}

/* ── LOGIN GATE ─────────────────────────────────────────── */
.sh-gate {
  text-align: center; padding: 64px 24px;
  background: var(--sh-white); border-radius: var(--r-xl);
  border: 1px solid var(--sh-border); box-shadow: var(--shadow-md);
}
.sh-gate-icon { font-size: 56px; margin-bottom: 16px; }
.sh-gate h3   { font-size: 22px; margin-bottom: 10px; }
.sh-gate p    { color: var(--sh-muted); margin-bottom: 24px; }
.sh-gate .sh-btn { margin: 6px; }

/* ── PROGRESS BAR ──────────────────────────────────────── */
.sh-progress-wrap { height: 7px; background: var(--sh-border); border-radius: var(--r-full); overflow: hidden; margin: 8px 0; }
.sh-progress-bar  { height: 100%; background: linear-gradient(90deg, var(--sh-orange), var(--sh-blue)); border-radius: var(--r-full); transition: width .6s ease; }
.sh-progress-big  { height: 10px; }

/* ── QUICK GRID ─────────────────────────────────────────── */
.sh-quick-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 14px; margin-top: 24px; }
.sh-quick-card {
  background: var(--sh-white); border: 1.5px solid var(--sh-border);
  border-radius: var(--r-lg); padding: 20px;
  text-align: center; transition: var(--tx);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-h); font-size: 13px; font-weight: 700;
  color: var(--sh-text); text-decoration: none !important;
}
.sh-quick-card:hover { border-color: var(--sh-orange); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--sh-orange); }
.sh-qc-icon { font-size: 32px; }

/* ── COURSE GRID ────────────────────────────────────────── */
.sh-course-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 18px; margin-top: 16px; }
.sh-course-grid-lg { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }

/* Mini course cards (dashboard recent) */
.sh-mini-card {
  background: var(--sh-white); border: 1.5px solid var(--sh-border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--tx); text-decoration: none !important;
}
.sh-mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sh-mini-card-top {
  padding: 14px; min-height: 70px;
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.sh-mini-icon  { font-size: 28px; }
.sh-mini-level { font-family: var(--font-h); font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); background: rgba(0,0,0,.2); padding: 3px 8px; border-radius: var(--r-full); }
.sh-mini-body  { padding: 12px; }
.sh-mini-title { font-family: var(--font-h); font-size: 14px; font-weight: 700; color: var(--sh-text); margin-bottom: 6px; }
.sh-mini-pct   { font-size: 12px; color: var(--sh-muted); }

/* Full course cards (browse view) */
.sh-course-card {
  background: var(--sh-white); border: 1.5px solid var(--sh-border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--tx); box-shadow: var(--shadow-sm);
}
.sh-course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sh-orange); }
.sh-course-thumb {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative; overflow: hidden;
}
.sh-course-emoji { filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.sh-course-body  { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sh-course-title {
  font-family: var(--font-h); font-size: 15px; font-weight: 700;
  color: var(--sh-text); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sh-course-desc {
  font-size: 13px; color: var(--sh-muted); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sh-course-meta { font-size: 12px; color: var(--sh-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.sh-course-stars { color: var(--sh-yellow); font-size: 13px; }
.sh-course-foot {
  padding: 12px 16px; border-top: 1px solid var(--sh-border);
  display: flex; align-items: center; justify-content: space-between;
  background: #FAFAFA;
}
.sh-course-reward { font-family: var(--font-h); font-size: 13px; font-weight: 800; color: var(--sh-orange); }
.sh-teacher-name  { font-size: 12px; color: var(--sh-muted); }

/* ── FILTERS ────────────────────────────────────────────── */
.sh-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--sh-white); border: 1px solid var(--sh-border);
  border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 20px;
}
.sh-select {
  padding: 9px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--sh-border);
  font-family: var(--font-b); font-size: 13px;
  background: var(--sh-white); color: var(--sh-text);
  transition: var(--tx); cursor: pointer;
}
.sh-select:focus { outline: none; border-color: var(--sh-orange); }
.sh-filter-select { min-width: 140px; }
.sh-filter-search { flex: 1; min-width: 180px; }
.sh-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--sh-border); border-radius: var(--r-md);
  font-family: var(--font-b); font-size: 14px; color: var(--sh-text);
  background: var(--sh-white); transition: var(--tx);
}
.sh-input:focus { outline: none; border-color: var(--sh-orange); box-shadow: 0 0 0 3px rgba(244,120,32,.1); }
.sh-textarea {
  width: 100%; min-height: 120px; padding: 10px 14px;
  border: 1.5px solid var(--sh-border); border-radius: var(--r-md);
  font-family: var(--font-b); font-size: 14px; color: var(--sh-text);
  resize: vertical; transition: var(--tx);
}
.sh-textarea:focus { outline: none; border-color: var(--sh-orange); box-shadow: 0 0 0 3px rgba(244,120,32,.1); }

/* ── COURSE VIEWER LAYOUT ──────────────────────────────── */
.sh-course-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin-top: 16px; }
@media(max-width:900px){ .sh-course-layout { grid-template-columns: 1fr; } }

.sh-sidebar {
  background: var(--sh-white); border: 1.5px solid var(--sh-border);
  border-radius: var(--r-lg); overflow: hidden;
  position: sticky; top: 80px; max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.sh-sidebar-head {
  background: var(--sh-dark); color: #fff;
  padding: 16px; font-size: 13px;
}
.sh-sidebar-title { font-family: var(--font-h); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sh-sec-block  { padding: 8px 0; }
.sh-sec-label  { padding: 8px 14px; font-family: var(--font-h); font-size: 11px; font-weight: 700; color: var(--sh-muted); text-transform: uppercase; letter-spacing: 1px; }
.sh-lesson-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--sh-text);
  transition: var(--tx); text-decoration: none !important;
  border-left: 3px solid transparent;
}
.sh-lesson-link:hover { background: var(--sh-orange-l); color: var(--sh-orange); border-left-color: var(--sh-orange); }
.sh-lesson-active { background: var(--sh-orange-l) !important; color: var(--sh-orange) !important; border-left-color: var(--sh-orange) !important; font-weight: 700; }
.sh-done { color: var(--sh-green) !important; }
.sh-ll-title { flex: 1; }
.sh-ll-reward { font-size: 11px; color: var(--sh-orange); font-weight: 700; }

.sh-course-main { min-width: 0; }

/* ── COURSE INTRO ──────────────────────────────────────── */
.sh-intro { background: var(--sh-white); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.sh-intro h1 { font-size: 22px; margin: 12px 0; }
.sh-intro-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--sh-muted); margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--sh-border); border-bottom: 1px solid var(--sh-border); }
.sh-teacher-line { font-size: 14px; color: var(--sh-muted); }
.sh-stars-lg { font-size: 18px; margin: 10px 0; }
.sh-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-h); font-size: 13px; font-weight: 700;
  color: var(--sh-muted); margin-bottom: 16px; text-decoration: none !important;
}
.sh-back:hover { color: var(--sh-orange); }

/* ── LESSON VIEW ────────────────────────────────────────── */
.sh-lesson-view { background: var(--sh-white); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.sh-lesson-type-bar { font-size: 12px; font-weight: 700; color: var(--sh-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.sh-lesson-title { font-size: 22px; margin-bottom: 20px; }
.sh-video-wrap { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; background: #000; }
.sh-video-wrap iframe, .sh-video-wrap video { width: 100%; height: 380px; border: none; }
.sh-audio-wrap { margin-bottom: 20px; }
.sh-audio-wrap audio { width: 100%; }
.sh-pdf-wrap { margin-bottom: 16px; }
.sh-pdf-wrap iframe { width: 100%; height: 520px; border: 1px solid var(--sh-border); border-radius: var(--r-md); }
.sh-lesson-content { font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
.sh-lesson-content img { max-width: 100%; border-radius: var(--r-md); margin: 16px 0; }

/* ── QUIZ ────────────────────────────────────────────────── */
.sh-quiz {
  background: var(--sh-bg); border: 1.5px solid var(--sh-border);
  border-radius: var(--r-lg); padding: 24px; margin: 24px 0;
}
.sh-quiz-head { font-family: var(--font-h); font-size: 16px; font-weight: 800; color: var(--sh-text); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--sh-border); }
.sh-q { background: var(--sh-white); border-radius: var(--r-md); padding: 18px; margin-bottom: 14px; border: 1px solid var(--sh-border); }
.sh-q-text { font-family: var(--font-h); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sh-q-opts { display: flex; flex-direction: column; gap: 8px; }
.sh-opt {
  width: 100%; text-align: left; padding: 11px 16px;
  border: 1.5px solid var(--sh-border); border-radius: var(--r-md);
  background: var(--sh-white); font-family: var(--font-b);
  font-size: 14px; cursor: pointer; transition: var(--tx);
}
.sh-opt:hover:not(:disabled) { border-color: var(--sh-orange); background: var(--sh-orange-l); }
.sh-opt-correct  { border-color: var(--sh-green) !important; background: var(--sh-green-l) !important; color: var(--sh-green); font-weight: 700; }
.sh-opt-wrong    { border-color: var(--sh-red)   !important; background: var(--sh-red-l)   !important; color: var(--sh-red); }
.sh-explanation  { margin-top: 10px; padding: 10px 14px; background: var(--sh-yellow-l); border-radius: var(--r-sm); font-size: 13px; color: #713F12; }
.sh-short-ans    { max-width: 360px; }
.sh-quiz-result  { margin-top: 16px; padding: 16px; border-radius: var(--r-md); font-family: var(--font-h); font-size: 15px; font-weight: 700; }
.sh-result-pass  { background: var(--sh-green-l); color: var(--sh-green); }
.sh-result-fail  { background: var(--sh-red-l); color: var(--sh-red); }

/* ── LESSON FOOTER ──────────────────────────────────────── */
.sh-lesson-foot  { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sh-border); }
.sh-done-badge   { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--sh-green-l); color: var(--sh-green); border-radius: var(--r-full); font-family: var(--font-h); font-weight: 800; font-size: 15px; }
.sh-lesson-nav   { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sh-msg-box      { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; }
.sh-msg-success  { background: var(--sh-green-l); color: var(--sh-green); }
.sh-msg-error    { background: var(--sh-red-l); color: var(--sh-red); }
.sh-msg-info     { background: var(--sh-blue-l); color: var(--sh-blue-d); }

/* ── REVIEWS ────────────────────────────────────────────── */
.sh-reviews { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--sh-border); }
.sh-reviews h3 { font-size: 17px; margin-bottom: 14px; }
.sh-review { padding: 14px; background: var(--sh-bg); border-radius: var(--r-md); margin-bottom: 10px; }
.sh-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sh-stars-sm { color: var(--sh-yellow); font-size: 14px; }
.sh-review-form { margin-top: 24px; padding: 20px; background: var(--sh-bg); border-radius: var(--r-lg); border: 1px solid var(--sh-border); }
.sh-review-form h4 { margin-bottom: 14px; }
.sh-star-picker { display: flex; gap: 6px; font-size: 28px; margin-bottom: 12px; cursor: pointer; }
.sh-star-btn { transition: var(--tx); }
.sh-star-btn:hover, .sh-star-btn.active { color: var(--sh-yellow); }

/* ── RESOURCES GRID ─────────────────────────────────────── */
.sh-resource-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; margin-top: 16px; }
.sh-resource-card {
  background: var(--sh-white); border: 1.5px solid var(--sh-border);
  border-radius: var(--r-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: var(--tx); box-shadow: var(--shadow-sm);
}
.sh-resource-card:hover { border-color: var(--sh-blue); box-shadow: var(--shadow-md); }
.sh-resource-type-tag { font-family: var(--font-h); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--sh-blue); }
.sh-resource-title { font-family: var(--font-h); font-size: 15px; font-weight: 700; margin: 0; }
.sh-resource-subj  { font-size: 13px; color: var(--sh-muted); }
.sh-resource-desc  { font-size: 13px; color: var(--sh-muted); line-height: 1.5; }
.sh-resource-foot  { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sh-border); }

/* ── NFT GRID ────────────────────────────────────────────── */
.sh-nft-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; margin-top: 16px; }
.sh-nft-card {
  background: linear-gradient(135deg, var(--sh-dark), #1E3A5F);
  border-radius: var(--r-xl); padding: 24px;
  text-align: center; color: #fff; box-shadow: var(--shadow-lg);
  transition: var(--tx);
}
.sh-nft-card:hover { transform: translateY(-4px); }
.sh-nft-icon  { font-size: 48px; margin-bottom: 12px; }
.sh-nft-title { font-family: var(--font-h); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.sh-nft-date  { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.sh-nft-card .sh-btn { margin: 4px 2px; }

/* ── TOKEN CARD ─────────────────────────────────────────── */
.sh-token-card { background: linear-gradient(135deg, var(--sh-orange), var(--sh-yellow)); border-radius: var(--r-xl); padding: 28px; text-align: center; margin-bottom: 24px; box-shadow: var(--shadow-lg); }
.sh-token-big  { font-family: var(--font-h); font-size: 56px; font-weight: 900; color: #fff; line-height: 1; }
.sh-token-sym  { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ── TABLE ───────────────────────────────────────────────── */
.sh-table { width: 100%; border-collapse: collapse; background: var(--sh-white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.sh-table thead { background: var(--sh-dark); }
.sh-table th { padding: 14px 16px; font-family: var(--font-h); font-size: 12px; font-weight: 700; color: #fff; text-align: left; text-transform: uppercase; letter-spacing: .5px; }
.sh-table td { padding: 13px 16px; font-size: 13px; border-bottom: 1px solid var(--sh-border); vertical-align: middle; }
.sh-table tr:last-child td { border-bottom: none; }
.sh-table tr:hover td { background: var(--sh-bg); }
.sh-td-actions { white-space: nowrap; }
.sh-token-amt  { font-family: var(--font-h); font-weight: 800; color: var(--sh-orange); }

/* ── DAO ─────────────────────────────────────────────────── */
.sh-dao-head      { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.sh-proposal-form { background: var(--sh-white); border: 1.5px solid var(--sh-border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.sh-proposals     { display: flex; flex-direction: column; gap: 14px; }
.sh-proposal      { background: var(--sh-white); border: 1.5px solid var(--sh-border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.sh-prop-head     { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sh-prop-head h4  { margin: 0; font-size: 16px; }
.sh-vote-track    { height: 8px; background: var(--sh-red-l); border-radius: var(--r-full); overflow: hidden; margin: 12px 0 6px; }
.sh-vote-yes-bar  { height: 100%; background: var(--sh-green); border-radius: var(--r-full); transition: width .6s ease; }
.sh-vote-counts   { font-size: 13px; font-weight: 600; color: var(--sh-muted); margin-bottom: 12px; }
.sh-vote-row      { display: flex; gap: 10px; margin-bottom: 10px; }
.sh-voted         { font-size: 13px; font-weight: 700; color: var(--sh-blue); padding: 8px 0; }

/* ── TEACHER PORTAL ─────────────────────────────────────── */
.sh-teacher-wrap  { }
.sh-form-box      { background: var(--sh-white); border: 1.5px solid var(--sh-border); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-sm); max-width: 760px; }
.sh-form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
@media(max-width:640px){ .sh-form-row { grid-template-columns: 1fr; } }
.sh-field         { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.sh-field label   { font-family: var(--font-h); font-size: 12px; font-weight: 700; color: var(--sh-muted); text-transform: uppercase; letter-spacing: .5px; }
.sh-info-box      { background: var(--sh-blue-l); border: 1px solid #BAE6FD; border-radius: var(--r-md); padding: 12px 16px; font-size: 13px; color: var(--sh-blue-d); margin-bottom: 16px; }

/* ── ALERTS ─────────────────────────────────────────────── */
.sh-alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 16px; }
.sh-alert-info  { background: var(--sh-blue-l);  color: var(--sh-blue-d); border-left: 4px solid var(--sh-blue); }
.sh-alert-warn  { background: var(--sh-yellow-l);color: #92400E;          border-left: 4px solid var(--sh-yellow); }
.sh-alert-error { background: var(--sh-red-l);   color: var(--sh-red);   border-left: 4px solid var(--sh-red); }

/* ── TOAST ───────────────────────────────────────────────── */
.sh-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 99999;
  padding: 14px 22px; border-radius: var(--r-lg);
  font-family: var(--font-h); font-size: 14px; font-weight: 700;
  color: #fff; max-width: 360px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}
.sh-toast-show { opacity: 1; transform: translateY(0); }
.sh-toast-success { background: var(--sh-green); }
.sh-toast-error   { background: var(--sh-red); }
.sh-toast-warn    { background: #D97706; }
.sh-toast-info    { background: var(--sh-blue-d); }

/* ── MODAL ───────────────────────────────────────────────── */
.sh-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 99998; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.sh-modal {
  background: var(--sh-white); border-radius: var(--r-xl); padding: 36px;
  max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); position: relative;
  text-align: center;
}
.sh-modal h2 { font-size: 22px; margin-bottom: 14px; }
.sh-modal-body { color: var(--sh-muted); font-size: 15px; margin-bottom: 24px; line-height: 1.7; }
.sh-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--sh-muted);
}

/* ── MISC ────────────────────────────────────────────────── */
.sh-muted    { color: var(--sh-muted); }
.sh-mt-1     { margin-top: 8px; }
.sh-mt-2     { margin-top: 16px; }
.sh-mb-0     { margin-bottom: 0; }
.sh-stars    { color: var(--sh-yellow); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:768px){
  .sh-lms-body    { padding: 16px 12px; }
  .sh-stat-row    { grid-template-columns: 1fr 1fr; }
  .sh-course-grid { grid-template-columns: 1fr 1fr; }
  .sh-resource-grid { grid-template-columns: 1fr; }
  .sh-nft-grid    { grid-template-columns: 1fr 1fr; }
  .sh-quick-grid  { grid-template-columns: 1fr 1fr; }
  .sh-topbar      { flex-direction: column; align-items: flex-start; }
  .sh-form-box    { padding: 18px; }
  .sh-video-wrap iframe, .sh-video-wrap video { height: 220px; }
}
@media(max-width:480px){
  .sh-course-grid { grid-template-columns: 1fr; }
  .sh-stat-row    { grid-template-columns: 1fr 1fr; }
}
