/* ==========================================================================
   DDYNESTY STREAM - AMOLED BLACK + LIQUID GLASS DESIGN SYSTEM
   Theme: True AMOLED Black (#000000) with High-Gloss Frosted Glassmorphism
   ========================================================================== */

:root, html, body, [data-theme="light"], [data-theme="dark"] {
  /* AMOLED Base Tokens */
  --bg: #000000 !important;
  --surface: rgba(18, 18, 28, 0.7) !important;
  --surface-2: rgba(255, 255, 255, 0.04) !important;
  --border: rgba(255, 255, 255, 0.12) !important;
  --border-2: rgba(255, 255, 255, 0.06) !important;
  --text: #f8fafc !important;
  --text-2: #e2e8f0 !important;
  --muted: #94a3b8 !important;
  --muted-2: #64748b !important;
  
  /* Primary & Accents */
  --primary: #a855f7 !important;
  --primary-light: rgba(168, 85, 247, 0.15) !important;
  --primary-glow: rgba(168, 85, 247, 0.35) !important;
  --chan-100: rgba(168, 85, 247, 0.15) !important;
  --chan-200: rgba(168, 85, 247, 0.25) !important;
  --chan-500: #a855f7 !important;
  --chan-600: #9333ea !important;
  --chan-700: #7e22ce !important;
  --red: #ef4444 !important;
  --green: #10b981 !important;
  --yellow-500: #f59e0b !important;
  
  /* Structure Colors */
  --topbar-bg: rgba(0, 0, 0, 0.75) !important;
  --sidebar-bg: rgba(4, 4, 8, 0.75) !important;
  --sh-sm: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  --sh-md: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  --sh-lg: 0 20px 50px rgba(0, 0, 0, 0.85) !important;
  
  /* Specular Glass Shadows */
  --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.75), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
  --glass-shadow-hover: 0 24px 50px 0 rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.28), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   GLOBAL CANVAS & BACKGROUND
   ========================================================================== */
html, body {
  background-color: #000000 !important;
  color: var(--text) !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  overflow-x: hidden !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 12% 15%, rgba(124, 58, 237, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 88% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.main-wrapper, .content-area, .page-container {
  background: transparent !important;
}

/* Neutralize ALL legacy ticket stub notches, scalloped edges, and radial cutouts */
.today-card::before,
.today-card::after,
.today-card .today-card-bottom::before,
.today-card .today-card-bottom::after,
.topic-card::before,
.topic-card::after,
.content-card::before,
.content-card::after,
.sch-card::before,
.sch-card::after {
  display: none !important;
  content: none !important;
  background-image: none !important;
  border: none !important;
}

/* AMOLED Glass Skeleton Shimmer */
.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 37%, rgba(255, 255, 255, 0.03) 63%) !important;
  background-size: 400% 100% !important;
  border-radius: 12px !important;
}

/* ==========================================================================
   BREADCRUMBS & BACK BUTTON
   ========================================================================== */
.breadcrumb-nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0 16px !important;
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 8px 16px !important;
  display: inline-flex !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  color: var(--muted) !important;
}

.breadcrumb a {
  color: #cbd5e1 !important;
}

.breadcrumb a:hover {
  color: #c084fc !important;
}

.breadcrumb li:last-child {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.back-btn, #backToTopicsBtn, #backBtn {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #f1f5f9 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.back-btn:hover, #backToTopicsBtn:hover, #backBtn:hover {
  background: rgba(168, 85, 247, 0.2) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  color: #ffffff !important;
  transform: translateX(-3px) !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3) !important;
}

/* ==========================================================================
   SIDEBAR (FROSTED GLASS NAVIGATION)
   ========================================================================== */
.sidebar {
  background: rgba(4, 4, 8, 0.72) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.8) !important;
}

.sidebar-logo {
  padding: 24px 20px !important;
}

.sidebar-logo .logo-text, .topbar-logo .logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.5px !important;
  background: linear-gradient(135deg, #ffffff 30%, #c084fc 70%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.nav-item {
  color: var(--muted) !important;
  border-radius: 14px !important;
  margin: 4px 12px !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
  transform: translateX(4px) !important;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(56, 189, 248, 0.12) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   TOPBAR & FLOATING SEARCH BAR
   ========================================================================== */
.topbar {
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7) !important;
}

.search-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.25s ease !important;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35), inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.search-icon {
  color: #a855f7 !important;
}

.notif-btn, .avatar-btn, .hamburger-btn, .mobile-search-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #f1f5f9 !important;
  transition: all 0.2s ease !important;
}

.notif-btn:hover, .avatar-btn:hover, .hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25) !important;
}

/* ==========================================================================
   TODAY CLASSES CAROUSEL & CARDS (LIQUID GLASS MASTERPIECE)
   ========================================================================== */
.today-schedule-container {
  background: transparent !important;
  padding: 12px 0 24px !important;
  margin-bottom: 24px !important;
}

.today-schedule-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

.today-schedule-title {
  color: #f8fafc !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-left: none !important;
  padding-left: 0 !important;
}

.today-schedule-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #a855f7 0%, #38bdf8 100%);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

/* Weekly Schedule Glass Button */
button[data-navigate*="weekly-schedule"], .today-weekly-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

button[data-navigate*="weekly-schedule"]:hover, .today-weekly-btn:hover {
  background: rgba(168, 85, 247, 0.2) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

button[data-navigate*="weekly-schedule"] img {
  display: none !important;
}

button[data-navigate*="weekly-schedule"]::before {
  content: '📅';
  font-size: 14px;
}

.today-carousel {
  display: flex !important;
  gap: 18px !important;
  overflow-x: auto !important;
  padding: 6px 4px 18px !important;
  scrollbar-width: none !important;
  scroll-behavior: smooth !important;
}

.today-carousel::-webkit-scrollbar {
  display: none !important;
}

/* Liquid Glass Card Shell */
.today-card {
  min-width: 295px !important;
  max-width: 320px !important;
  flex: 0 0 auto !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: blur(28px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 22px !important;
  box-shadow: var(--glass-shadow) !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  cursor: pointer !important;
  transition: all 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.today-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(168, 85, 247, 0.55) !important;
  box-shadow: var(--glass-shadow-hover) !important;
}

/* LIVE Class Ambient Glow */
.today-card.live {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(0, 0, 0, 0.4) 100%) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(239, 68, 68, 0.22), inset 0 1px 2px rgba(239, 68, 68, 0.35) !important;
}

.today-card.live:hover {
  border-color: rgba(239, 68, 68, 0.8) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.95), 0 0 36px rgba(239, 68, 68, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

/* Top Section: Content Left, Avatar Right */
.today-card-top {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 16px 16px 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  min-height: 110px !important;
  border-top-left-radius: 22px !important;
  border-top-right-radius: 22px !important;
  position: relative !important;
  overflow: visible !important;
}

.today-card-content {
  order: 1 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.today-avatar-box {
  order: 2 !important;
  float: none !important;
  flex-shrink: 0 !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(56, 189, 248, 0.15) 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  overflow: visible !important;
}

.today-avatar-bg {
  display: none !important;
}

.today-avatar-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: top center !important;
  transform: none !important;
  filter: none !important;
  display: block !important;
}

/* Subject Tag */
.today-subject {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  color: #c084fc !important;
  margin-bottom: 5px !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
  display: block !important;
}

/* Topic / Lecture Details */
.today-topic-details {
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.today-topic-details strong {
  color: #38bdf8 !important;
  font-weight: 800 !important;
}

/* Faculty Name */
.today-teacher-name {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
  display: block !important;
}

/* Compact status badge on avatar */
.sch-live-badge {
  position: absolute !important;
  bottom: -3px !important;
  right: -3px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  border: 1.5px solid #000000 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  white-space: nowrap !important;
  z-index: 5 !important;
  width: auto !important;
  height: auto !important;
}

/* Bottom Card Footer */
.today-card-bottom {
  background: rgba(0, 0, 0, 0.5) !important;
  padding: 12px 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-bottom-left-radius: 22px !important;
  border-bottom-right-radius: 22px !important;
  position: relative !important;
}

.today-meta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.today-time-ago {
  color: #cbd5e1 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
}

/* Status Badges */
.today-status-pill {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 3px 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.today-status-pill.live {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6) !important;
  animation: livePillGlow 1.8s infinite ease-in-out !important;
}

@keyframes livePillGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.9); }
}

.today-status-pill.upcoming {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25) !important;
}

.today-status-pill.ended {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.today-footer-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.today-time-range {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 10px !important;
  padding: 4px 10px !important;
  font-size: 0.74rem !important;
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.today-duration-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 4px 8px !important;
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   DETAIL TABS BAR (Lectures | Notes | DPP PDFs | Quizzes)
   ========================================================================== */
.detail-tabs-bar {
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  padding: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  margin-bottom: 24px !important;
}

.detail-tab, .batch-tab-btn, .tab-item {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.detail-tab:hover, .batch-tab-btn:hover {
  color: #ffffff !important;
}

.detail-tab.active, .batch-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(56, 189, 248, 0.25) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================================================
   LECTURE & CHAPTER CONTENT CARDS (.content-card)
   ========================================================================== */
.content-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.content-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.content-card-main {
  display: flex !important;
  padding: 16px !important;
  gap: 16px !important;
  background: transparent !important;
}

.content-img-box, .lecture-img-box {
  width: 84px !important;
  height: 84px !important;
  border-radius: 14px !important;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(56, 189, 248, 0.12) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  overflow: hidden !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.teacher-cutout {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
}

.play-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border: 2px solid #000000 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8) !important;
}

.content-info {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  min-width: 0 !important;
  justify-content: center !important;
}

.content-meta {
  color: #38bdf8 !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.content-title {
  color: #f8fafc !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 4px 0 6px !important;
}

.content-duration, .content-stats {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.content-actions-row {
  display: flex !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

.content-btn {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  padding: 11px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.content-btn:hover {
  background: rgba(168, 85, 247, 0.16) !important;
  color: #ffffff !important;
}

.action-notes {
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   TOPIC & CHAPTER ROWS (.topic-card)
   ========================================================================== */
.topic-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.16) !important;
  overflow: hidden !important;
  margin-bottom: 10px !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.topic-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(168, 85, 247, 0.2) !important;
}

.topic-card-body {
  padding: 16px !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  align-items: center !important;
}

.topic-accent-line {
  width: 4px !important;
  height: 28px !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, #a855f7 0%, #38bdf8 100%) !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5) !important;
}

.topic-name {
  color: #f8fafc !important;
  font-weight: 700 !important;
  font-size: 0.98rem !important;
}

.topic-stats-text {
  font-size: 0.72rem !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   BATCH CARDS ON HOMEPAGE (.batch-card)
   ========================================================================== */
.batch-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.016) 100%) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 22px !important;
  box-shadow: var(--glass-shadow) !important;
  overflow: hidden !important;
  transition: all 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.batch-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.95), 0 0 32px rgba(56, 189, 248, 0.24), inset 0 1px 2px rgba(255, 255, 255, 0.35) !important;
}

.card-img-wrap {
  position: relative !important;
  overflow: hidden !important;
  background: #000000 !important;
}

.card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%) !important;
  pointer-events: none;
}

.card-body {
  background: transparent !important;
  padding: 18px !important;
}

.card-title {
  color: #f8fafc !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.2px !important;
}

.card-meta {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
}

/* ==========================================================================
   SUBJECT TILES (.subject-card)
   ========================================================================== */
.subject-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  padding: 14px 16px !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.subject-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(168, 85, 247, 0.22) !important;
}

.sub-name {
  color: #f8fafc !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

.sub-img-wrap {
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   RIGHT STICKY BATCH DETAIL CARD (.detail-sticky-card)
   ========================================================================== */
.detail-sticky-card, .detail-right-col > div {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.22) !important;
  overflow: hidden !important;
}

.detail-img-wrap {
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
  background: #000000 !important;
}

.detail-card-info, .detail-info {
  background: transparent !important;
  padding: 20px !important;
}

.detail-card-title, .detail-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.45rem !important;
  margin-bottom: 4px !important;
}

.detail-card-by, .detail-desc {
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
  margin-bottom: 14px !important;
}

/* Badges inside sticky card */
.detail-card-badges-wrapper .badge {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  border-radius: 8px !important;
}

.detail-price-box {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
}

.detail-price-box .price-current {
  color: #ffffff !important;
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.4) !important;
}

.detail-price-box .price-original {
  color: #64748b !important;
  text-decoration: line-through !important;
  font-size: 1rem !important;
}

.enroll-btn, .btn-enroll, .detail-btn, button[class*="join"], button[class*="enroll"], .join-btn {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  padding: 12px 24px !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.45) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.enroll-btn:hover, .btn-enroll:hover, .detail-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.65) !important;
}

.detail-fav-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
  border-radius: 14px !important;
  cursor: pointer !important;
}

/* ==========================================================================
   WEEKLY SCHEDULE PAGE CARDS (.sch-card)
   ========================================================================== */
.sch-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.016) 100%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.18) !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
}

.sch-card-body {
  background: transparent !important;
}

.sch-title {
  color: #f8fafc !important;
}

.sch-card-footer {
  background: rgba(0, 0, 0, 0.45) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.sch-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  border-radius: 999px !important;
}

.sch-chip.active {
  background: rgba(168, 85, 247, 0.25) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   MOBILE CURVED BOTTOM NAV
   ========================================================================== */
.curved-bottom-nav, .bottom-nav {
  background: transparent !important;
}

.bnav-bg-wing {
  background: rgba(6, 6, 12, 0.88) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.bnav-bg-notch svg {
  fill: rgba(6, 6, 12, 0.88) !important;
}

.bnav-center-fab {
  background: linear-gradient(135deg, #a855f7 0%, #38bdf8 100%) !important;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.6) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.bnav-item i {
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}

.bnav-item.active i {
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8)) !important;
}

/* ==========================================================================
   DRAWER, PANELS & POPUPS
   ========================================================================== */
.mobile-drawer, .side-panel, .bottom-panel, #playlistContent, #timelineContainer, #askAiContainer {
  background: rgba(4, 5, 10, 0.92) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.search-modal-backdrop, .lightbox-modal, #reset-key-popup {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.search-modal-card {
  background: rgba(10, 12, 22, 0.88) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
}

/* ==========================================================================
   ULTRA-SLEEK DARK SCROLLBARS
   ========================================================================== */
::-webkit-scrollbar {
  width: 7px !important;
  height: 7px !important;
  background: #000000 !important;
}

::-webkit-scrollbar-track {
  background: #000000 !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 9999px !important;
  border: 2px solid #000000 !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32) !important;
}


/* ==========================================================================
   POINT 1: SOLID OPAQUE SEARCH SUGGESTIONS & LIQUID GLASS RESULT CARDS
   ========================================================================== */
.search-container {
  z-index: 9999999 !important;
}

.search-suggestions {
  background: #070811 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 30px rgba(168, 85, 247, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  padding: 10px !important;
  max-height: 420px !important;
  z-index: 9999999 !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
}

.sug-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  color: #f8fafc !important;
}

.sug-item:last-child {
  margin-bottom: 0 !important;
}

.sug-item:hover, .sug-item.selected {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(56, 189, 248, 0.12) 100%) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

.sug-thumb, .sug-img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  flex-shrink: 0 !important;
}

.sug-title, .sug-name {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.sug-sub, .sug-meta {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  margin-top: 3px !important;
}

.sug-item mark {
  background: rgba(168, 85, 247, 0.35) !important;
  color: #ffffff !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   POINT 2: HIDE MY STUDY ZONE & RANDOM BATCHES
   ========================================================================== */
.study-zone-grid,
.dashboard-section:has(.study-zone-grid),
#homeRandomBatches {
  display: none !important;
}

/* ==========================================================================
   POINT 6: REMOVE NOTIFICATION BELL & DROPDOWNS
   ========================================================================== */
.notif-btn,
#notifBtn,
.notif-dropdown-panel,
.notif-tab {
  display: none !important;
}

/* ==========================================================================
   POINT 7: LECTURE CARDS DIRECT CLICK-TO-PLAY (HIDE BOTTOM BUTTONS)
   ========================================================================== */
.content-card:has(.action-watch) .content-actions-row {
  display: none !important;
}

.content-card {
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.content-card:hover {
  transform: translateY(-3px) scale(1.008) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================================================
   POINT 8: REMOVE TELEGRAM & WHATSAPP
   ========================================================================== */
#nav-telegram,
#bnav-telegram,
#bnav-whatsapp,
a[data-route="/telegram"],
a[href*="t.me"],
a[href*="whatsapp.com"],
.quick-hub-item[onclick*="donate"] {
  display: none !important;
}

/* ==========================================================================
   POINT 9: MODERN FONTAWESOME ICONS FOR NOTES & DPP
   ========================================================================== */
/* Hide broken img in content-btn */
.content-btn.action-view img,
.content-btn.action-download img {
  display: none !important;
}

.content-btn.action-view::before {
  content: '\f06e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 6px;
  font-size: 0.88rem;
  color: #38bdf8;
}

.content-btn.action-download::before {
  content: '\f019';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.88rem;
  color: #a855f7;
}

/* Custom Glass Icon Box for Notes and DPP */
.ddy-glass-icon-box {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  font-size: 1.6rem !important;
  transition: all 0.2s ease !important;
}

.ddy-glass-icon-box.note-theme {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.05) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

.ddy-glass-icon-box.dpp-theme {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(147, 51, 234, 0.05) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  color: #c084fc !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================================================
   POINT 10: AMOLED LIQUID GLASS TOAST POPUP
   ========================================================================== */
.toast-container {
  z-index: 99999999 !important;
  bottom: 24px !important;
  right: 24px !important;
}

.toast {
  background: rgba(10, 12, 22, 0.95) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(168, 85, 247, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  padding: 14px 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -0.2px !important;
  font-size: 0.92rem !important;
}

.toast span {
  color: #f8fafc !important;
  font-weight: 600 !important;
}

.toast i {
  font-size: 1.15rem !important;
}

.toast--warning i {
  color: #f59e0b !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5)) !important;
}

.toast--success i {
  color: #10b981 !important;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5)) !important;
}

.toast--error i {
  color: #ef4444 !important;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5)) !important;
}

/* ==========================================================================
   POINT 11: FULL WIDTH EXPANSION WHEN BATCH IS JOINED
   ========================================================================== */
.detail-layout-grid.batch-is-joined {
  display: block !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

.detail-layout-grid.batch-is-joined .detail-right-col,
.detail-layout-grid.batch-is-joined .detail-sticky-card {
  display: none !important;
}

.detail-layout-grid.batch-is-joined .detail-left-col {
  width: 100% !important;
  max-width: 100% !important;
  grid-column: 1 / -1 !important;
}

.enroll-btn.joined {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4) !important;
  cursor: default !important;
  pointer-events: none !important;
}
