/* APNA COLLEGE MOD APK — Design System */
:root {
  --bg: #070b13;
  --bg-sidebar: #0b1120;
  --card: #0f172a;
  --card-hover: #131e36;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.4);
  --primary: #38bdf8;
  --primary-rgb: 56, 189, 248;
  --primary-hover: #0ea5e9;
  --accent: #818cf8;
  --accent-gold: #facc15;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --red: #f87171;
  --green: #4ade80;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Glowing Ambient Orbs */
.pointer-events-none { pointer-events: none; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-0 { z-index: 0; }
.opacity-30 { opacity: 0.3; }

.bg-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-primary-glow {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
}

.bg-accent-glow {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.16) 0%, rgba(129, 140, 248, 0) 70%);
}

/* Layout */
.app-layout {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  .sidebar {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    transform: none !important;
  }
}

@media (max-width: 899px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  }
}

.sidebar-header {
  height: 72px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.text-sky {
  color: var(--primary);
}

.badge-mod-apk {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-top: 2px;
  width: fit-content;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.mobile-only {
  display: none;
}
@media (max-width: 899px) {
  .mobile-only {
    display: inline-flex;
  }
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.nav-group-title {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  padding: 0 0.85rem;
  margin-bottom: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--primary);
}

.nav-item.active {
  background: rgba(56, 189, 248, 0.14);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.nav-icon {
  flex-shrink: 0;
}

.enrolled-count-pill {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.nav-item.active .enrolled-count-pill {
  background: var(--primary);
  color: #000;
}

.sidebar-footer-card {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 0.9rem;
}
.sfc-badge {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.sfc-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Main Wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Top Sticky Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(7, 11, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  max-width: 600px;
}

.global-search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  width: 100%;
  transition: all 0.15s ease;
}
.global-search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.search-svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

.global-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  width: 100%;
}
.global-search-box input::placeholder {
  color: var(--text-dim);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.watermark-tag {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .watermark-tag {
    display: none;
  }
}

/* Content Body */
.content-body {
  flex: 1;
  padding: 1.5rem 1.5rem 5rem;
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .content-body {
    padding: 1rem 1rem 6rem;
  }
}

/* Hero Section */
.hero-container {
  margin-bottom: 2rem;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-h1 {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.6rem;
}

@media (min-width: 640px) {
  .hero-h1 {
    font-size: 3.2rem;
  }
}

.gradient-text {
  background: linear-gradient(120deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* Category Filter Tabs Bar */
.filter-tabs-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}
.filter-tabs-bar::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.65rem 0.2rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.filter-tab:hover {
  color: var(--text);
}

.filter-tab.active {
  color: var(--primary);
}
.filter-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Batches Grid */
.batches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.batch-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.batch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15);
}

.batch-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
}

.batch-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.batch-card:hover .batch-card-img {
  transform: scale(1.04);
}

.card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  z-index: 2;
}

.tag-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.tag-free {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.tag-trending {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
}

.tag-mod {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.card-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 3;
}
.card-bookmark-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}
.card-bookmark-btn.saved {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.batch-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.batch-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.batch-card-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
}
.batch-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ========================================= */
/* Batch Detail & Player Page                */
/* ========================================= */
.batch-detail-top {
  margin-bottom: 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: transform 0.15s;
}
.back-btn:hover {
  transform: translateX(-3px);
}

.batch-banner-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.batch-banner-thumb {
  width: 90px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.batch-banner-title h1 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.batch-banner-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.enroll-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.enroll-btn:hover {
  background: var(--primary);
  color: #000;
}
.enroll-btn.enrolled {
  background: var(--primary);
  color: #000;
}

/* Detail Split Layout */
.batch-main-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .batch-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Player Shell */
.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: aspect-ratio 0.2s;
}

.player-shell.pdf-mode {
  aspect-ratio: unset;
  height: 620px;
  max-height: 82vh;
}

.player-shell.pdf-mode video,
.player-shell.pdf-mode .player-controls,
.player-shell.pdf-mode .player-status,
.player-shell.pdf-mode .player-title-overlay {
  display: none !important;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 5;
  pointer-events: none;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.player-title-overlay small {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
}
.player-title-overlay p {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-status {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 4;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}

/* Video Controls */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, transparent 100%);
  padding: 1rem 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.2s;
}
.player-shell:hover .player-controls,
.player-shell.paused .player-controls {
  opacity: 1;
}

.seek-bar {
  width: 100%;
  height: 5px;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: var(--primary);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.ctrl-btn.primary {
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.ctrl-btn.primary:hover {
  background: #7dd3fc;
}

.time-display {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  font-family: var(--font-mono);
  margin-left: 0.4rem;
}

.controls-spacer {
  margin-left: auto;
}

.ctrl-select {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

/* PDF Embedded Viewer Shell */
.pdf-viewer-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #090d16;
}

.pdf-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: #0e1526;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.pdf-nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.pdf-nav-left strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.pdf-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pdf-btn.primary {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}
.pdf-btn.primary:hover {
  background: #7dd3fc;
}

.pdf-iframe-container {
  flex: 1;
  width: 100%;
  height: calc(100% - 50px);
  background: #000;
}
.pdf-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sidebar Panel in Batch Detail */
.side-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.panel-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.panel-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}
.panel-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.panel-tab-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--primary);
}

.panel-search-input {
  width: 100%;
  background: #070b13;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  outline: none;
}
.panel-search-input:focus {
  border-color: var(--border-focus);
}

.lecture-list, .notes-list {
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 4px;
}

.lec-row-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.15s;
}
.lec-row-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}
.lec-row-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--primary);
}
.lec-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  min-width: 1.8rem;
}
.lec-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Note Row with View & Save buttons */
.note-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  transition: all 0.15s;
}
.note-row-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.note-row-item.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
}

.note-click-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  padding: 0.2rem 0;
}
.note-tag {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.note-row-item.active .note-tag {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}
.note-title-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.mini-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.mini-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.mini-action-btn.save {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--primary);
}
.mini-action-btn.save:hover {
  background: var(--primary);
  color: #000;
}

/* Spinner */
.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 4rem 1rem;
}

.empty-box {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.empty-box h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 50;
  padding: 0 1rem;
  justify-content: space-around;
  align-items: center;
}

@media (max-width: 899px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.mb-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}
.mb-nav-item:hover {
  color: var(--text);
}
.mb-nav-item.active {
  color: var(--primary);
}

/* Telegram Community Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.premium-popup {
  position: relative;
  background: #0d1527;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  padding: 2.25rem 1.75rem 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: popupScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupScale {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-circle-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: -55px;
  margin-bottom: 1rem;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  background: #0f172a;
}

.popup-circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.popup-header-icon {
  color: #38bdf8;
  display: flex;
  align-items: center;
}

.popup-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.popup-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.tg-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #000;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.tg-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  background: #7dd3fc;
}

.popup-maybe-later {
  background: transparent;
  border: none;
  color: #64748b;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.85rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: color 0.15s;
}

.popup-maybe-later:hover {
  color: #cbd5e1;
}
