/* ==========================================================================
   SanoEDU Components Stylesheet - Modular UI Design Elements
   ========================================================================== */

/* BADGES */
.bd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}
.bd-ok { background: var(--okbg); color: #065F46; }
.bd-warn { background: var(--warnbg); color: #92400E; }
.bd-err { background: var(--errbg); color: #991B1B; }
.bd-info { background: var(--infobg); color: #1E40AF; }
.bd-teal { background: var(--teal3); color: var(--teal2); }
.bd-gray { background: var(--bg2); color: var(--text2); border: 1px solid var(--border); }
.bd-gold { background: var(--goldbg); color: #92400E; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--rmd);
  font-size: .875rem;
  font-weight: 500;
  transition: all .18s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.btn-p { background: var(--teal); color: #fff; }
.btn-p:hover { background: var(--teal2); box-shadow: 0 4px 14px rgba(13,148,136,.28); }
.btn-s { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-s:hover { background: var(--bg2); border-color: var(--border2); }
.btn-o { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-o:hover { background: var(--teal3); }
.btn-g { background: transparent; color: var(--text2); border: 1px solid transparent; }
.btn-g:hover { background: var(--bg2); border-color: var(--border); }
.btn-dk { background: var(--navy); color: #fff; }
.btn-dk:hover { background: var(--navy2); }
.btn-danger { background: var(--errbg); color: var(--err); }
.btn-danger:hover { background: #fca5a5; }
.btn-sm { padding: 6px 14px; font-size: .8rem; border-radius: var(--rsm); }
.btn-lg { padding: 12px 28px; font-size: .95rem; border-radius: var(--rlg); }
.btn-xs { padding: 4px 10px; font-size: .72rem; border-radius: 4px; }
.btn-ico { width: 34px; height: 34px; padding: 0; border-radius: var(--rmd); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* FORMS */
.fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.flbl {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
}
.fhint {
  font-size: .73rem;
  color: var(--text3);
  margin-top: 3px;
}
.fi {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--rmd);
  font-size: .875rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  font-family: var(--fb);
}
.fi:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.fi:hover:not(:focus) {
  border-color: var(--border2);
}
.fsel {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--rmd);
  font-size: .875rem;
  color: var(--text);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 11px center;
  appearance: none;
  outline: none;
  transition: border-color .18s;
  font-family: var(--fb);
}
.fsel:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.fta {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--rmd);
  font-size: .875rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  resize: vertical;
  min-height: 90px;
  transition: border-color .18s;
  font-family: var(--fb);
}
.fta:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* CARDS */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 20px;
}
.card-hover {
  transition: all .22s var(--ease);
  cursor: pointer;
}
.card-hover:hover {
  box-shadow: var(--sh3);
  transform: translateY(-2px);
  border-color: transparent;
}

/* METRICS */
.mc {
  background: var(--bg2);
  border-radius: var(--rmd);
  padding: 16px;
  border: 1px solid var(--border);
}
.mc-w {
  background: var(--white);
}
.mc-lbl {
  font-size: .7rem;
  color: var(--text3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.mc-val {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.02em;
  font-family: var(--fd);
}
.mc-val-tl {
  color: var(--teal);
}
.mc-sub {
  font-size: .73rem;
  color: var(--text3);
  margin-top: 4px;
}

/* TABLE */
.tw {
  overflow-x: auto;
  border-radius: var(--rlg);
  border: 1px solid var(--border);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .845rem;
}
.tbl th {
  padding: 10px 14px;
  text-align: left;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.tbl tr:last-child td {
  border-bottom: none;
}
.tbl tr:hover td {
  background: #fafbfd;
}

/* PROGRESS */
.pb {
  height: 5px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.pbf {
  height: 100%;
  background: var(--teal);
  border-radius: 100px;
}
.pb-sm {
  height: 3px;
}
.pb-lbl {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text3);
  margin-bottom: 3px;
}

/* AVATAR */
.av {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.av28 { width: 28px; height: 28px; font-size: .6rem; }
.av32 { width: 32px; height: 32px; font-size: .63rem; }
.av40 { width: 40px; height: 40px; font-size: .78rem; }
.av48 { width: 48px; height: 48px; font-size: .9rem; }
.av64 { width: 64px; height: 64px; font-size: 1.2rem; }
.av80 { width: 80px; height: 80px; font-size: 1.5rem; }
.av-tl { background: var(--teal); color: #fff; }
.av-nv { background: var(--navy); color: #fff; }

/* STARS */
.stars {
  display: flex;
  gap: 2px;
  align-items: center;
}
.star {
  width: 11px;
  height: 11px;
  fill: var(--gold);
}

/* DIVIDER */
.div {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* TABS */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tbtn {
  padding: 9px 16px;
  font-size: .855rem;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tbtn.on {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.tbtn:hover:not(.on) {
  color: var(--text);
}
.tc-body {
  display: none;
}
.tc-body.on {
  display: block;
}

/* PILLS */
.pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text2);
  transition: all .15s;
}
.pill.on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.pill:hover:not(.on) {
  border-color: var(--teal);
  color: var(--teal);
}

/* ALERTS */
.alert {
  padding: 12px 15px;
  border-radius: var(--rmd);
  font-size: .855rem;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 13px;
}
.alert-ok { background: var(--okbg); color: #065F46; border: 1px solid #A7F3D0; }
.alert-warn { background: var(--warnbg); color: #92400E; border: 1px solid #FDE68A; }
.alert-err { background: var(--errbg); color: #991B1B; border: 1px solid #FCA5A5; }
.alert-info { background: var(--infobg); color: #1E40AF; border: 1px solid #BFDBFE; }

/* SECTION TEXT */
.eye {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 7px;
}
.sh1 {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.sh2 {
  font-family: var(--fd);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
}
.sh3 {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.sub {
  font-size: .97rem;
  color: var(--text2);
  line-height: 1.72;
  font-weight: 400;
  max-width: 540px;
  margin-top: 9px;
}
em {
  font-style: italic;
  color: var(--teal);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F2E3D 100%);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 148, 136, .15) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-grad {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, .18), transparent 70%);
  top: -100px;
  right: -100px;
}
.hero-grad2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .1), transparent 70%);
  bottom: -80px;
  left: 60px;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 28px;
}

/* COURSE CARD */
.cc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  overflow: hidden;
  transition: all .22s var(--ease);
  cursor: pointer;
}
.cc:hover {
  box-shadow: var(--sh3);
  transform: translateY(-2px);
  border-color: transparent;
}
.cc-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .28s var(--ease);
}
.cc:hover .cc-play {
  transform: translate(-50%, -50%) scale(1);
}
.cc-play svg {
  width: 14px;
  height: 14px;
  fill: var(--navy);
  margin-left: 2px;
}
.cc-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
  opacity: 0;
  transition: .28s;
}
.cc:hover .cc-ov {
  opacity: 1;
}
.cc-bds {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
}
.cc-body {
  padding: 15px;
}
.cc-cat {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 5px;
}
.cc-title {
  font-size: .91rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.38;
  margin-bottom: 8px;
}
.cc-inst {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.cc-iav {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .54rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.cc-in {
  font-size: .72rem;
  color: var(--text2);
}
.cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.cc-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.cc-free {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ok);
}

/* INSTRUCTOR CARD */
.ic {
  border: 1px solid var(--border);
  border-radius: var(--rxl);
  overflow: hidden;
  cursor: pointer;
  transition: all .22s var(--ease);
  background: var(--white);
}
.ic:hover {
  box-shadow: var(--sh3);
  transform: translateY(-2px);
  border-color: transparent;
}
.ic-top {
  height: 88px;
  position: relative;
}
.ic-body {
  padding: 0 17px 17px;
  text-align: center;
}
.ic-av {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin: -29px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  box-shadow: var(--sh2);
}
.ic-vfy {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 17px;
  height: 17px;
  background: var(--teal);
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ic-vfy svg {
  width: 7px;
  height: 7px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}
.ic-name {
  font-size: .91rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.ic-ttl {
  font-size: .73rem;
  color: var(--text3);
  margin-bottom: 11px;
}
.ic-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 11px;
}
.ic-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
}
.ic-stat {
  padding: 8px 4px;
  text-align: center;
}
.ic-stat:not(:last-child) {
  border-right: 1px solid var(--border);
}
.ic-sn {
  font-size: .86rem;
  font-weight: 700;
  color: var(--text);
}
.ic-sl {
  font-size: .6rem;
  color: var(--text3);
  margin-top: 1px;
}

/* VIDEO PLAYER */
.vp-outer {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border-radius: var(--rmd);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.vp-iframe-wrap {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  bottom: -60px;
}
.vp-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.vp-blocker {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.vp-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 41, .6);
  backdrop-filter: blur(5px);
  transition: opacity .25s ease;
}
.vp-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.vp-big-play {
  width: 68px;
  height: 68px;
  background: rgba(13, 148, 136, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
  transition: transform .25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}
.vp-big-play:hover {
  transform: scale(1.12);
  background: var(--teal2);
}
.vp-big-play svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  margin-left: 4px;
}
.vp-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  background: linear-gradient(to top, rgba(10, 18, 30, 0.95), rgba(10, 18, 30, 0.4) 60%, transparent);
  padding: 30px 16px 14px;
  transition: opacity .25s ease, transform .25s ease;
}
.vp-controls.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.vp-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, .2);
  border-radius: 100px;
  cursor: pointer;
  margin-bottom: 11px;
  position: relative;
  transition: height 0.15s ease;
}
.vp-progress:hover {
  height: 6px;
}
.vp-progress-buf {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  border-radius: 100px;
  width: 0;
}
.vp-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 100px;
  position: relative;
}
.vp-progress-dot {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, .6);
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vp-progress:hover .vp-progress-dot {
  transform: translateY(-50%) scale(1);
}
.vp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vp-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: .85;
  transition: opacity .15s ease, transform 0.1s ease;
  padding: 4px;
}
.vp-btn:hover {
  opacity: 1;
  transform: scale(1.08);
}
.vp-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.vp-time {
  font-size: .75rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--fb);
  white-space: nowrap;
}
.vp-title {
  font-size: .83rem;
  color: rgba(255, 255, 255, .95);
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vp-vol {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, .25);
  border-radius: 100px;
  cursor: pointer;
  transition: height 0.15s ease;
}
.vp-vol:hover {
  height: 6px;
}
.vp-vol-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 100px;
  width: 80%;
}
.vp-watermark {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  font-size: .6rem;
  color: rgba(255, 255, 255, .18);
  font-family: monospace;
  pointer-events: none;
  user-select: none;
}

/* PLAYER SIDEBAR */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: calc(100vh - var(--sh));
  background: var(--navy2);
}
.pmain {
  display: flex;
  flex-direction: column;
}
.ptabs-bar {
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  overflow-x: auto;
}
.ptab {
  padding: 10px 15px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .14s;
  white-space: nowrap;
}
.ptab.on {
  color: #fff;
  border-bottom-color: var(--teal);
}
.pc-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  color: rgba(255, 255, 255, .7);
  font-size: .855rem;
  line-height: 1.72;
}
.psidebar {
  background: rgba(255, 255, 255, .03);
  border-left: 1px solid rgba(255, 255, 255, .06);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.psb-hdr {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}
.psb-sec {
  padding: 7px 15px 2px;
  font-size: .62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .26);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.psb-lesson {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 15px;
  cursor: pointer;
  transition: background .13s;
  border-left: 2px solid transparent;
}
.psb-lesson:hover {
  background: rgba(255, 255, 255, .04);
}
.psb-lesson.on {
  background: rgba(13, 148, 136, .12);
  border-left-color: var(--teal);
}
.psb-lnum {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .57rem;
  color: rgba(255, 255, 255, .36);
  flex-shrink: 0;
  margin-top: 1px;
}
.psb-lesson.done .psb-lnum {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.psb-ltitle {
  font-size: .77rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.32;
  margin-bottom: 1px;
}
.psb-lesson.on .psb-ltitle {
  color: #fff;
  font-weight: 500;
}
.psb-ldur {
  font-size: .64rem;
  color: rgba(255, 255, 255, .26);
}

/* QUIZ options */
.q-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--rmd);
  cursor: pointer;
  margin-bottom: 7px;
  transition: all .14s;
  font-size: .855rem;
  color: var(--text);
}
.q-opt:hover {
  border-color: var(--teal);
  background: var(--teal3);
}
.q-opt.sel {
  border-color: var(--teal);
  background: var(--teal3);
  color: var(--teal2);
}
.q-opt.right {
  border-color: var(--ok);
  background: var(--okbg);
  color: #065F46;
}
.q-opt.wrong {
  border-color: var(--err);
  background: var(--errbg);
  color: #991B1B;
}
.q-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: .14s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-opt.sel .q-radio {
  border-color: var(--teal);
  background: var(--teal);
}
.q-opt.sel .q-radio::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

/* MODAL LAYOUT */
.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.modal-wrap.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--rxl);
  padding: 26px;
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: scale(.96);
  transition: transform .22s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-wrap.open .modal {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text3);
  background: var(--white);
  font-size: .78rem;
}
.modal-close:hover {
  background: var(--bg2);
}
.modal h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* TOAST notifications */
.toast-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.toast {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  padding: 10px 15px;
  box-shadow: var(--sh3);
  font-size: .835rem;
  color: var(--text);
  pointer-events: all;
  transform: translateX(110%);
  transition: transform .32s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
}
.toast.show {
  transform: none;
}
.toast-ok { border-left: 3px solid var(--ok); }
.toast-err { border-left: 3px solid var(--err); }
.toast-info { border-left: 3px solid var(--info); }
.toast-warn { border-left: 3px solid var(--warn); }

/* SYSTEM LOADER */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy2);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s, visibility .4s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}

/* SEARCH INPUT */
.srch-wrap {
  position: relative;
}
.srch-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  stroke: var(--text3);
  fill: none;
}
.srch-input {
  width: 100%;
  padding: 8px 11px 8px 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--rmd);
  font-size: .835rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .18s;
  font-family: var(--fb);
}
.srch-input:focus {
  border-color: var(--teal);
}

/* CERTIFICATE LAYOUT */
.cert-card {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--rxl);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cert-seal {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D97706, #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(217,119,6,.3);
}
.cert-name {
  font-family: var(--fd);
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 7px;
}
.cert-course {
  font-family: var(--fd);
  font-size: 1rem;
  font-style: italic;
  color: var(--teal);
  margin-bottom: 18px;
}
.cert-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.cert-mi {
  text-align: center;
}
.cert-ml {
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.28);
  margin-bottom: 3px;
}
.cert-mv {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}

/* ANALYTICS CHARTS */
.chart-area {
  background: var(--bg2);
  border-radius: var(--rmd);
  height: 160px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 14px 12px 0;
  overflow: hidden;
}
.bar-w {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bar {
  border-radius: 3px 3px 0 0;
  background: var(--teal);
  width: 100%;
  min-height: 3px;
}
.bar.alt {
  background: var(--teal3);
  border: 1px solid var(--teal);
}
.bar-lbl {
  font-size: .58rem;
  color: var(--text3);
  white-space: nowrap;
}

/* MESSAGE SYSTEM */
.msg-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  height: calc(100vh - var(--sh) - 44px);
  min-height: 460px;
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  overflow: hidden;
  background: var(--white);
}
.msg-list {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.msg-lhdr {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.msg-item {
  display: flex;
  gap: 9px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background .13s;
  border-left: 2px solid transparent;
}
.msg-item:hover {
  background: var(--bg2);
}
.msg-item.on {
  background: var(--teal3);
  border-left-color: var(--teal);
}
.msg-ii {
  flex: 1;
  min-width: 0;
}
.msg-iname {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.msg-iprev {
  font-size: .74rem;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-itime {
  font-size: .65rem;
  color: var(--text3);
  white-space: nowrap;
}
.msg-thread {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.msg-thdr {
  padding: 11px 17px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.msg-tmessages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-bw {
  display: flex;
  gap: 7px;
  max-width: 70%;
}
.msg-bw.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-b {
  padding: 8px 12px;
  border-radius: var(--rlg);
  font-size: .845rem;
  line-height: 1.55;
}
.msg-b-o {
  background: var(--bg2);
  color: var(--text);
  border-radius: var(--rlg) var(--rlg) var(--rlg) 2px;
}
.msg-b-m {
  background: var(--teal);
  color: #fff;
  border-radius: var(--rlg) var(--rlg) 2px var(--rlg);
}
.msg-bt {
  font-size: .62rem;
  color: var(--text3);
  margin-top: 2px;
}
.msg-bw.own .msg-bt {
  text-align: right;
}
.msg-compose {
  padding: 11px 17px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 7px;
  align-items: flex-end;
  flex-shrink: 0;
}
.msg-ci {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--rlg);
  font-size: .845rem;
  resize: none;
  min-height: 40px;
  max-height: 100px;
  outline: none;
  font-family: var(--fb);
}
.msg-ci:focus {
  border-color: var(--teal);
}

/* ACCORDIONS */
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--fb);
  gap: 10px;
  transition: color .14s;
}
.acc-btn:hover {
  color: var(--teal);
}
.acc-ico {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .18s;
}
.acc-ico svg {
  width: 8px;
  height: 8px;
  transition: transform .28s;
  stroke: var(--text3);
  fill: none;
  stroke-linecap: round;
}
.acc-item.open .acc-ico {
  background: var(--teal);
  border-color: var(--teal);
}
.acc-item.open .acc-ico svg {
  stroke: #fff;
  transform: rotate(45deg);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s var(--ease);
}
.acc-inner {
  padding: 0 0 14px;
  font-size: .855rem;
  color: var(--text2);
  line-height: 1.72;
}
.acc-item.open .acc-body {
  max-height: 280px;
}

/* INTERACTIVE TOGGLE KEY */
.tog {
  width: 38px;
  height: 21px;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .18s;
}
.tog-k {
  position: absolute;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  transition: left .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* FOOTER */
.site-footer {
  background: var(--navy2);
  padding: 48px 0 22px;
  margin-top: 0;
}

/* EMPTY STATES */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text3);
}
.empty-ico {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: .4;
}
.empty h3 {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 4px;
}
.empty p {
  font-size: .83rem;
  line-height: 1.58;
}
