/* ===================================================
   SKILLFORCE HUB — Extras & New Components
   Extended CSS for WhatsApp float, flip cards, rings,
   notification drawer, bottom sheet, Kanban, ribbons
   =================================================== */

/* ===== WHATSAPP FLOAT BUTTON ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
.wa-float.bounce {
  animation: waBounce 0.6s var(--ease-bounce);
}
@keyframes waBounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-14px); }
  60%  { transform: translateY(-5px); }
  80%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.wa-tooltip {
  position: fixed;
  bottom: 92px;
  right: 24px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  z-index: 9989;
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  transition: all 0.2s var(--ease-out);
  pointer-events: none;
}
.wa-float:hover ~ .wa-tooltip,
.wa-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== COOKIE CONSENT BAR ===== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--deep-mid);
  border-top: 1px solid var(--card-border);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease-out);
}
.cookie-bar.hidden {
  transform: translateY(100%);
}
.cookie-bar p {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--gray-300);
  min-width: 240px;
}
.cookie-bar p a { color: var(--teal); font-weight: 600; }

/* ===== FLIP CARDS ===== */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.flip-card-front {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
}
.flip-card-back {
  background: linear-gradient(145deg, var(--deep-mid), var(--deep-light));
  border: 1px solid rgba(0,201,177,0.3);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  justify-content: space-between;
}
/* Needed to make the grid work with flip cards */
.courses-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.course-flip-wrapper {
  height: 340px;
}

/* ===== COURSE CARD THUMB ===== */
.course-card-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--deep-mid), var(--deep-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}
.course-card-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--card-bg));
}

/* ===== PROGRESS RING (SVG) ===== */
.progress-ring-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.progress-ring-svg {
  transform: rotate(-90deg);
  transform-origin: center;
}
.progress-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 6;
}
.progress-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease-out), stroke 0.3s;
}
.progress-ring-fill.green { stroke: #34d399; }
.progress-ring-fill.teal  { stroke: var(--teal); }
.progress-ring-fill.amber { stroke: #fbbf24; }
.progress-ring-label {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* ===== AVATAR WITH RING ===== */
.avatar-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar-ring-wrap .avatar {
  position: relative;
  z-index: 2;
}

/* ===== NOTIFICATION DRAWER ===== */
.notif-bell {
  position: relative;
  cursor: pointer;
  font-size: 20px;
  padding: var(--sp-2);
  border-radius: var(--radius);
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.notif-bell:hover { background: var(--teal-dim); }
.notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--body-bg);
  animation: pulse-dot 2s infinite;
}
.notif-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: var(--deep);
  font-size: 9px;
  font-weight: 700;
  border-radius: 99px;
  padding: 0 4px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--body-bg);
}

.notif-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: var(--deep-light);
  border-left: 1px solid var(--card-border);
  z-index: 9999;
  transition: right 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.notif-drawer.open { right: 0; }
.notif-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--card-border);
}
.notif-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.notif-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: rgba(0,201,177,0.04);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.notif-item:hover { border-color: var(--card-border); }
.notif-item.unread { background: rgba(0,201,177,0.08); border-color: rgba(0,201,177,0.12); }
.notif-icon { font-size: 20px; flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.notif-icon.class { background: var(--teal-dim); }
.notif-icon.assign { background: var(--gold-dim); }
.notif-icon.achieve { background: rgba(52,211,153,0.15); }
.notif-icon.place { background: var(--info-dim); }
.notif-icon.feedback { background: rgba(248,113,113,0.12); }
.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.notif-overlay.open { opacity: 1; pointer-events: all; }

/* ===== BOTTOM SHEET (mobile enrollment card) ===== */
.bottom-sheet-trigger {
  display: none;
}
.bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  height: 78vh;
  background: var(--deep-light);
  border-top: 1px solid var(--card-border);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  z-index: 9990;
  transition: bottom 0.45s var(--ease-out);
  overflow-y: auto;
  padding: var(--sp-6);
}
.bottom-sheet.open { bottom: 0; }
.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--deep-mid);
  margin: 0 auto var(--sp-6);
}
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9989;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.bottom-sheet-overlay.open { opacity: 1; pointer-events: all; }
@media (max-width: 768px) {
  .bottom-sheet-trigger { display: block; }
  .enroll-sidebar-desktop { display: none !important; }
}
@media (min-width: 769px) {
  .bottom-sheet, .bottom-sheet-overlay { display: none !important; }
}

/* ===== ENROLLMENT SIDEBAR ENHANCEMENTS ===== */
.enroll-sidebar {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  padding: var(--sp-6);
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  box-shadow: var(--glow-teal);
}
.enroll-btn-glow {
  background: linear-gradient(135deg, var(--gold), #ffb300);
  color: var(--deep);
  border: none;
  border-radius: var(--radius-full);
  padding: var(--sp-4) var(--sp-8);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-lg);
  width: 100%;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255,209,102,0.4), 0 4px 16px rgba(255,209,102,0.25);
  transition: all 0.25s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}
.enroll-btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.enroll-btn-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(255,209,102,0.6), 0 8px 30px rgba(255,209,102,0.35);
}
.enroll-btn-glow:hover::before { transform: translateX(100%); }
.enroll-btn-glow:active { transform: scale(0.98); }

/* Countdown timer */
.countdown-strip {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  margin: var(--sp-4) 0;
}
.countdown-unit {
  flex: 1;
  text-align: center;
  background: rgba(0,201,177,0.08);
  border: 1px solid rgba(0,201,177,0.15);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-1);
}
.countdown-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--teal);
  display: block;
  line-height: 1;
}
.countdown-label {
  font-size: 9px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.countdown-sep {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--teal);
  opacity: 0.5;
  flex-shrink: 0;
}

/* SVG Seat Arc */
.seat-arc-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-4) 0;
}

/* ===== KANBAN BOARD ===== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.kanban-col {
  background: rgba(0,201,177,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-4);
  min-height: 200px;
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.kanban-col-title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
}
.kanban-count {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.kanban-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.kanban-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}
@media (max-width: 768px) {
  .kanban-board { grid-template-columns: 1fr; }
}

/* ===== JOB BOARD ENHANCEMENTS ===== */
.job-card-wrap {
  position: relative;
  overflow: hidden;
}
.job-applied-ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--teal);
  color: var(--deep);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Quick Apply Sheet */
.quick-apply-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--deep-light);
  border-top: 1px solid var(--card-border);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  z-index: 9992;
  transition: bottom 0.4s var(--ease-out);
  overflow-y: auto;
  padding: var(--sp-6);
}
.quick-apply-sheet.open { bottom: 0; }
.quick-apply-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9991;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.quick-apply-overlay.open { opacity: 1; pointer-events: all; }

/* ===== PIPELINE KANBAN (Placement) ===== */
.pipeline-stages {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin;
}
.pipeline-stage {
  flex-shrink: 0;
  width: 200px;
  background: rgba(0,201,177,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-4);
}
.pipeline-stage-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.pipeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
}

/* ===== 3D CATEGORY CARD TILT ===== */
.category-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  transform-style: preserve-3d;
}
.category-card:hover {
  transform: perspective(800px) rotateY(4deg) rotateX(-2deg) translateY(-4px);
  box-shadow: var(--glow-teal), var(--shadow-lg);
}

/* ===== LIVE JOIN BUTTON ===== */
.btn-join-live {
  position: relative;
  background: var(--teal);
  color: var(--deep);
  border-radius: var(--radius-full);
  font-weight: 700;
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-join-live.pulse {
  animation: heartbeat 1.5s ease-in-out infinite;
}
.btn-join-live:disabled {
  background: rgba(0,201,177,0.2);
  color: var(--gray-400);
  cursor: not-allowed;
}
@keyframes heartbeat {
  0%   { box-shadow: 0 0 0 0 rgba(0,201,177,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(0,201,177,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,201,177,0); }
}

/* ===== PLACEMENT STATS BAR ===== */
.placement-stats-bar {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(0,201,177,0.08), rgba(255,209,102,0.05));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-8);
  margin-bottom: var(--sp-8);
}
.placement-stat {
  text-align: center;
}
.placement-stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--gold);
  display: block;
  line-height: 1;
}
.placement-stat-label {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--sp-1);
}

/* ===== ADMIN ACTIVITY FEED ===== */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-left: 2px solid var(--card-border);
  margin-left: var(--sp-4);
  position: relative;
}
.activity-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--body-bg);
}
.activity-item:last-child { border-left-color: transparent; }

/* ===== BATCH TIMELINE ===== */
.batch-timeline-bar {
  position: relative;
  height: 8px;
  background: rgba(0,201,177,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: var(--sp-2) 0;
}
.batch-timeline-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.8s var(--ease-out);
}
.batch-timeline-today {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ===== MOBILE BATCH TABLE → CARDS ===== */
@media (max-width: 768px) {
  .batch-table-wrap { border-radius: var(--radius-xl); overflow: hidden; }
  .batch-row.header { display: none; }
  .batch-row:not(.header) {
    display: block !important;
    border-radius: var(--radius-xl) !important;
    margin-bottom: var(--sp-3);
    padding: var(--sp-5) !important;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
  }
  .batch-row:not(.header) > * { display: block; margin-bottom: var(--sp-2); }
  .batch-row:not(.header) a.btn { width: 100%; text-align: center; }
}

/* ===== CELEBRATION / CONFETTI ===== */
.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,73,82,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s;
}
.celebration-overlay.active { opacity: 1; }
.celebration-cert {
  animation: none;
}
.celebration-overlay.active .celebration-cert {
  animation: certAppear 0.8s var(--ease-bounce) forwards;
}
@keyframes certAppear {
  0% { transform: scale(0.2); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.celebration-name {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--white), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
  margin-top: var(--sp-4);
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall var(--dur, 2s) var(--delay, 0s) ease-in forwards;
}
@keyframes confettiFall {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx,0), var(--ty, 300px)) rotate(720deg) scale(0.3); opacity: 0; }
}
.star-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  background: var(--gold);
  animation: starBurst 1.5s var(--ease-out) var(--del,0s) forwards;
}

/* ===== INSTRUCTOR CARD (pages) ===== */
.trainer-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--sp-5);
}
.trainer-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--teal-dim), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}
.trainer-name { font-family: var(--font-head); font-weight: 700; font-size: var(--text-xl); color: var(--white); margin-bottom: 4px; }
.trainer-title { font-size: var(--text-sm); color: var(--gray-400); margin-bottom: var(--sp-2); }

/* ===== SKILL TAG ===== */
.skill-tag {
  padding: 4px 12px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,201,177,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal);
}
.skill-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ===== ENROLL FEATURE ITEM ===== */
.enroll-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--gray-300);
}
.enroll-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== MASONRY JOB GRID ===== */
.masonry-grid {
  columns: 1;
  gap: var(--sp-5);
}
@media (min-width: 768px) { .masonry-grid { columns: 1; } }
.masonry-item { break-inside: avoid; margin-bottom: var(--sp-5); }

/* ===== ACCORDION ICON SYSTEM ===== */
.lesson-icon-video { color: var(--teal); }
.lesson-icon-quiz { color: var(--gold); }
.lesson-icon-project { color: var(--success); }
.lesson-icon-download { color: var(--info); }

/* ===== STUDENT ASSIGNMENT CARD ===== */
.assignment-status-pending  { background: var(--warning-dim); color: var(--warning); }
.assignment-status-submitted { background: var(--teal-dim); color: var(--teal); }
.assignment-status-graded   { background: var(--success-dim); color: var(--success); }
.assignment-status-revision  { background: var(--danger-dim); color: var(--danger); }

/* ===== CERTIFICATE GALLERY ===== */
.cert-card {
  background: linear-gradient(135deg, rgba(0,73,82,0.8), rgba(0,56,64,0.9));
  border: 1px solid rgba(255,209,102,0.3);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}
.cert-seal { font-size: 48px; margin-bottom: var(--sp-3); display: block; }
.cert-name { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: var(--text-lg); margin-bottom: var(--sp-2); }

/* ===== BULK ACTION TOOLBAR ===== */
.bulk-toolbar {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-mid);
  border: 1px solid var(--teal);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  z-index: 900;
  transition: bottom 0.35s var(--ease-bounce);
  box-shadow: var(--glow-teal), var(--shadow-lg);
  white-space: nowrap;
}
.bulk-toolbar.show { bottom: var(--sp-8); }

/* ===== FILTER CHIPS ===== */
.filter-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0,201,177,0.2);
  background: transparent;
  color: var(--gray-300);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--teal); color: var(--deep); border-color: var(--teal); }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-4);
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: rgba(0,201,177,0.4); }
.search-bar input { background: none; border: none; outline: none; color: var(--white); font-family: inherit; font-size: var(--text-sm); flex: 1; }
.search-bar input::placeholder { color: var(--gray-500); }

/* ===== PLACEMENT TRACKER STEPS ===== */
.tracker-steps { display: flex; flex-direction: column; gap: 0; }
.tracker-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-left: 2px solid rgba(0,201,177,0.15);
  margin-left: 16px;
  padding-left: var(--sp-5);
  position: relative;
}
.tracker-step:last-child { border-left-color: transparent; }
.tracker-dot {
  position: absolute;
  left: -17px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--deep-mid);
  border: 2px solid rgba(0,201,177,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-400);
}
.tracker-step.done .tracker-dot { background: var(--teal); border-color: var(--teal); color: var(--deep); }
.tracker-step.current .tracker-dot { background: var(--gold); border-color: var(--gold); color: var(--deep); animation: pulse-dot 2s infinite; }

/* ===== PLAYER LAYOUT OVERRIDE (Deep Space) ===== */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  height: calc(100vh - var(--nav-h) - 56px);
  overflow: hidden;
}
.player-main { overflow-y: auto; }
.player-sidebar {
  background: var(--deep-light);
  border-left: 1px solid var(--card-border);
  overflow-y: auto;
}
.player-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--card-border);
  font-weight: 700;
  font-size: var(--text-sm);
  position: sticky;
  top: 0;
  background: var(--deep-light);
  z-index: 2;
}
.player-top-bar {
  background: var(--deep-light) !important;
  border-bottom: 1px solid var(--card-border) !important;
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
}
.video-area { background: var(--deep); aspect-ratio: 16/9; position: relative; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  color: var(--white);
  background: radial-gradient(ellipse at center, rgba(0,201,177,0.06) 0%, transparent 70%);
}
.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0,201,177,0.4);
  transition: all 0.2s var(--ease-bounce);
}
.play-btn:hover { transform: scale(1.1); box-shadow: 0 0 50px rgba(0,201,177,0.6); }

/* Module/Lesson items in player sidebar */
.module-header {
  padding: var(--sp-3) var(--sp-4);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(0,201,177,0.05);
  border-bottom: 1px solid rgba(0,201,177,0.08);
  margin-top: var(--sp-2);
}
.lesson-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.lesson-item:hover { background: rgba(0,201,177,0.05); }
.lesson-item.active { background: rgba(0,201,177,0.08); border-left-color: var(--teal); }
.lesson-item.done .lesson-num { background: var(--teal); color: var(--deep); }
.lesson-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,201,177,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  flex-shrink: 0;
}
.lesson-title { flex: 1; font-size: var(--text-sm); color: var(--gray-300); }
.lesson-duration { font-size: 10px; color: var(--gray-500); }

/* Quiz options for dark theme */
.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: rgba(0,201,177,0.03);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-300);
  font-size: var(--text-sm);
}
.quiz-option:hover { border-color: var(--teal); color: var(--white); background: var(--teal-dim); }
.quiz-option.correct { background: var(--success-dim); border-color: var(--success); color: var(--success); }
.quiz-option.wrong { background: var(--danger-dim); border-color: var(--danger); color: var(--danger); }
.quiz-option.selected { border-color: var(--teal); background: var(--teal-dim); }
.quiz-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,201,177,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--teal);
}

/* Discussion */
.discussion-item { display: flex; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid rgba(0,201,177,0.06); }
.discussion-content { flex: 1; }
.discussion-username { font-weight: 700; font-size: var(--text-sm); color: var(--white); margin-right: var(--sp-2); }
.discussion-time { font-size: var(--text-xs); color: var(--gray-500); }
.discussion-text { font-size: var(--text-sm); color: var(--gray-300); line-height: 1.6; margin-top: var(--sp-2); }
.discussion-actions { display: flex; gap: var(--sp-4); margin-top: var(--sp-2); }
.discussion-action { font-size: var(--text-xs); color: var(--gray-400); cursor: pointer; transition: color 0.2s; }
.discussion-action:hover { color: var(--teal); }

/* Resource items for dark theme */
.resource-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: rgba(0,201,177,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.resource-item:hover { border-color: var(--teal); background: var(--teal-dim); }
.resource-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--teal-dim); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.resource-name { font-weight: 600; font-size: var(--text-sm); color: var(--white); }
.resource-size { font-size: var(--text-xs); color: var(--gray-400); }

/* Upload zone */
.upload-zone {
  border: 2px dashed rgba(0,201,177,0.3);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(0,201,177,0.02);
}
.upload-zone:hover { border-color: var(--teal); background: var(--teal-dim); }
.upload-icon { font-size: 36px; margin-bottom: var(--sp-3); }
.upload-text { font-size: var(--text-sm); color: var(--gray-400); }
.upload-link { color: var(--teal); cursor: pointer; }

/* ===== ANNOUNCEMENT CARD ===== */
.announcement-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  background: rgba(0,201,177,0.03);
  border: 1px solid rgba(0,201,177,0.08);
  transition: border-color 0.2s;
}
.announcement-card:hover { border-color: var(--card-border); }
.announcement-icon { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* ===== LIVE BADGE ===== */
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--radius-full); font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.live-badge.live { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.live-badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #f87171; animation: pulse-dot 1.5s infinite; }
.live-badge.recorded { background: rgba(96,165,250,0.1); color: var(--info); border: 1px solid rgba(96,165,250,0.2); }

/* ===== FOOTER ===== */
.footer { background: var(--deep); border-top: 1px solid var(--card-border); padding: var(--sp-16) 0 var(--sp-8); }
.footer-link { font-size: var(--text-sm); color: var(--gray-400); transition: color 0.2s; }
.footer-link:hover { color: var(--teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--gray-500); flex-wrap: wrap; gap: var(--sp-3); }
.footer-bottom-text { font-size: var(--text-sm); color: var(--gray-500); }
