:root {
  --bg-dark: #060913;
  --card-bg: #0d1424;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(99, 102, 241, 0.55);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --telegram-blue: #0088cc;
  --telegram-glow: rgba(0, 136, 204, 0.45);
  --accent: #ec4899;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
}

input, textarea, button, select {
  font-family: inherit;
}

input, textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
}

.hidden,
.floating-cart-bar.hidden,
.btn-cart-nav.hidden,
.cart-nav-badge.hidden,
.cart-pricing-summary.hidden,
.cart-modal-footer-actions.hidden {
  display: none !important;
}

body {
  font-family: 'Shantell Sans', cursive, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(0, 136, 204, 0.12) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  padding-bottom: 30px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.96);
  border-bottom: 1px solid var(--card-border);
  padding: 7px 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-icon-wrapper {
  position: relative;
}
.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--telegram-blue), var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 0 10px var(--telegram-glow);
}
.online-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border: 1.5px solid var(--bg-dark);
  border-radius: 50%;
}
.brand-title {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.4px;
  color: #fff;
  display: block;
  line-height: 1.1;
}
.brand-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-subtitle {
  font-size: 9.5px;
  color: var(--text-muted);
  display: block;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-nav-request {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5.5px 10px;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.22), rgba(14, 165, 233, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 136, 204, 0.18);
}

.btn-nav-request:hover {
  background: linear-gradient(135deg, #0088cc 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.btn-nav-request:active {
  transform: scale(0.96);
}

.btn-nav-request i {
  font-size: 13px;
  color: #38bdf8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-nav-request:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5.5px 9px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.14));
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.btn-nav-download:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #a7f3d0;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.5);
  transform: translateY(-1px);
}

.btn-nav-download:active {
  transform: scale(0.96);
}

.btn-nav-download i {
  font-size: 12.5px;
  transition: transform 0.2s ease;
}

.btn-nav-download:hover i {
  transform: translateY(1px) scale(1.1);
}

.btn-nav-faq {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5.5px 9px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(129, 140, 248, 0.14));
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #e9d5ff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.btn-nav-faq:hover {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  border-color: #d8b4fe;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.5);
  transform: translateY(-1px);
}

.btn-nav-faq:active {
  transform: scale(0.96);
}

.btn-nav-faq .nav-faq-icon {
  font-size: 12.5px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-nav-faq:hover .nav-faq-icon {
  transform: scale(1.15);
}

.btn-menu-dots {
  background: linear-gradient(135deg, var(--primary), var(--telegram-blue));
  color: #fff;
  padding: 5.5px 9px;
  font-size: 13.5px;
  border-radius: 8px;
  box-shadow: 0 0 10px var(--primary-glow);
}
.btn-menu-dots:active {
  transform: scale(0.94);
}

.btn-refresh {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 5.5px 8px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn-refresh:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.15);
}
.spin-anim i {
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.btn-fav-toggle {
  background: rgba(255, 48, 64, 0.12);
  border: 1px solid rgba(255, 48, 64, 0.35);
  color: #ff3040;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-fav-toggle:hover, .btn-fav-toggle.active {
  background: rgba(255, 48, 64, 0.25);
  border-color: #ff3040;
  box-shadow: 0 0 16px rgba(255, 48, 64, 0.5), inset 0 0 10px rgba(255, 48, 64, 0.2);
}
.btn-fav-toggle i {
  color: #ff3040;
  transition: all 0.3s ease;
}
.btn-fav-toggle:hover i, .btn-fav-toggle.active i {
  animation: instaHeartPop 0.45s ease-in-out;
}

.fav-count-badge {
  background: linear-gradient(135deg, #ff3040, #ff6070);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 3px;
  box-shadow: 0 0 8px rgba(255, 48, 64, 0.7);
}

.btn-telegram {
  background: linear-gradient(135deg, var(--telegram-blue), #00a6ff);
  color: white;
  box-shadow: 0 4px 14px var(--telegram-glow);
  padding: 8px 12px;
}
.btn-telegram:active {
  transform: scale(0.96);
}

/* Slide-Over Category Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.25s ease;
}
.drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.drawer-panel {
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #0b1120;
  border-left: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  animation: slideDrawer 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 9, 19, 0.9);
}
.drawer-title {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-title i {
  color: var(--primary);
}
/* Modern Sleek Modal & Drawer Close Button (X) */
.modal-close,
.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.modal-close:hover,
.close-drawer-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ff4d4f;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.modal-close:active,
.close-drawer-btn:active {
  transform: rotate(90deg) scale(0.92);
}

.modal-close i,
.close-drawer-btn i {
  pointer-events: none;
  line-height: 1;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.drawer-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.drawer-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-cat-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.drawer-cat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.drawer-cat-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(0, 136, 204, 0.25));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}
.cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-left i {
  color: var(--cyan);
  width: 18px;
  text-align: center;
}
.cat-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Hero Section */
.hero-section {
  padding: 24px 0 16px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 14px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

.hero-title {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  max-width: 480px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 20px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.stat-num {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Search Box */
.search-box {
  position: relative;
  max-width: 620px;
  margin: 0 auto 14px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 14px 88px 14px 46px;
  background: #0d1424;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}
.search-controls {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}
.voice-search-btn {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  font-size: 14px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.voice-search-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.06);
}
.voice-search-btn:active {
  transform: scale(0.92);
}
.voice-search-btn.listening {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(220, 38, 38, 0.6));
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.7);
  animation: voicePulse 1.1s infinite ease-in-out;
}
@keyframes voicePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.9), 0 0 30px rgba(239, 68, 68, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  }
}
.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.clear-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}
.clear-btn.hidden {
  display: none !important;
}


/* Clean Filter Bar */
.range-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.range-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.range-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.range-btn.active {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px var(--primary-glow);
}

/* Main Content */
.main-content {
  padding: 16px 16px 60px;
}

.courses-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}
.section-heading {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.showing-count {
  font-size: 12px;
  color: var(--text-muted);
}
.sort-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sort-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: var(--primary);
}

/* Courses List Grid */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ULTRA PERFORMANCE OPTIMIZED CARD */
.course-item-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 130px;
  contain: content;
  will-change: transform;
  transform: translateZ(0);
}
.course-item-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.card-content-wrapper {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Course Image / Thumbnail - Full Uncropped Natural Display */
.course-thumb-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.course-thumb-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.course-item-card:hover .course-thumb-img {
  transform: scale(1.02);
}

.course-info-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.course-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.course-id-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  animation: pulseNewBadge 2s infinite ease-in-out;
  text-transform: uppercase;
}

@keyframes pulseNewBadge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.7);
  }
}

.course-cat-badge {
  font-size: 11px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.poster-price-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.course-price-badge {
  font-size: 11px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-rating-tag {
  font-size: 11px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-rating-tag i {
  color: #f59e0b;
  font-size: 10px;
}

.course-rating-tag .rating-count {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 10px;
}

/* Card Actions Top: Reactions + Fav */
.card-actions-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 2px 4px;
  gap: 2px;
  transition: all 0.2s ease;
}

.reaction-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.reaction-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 1px;
}

.reaction-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.reaction-btn i {
  font-size: 12px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
}

/* Like Button Active & Hover */
.reaction-btn.like-btn:hover {
  color: #10b981;
}
.reaction-btn.like-btn:hover i {
  transform: scale(1.2) translateY(-1px);
  color: #10b981;
}
.reaction-btn.like-btn.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
}
.reaction-btn.like-btn.active i {
  color: #10b981;
  animation: thumbPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.7));
}

/* Dislike Button Active & Hover */
.reaction-btn.dislike-btn:hover {
  color: #f43f5e;
}
.reaction-btn.dislike-btn:hover i {
  transform: scale(1.2) translateY(1px);
  color: #f43f5e;
}
.reaction-btn.dislike-btn.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
}
.reaction-btn.dislike-btn.active i {
  color: #f43f5e;
  animation: thumbPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.7));
}

@keyframes thumbPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.fav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 19px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fav-btn:hover {
  color: #ff3040;
  transform: scale(1.25);
}
.fav-btn.is-fav {
  color: #ff3040 !important;
}
.fav-btn.is-fav i {
  color: #ff3040 !important;
  display: inline-block;
  animation: instaHeartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 6px rgba(255, 48, 64, 0.6));
}

/* INSTAGRAM STYLE HEART POP ANIMATION */
@keyframes instaHeartPop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.45);
    filter: drop-shadow(0 0 12px rgba(255, 48, 64, 0.9));
  }
  60% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 6px rgba(255, 48, 64, 0.7));
  }
  80% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(255, 48, 64, 0.6));
  }
}

.course-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  word-break: break-word;
}

.course-feature-desc {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
  padding: 7px 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: #34d399;
  letter-spacing: 0.1px;
}

.course-feature-desc i {
  color: #10b981;
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Universal Clean & Premium Watch Now Button */
.btn-watch-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  user-select: none;
}

.btn-watch-now i {
  font-size: 13px;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.btn-watch-now:hover {
  background: linear-gradient(135deg, #0099e6 0%, #2bb2f4 100%);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.45);
  transform: translateY(-1.5px);
}

.btn-watch-now:hover i {
  transform: scale(1.1);
}

.btn-watch-now:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

/* Toast Popup */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.toast i {
  color: var(--emerald);
  font-size: 15px;
}

/* Empty State & Custom Course Request Card */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}
.empty-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-empty-icon {
  background: rgba(255, 48, 64, 0.1);
  border-color: rgba(255, 48, 64, 0.25);
}
.empty-icon {
  font-size: 32px;
  color: var(--cyan);
}
.fav-empty-icon .empty-icon {
  color: #ff3040;
}
.empty-title {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.empty-request-card {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.95), rgba(6, 12, 28, 0.98));
  border: 1.5px solid rgba(0, 166, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.25);
  border-radius: 16px;
  padding: 22px;
  text-align: left;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 640px) {
  .empty-request-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.request-card-info {
  flex: 1;
}
.request-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.request-card-title {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.request-card-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}
.btn-request-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0088cc, #00a6ff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-request-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 136, 204, 0.6);
}
.btn-request-telegram i {
  font-size: 17px;
}

.reset-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.reset-filter-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #c7d2fe;
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 24px 0;
  background: rgba(6, 9, 19, 0.95);
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}
.footer-brand {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ==========================================================================
   TABLET ADAPTATION (640px - 1023px)
   ========================================================================== */
@media (min-width: 640px) and (max-width: 1023px) {
  .container {
    padding: 0 20px;
  }
  .navbar {
    padding: 10px 0;
  }
  .brand-title {
    font-size: 18.5px;
  }
  .hero-section {
    padding: 28px 0 20px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .search-box {
    max-width: 660px;
  }
  .search-box input {
    padding: 15px 95px 15px 50px;
    font-size: 15.5px;
  }

  /* 2-Column Responsive Card Grid for Tablets */
  .courses-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
  .course-item-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: var(--transition);
  }
  .card-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1;
    padding: 15px !important;
    gap: 12px !important;
  }
  .course-thumb-wrapper {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    max-height: 190px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #070b16 !important;
  }
  .course-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .course-title-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
  }
  .course-action {
    display: flex !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 6px !important;
  }
  .btn-watch-now {
    flex: 1 !important;
    width: auto !important;
    justify-content: center !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  .btn-add-cart {
    padding: 11px 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
}

/* ==========================================================================
   LAPTOP & DESKTOP ULTRA-PREMIUM GRID ADAPTATION (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
  .container {
    max-width: 1240px;
    padding: 0 28px;
  }

  /* Luxury Spacious Navbar */
  .navbar {
    padding: 12px 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .brand {
    gap: 12px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 9px;
  }
  .brand-title {
    font-size: 21px;
    letter-spacing: -0.3px;
  }
  .brand-subtitle {
    font-size: 11px;
    letter-spacing: 0.8px;
  }
  .nav-actions {
    gap: 9px;
  }
  .btn-nav-download {
    padding: 7.5px 14px;
    font-size: 13px;
    border-radius: 9px;
  }
  .btn-nav-faq {
    padding: 7.5px 14px;
    font-size: 13px;
    border-radius: 9px;
  }
  .btn-nav-request {
    padding: 7.5px 16px;
    font-size: 13px;
    border-radius: 9px;
  }
  .btn-refresh {
    padding: 7.5px 12px;
    font-size: 13.5px;
    border-radius: 9px;
  }
  .btn-menu-dots {
    padding: 7.5px 13px;
    font-size: 14px;
    border-radius: 9px;
  }

  /* Hero Section */
  .hero-section {
    padding: 38px 0 26px;
  }
  .hero-badge {
    padding: 8px 20px;
    font-size: 13px;
    margin-bottom: 18px;
  }
  .hero-title {
    font-size: 42px;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
  }
  .hero-desc {
    font-size: 16px;
    max-width: 580px;
    margin-bottom: 24px;
  }

  /* Wide High-End Search Bar */
  .search-box {
    max-width: 740px;
    margin-bottom: 22px;
  }
  .search-box input {
    padding: 16px 110px 16px 54px;
    font-size: 16.5px;
    border-radius: 16px;
    background: rgba(13, 20, 36, 0.9);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
  }
  .search-box input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.4), 0 12px 40px rgba(0, 0, 0, 0.6);
  }
  .search-icon {
    left: 20px;
    font-size: 18px;
    color: #64748b;
  }
  .voice-search-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
    border-radius: 10px;
  }
  .clear-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Courses Header Info Bar */
  .courses-header-info {
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  .section-heading {
    font-size: 22px;
    letter-spacing: -0.4px;
  }
  .sort-btn {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 9px;
  }

  /* 3-Column Luxury Course Cards Grid */
  .courses-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }

  .course-item-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .course-item-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 26px rgba(99, 102, 241, 0.3);
  }

  .card-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1;
    padding: 16px !important;
    gap: 13px !important;
  }

  .course-thumb-wrapper {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    max-height: 205px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #070b16 !important;
    position: relative !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .course-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.35s ease !important;
  }

  .course-item-card:hover .course-thumb-img {
    transform: scale(1.05) !important;
  }

  .course-info-block {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
  }

  .course-card-top {
    gap: 8px;
  }

  .course-id-badge {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 8px;
  }

  .course-cat-badge {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 8px;
  }

  .course-rating-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 8px;
  }

  .course-title-text {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #f8fafc;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
  }

  .course-action {
    display: flex !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .btn-watch-now {
    flex: 1 !important;
    width: auto !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0088cc 0%, #0284c7 100%) !important;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35) !important;
    transition: all 0.2s ease !important;
  }

  .btn-watch-now:hover {
    background: linear-gradient(135deg, #0099e6 0%, #0396dc 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6) !important;
    transform: translateY(-1px) !important;
  }

  .btn-add-cart {
    padding: 11px 15px !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
  }

  /* Cinematic Splash Screen Desktop Enhancement */
  .splash-content {
    transform: scale(1.15);
  }
  .splash-glow {
    width: 440px;
    height: 440px;
    filter: blur(100px);
  }
}

/* ==========================================================================
   ULTRA-WIDE MONITORS (1440px+)
   ========================================================================== */
@media (min-width: 1440px) {
  .container {
    max-width: 1420px;
  }
  .courses-list {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 26px !important;
  }
}

/* Search Keyword Highlighting */
.search-highlight {
  background: rgba(250, 204, 21, 0.28);
  color: #fef08a;
  padding: 1px 4px;
  border-radius: 4px;
  border-bottom: 2px solid #facc15;
  font-weight: 800;
}

/* Active Category Filter Tag Bar */
.active-category-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.active-category-bar.hidden {
  display: none !important;
}
.active-category-label {
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.active-category-label i {
  color: var(--primary);
}
.active-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.3));
  border: 1px solid var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 0 10px var(--primary-glow);
}
#clear-category-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}
#clear-category-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* Mobile Friendly Deep Optimizations (< 640px) */
@media (max-width: 639px) {
  body {
    padding-bottom: 50px;
  }
  .container {
    padding: 0 12px;
  }
  .navbar {
    padding: 7px 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .brand-title {
    font-size: 16px;
  }
  .brand-subtitle {
    font-size: 9px;
  }
  .search-box input {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari & WebViews */
    padding: 12px 38px 12px 42px;
    border-radius: 12px;
  }
  .search-icon {
    font-size: 15px;
    left: 14px;
  }
  .quick-jump-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
  }
  .quick-jump-input-group input {
    font-size: 15px;
    padding: 7px 10px;
    width: 84px;
  }
  .courses-header-info {
    margin-bottom: 12px;
  }
  .section-heading {
    font-size: 16px;
  }
  .card-content-wrapper {
    padding: 14px;
    gap: 10px;
  }
  .course-title-text {
    font-size: 14.5px;
    line-height: 1.4;
  }
  .course-id-badge {
    font-size: 11.5px;
    padding: 2px 8px;
  }
  .course-cat-badge {
    font-size: 10.5px;
    padding: 2px 8px;
  }
  .btn-watch-now {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 12px;
    letter-spacing: 0.2px;
  }
  .drawer-panel {
    width: 85vw;
    max-width: 320px;
  }
  .drawer-cat-btn {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
  }
  .toast {
    bottom: 20px;
    padding: 9px 16px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   TOP COMPACT PWA INSTALLATION BAR
   ========================================================================== */
.top-pwa-bar {
  background: linear-gradient(90deg, #0d1527, #131c35);
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-main);
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.top-pwa-bar.hidden {
  display: none !important;
}
.top-pwa-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-pwa-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.top-pwa-left strong {
  color: var(--text-main);
}
.pwa-icon-bolt {
  color: #f59e0b;
  font-size: 14px;
}
.top-pwa-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-top-pwa {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
}
.btn-top-pwa:hover {
  transform: scale(1.04);
}
.btn-top-pwa-close {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ==========================================================================
   LOADING SKELETON CARDS (ELIMINATES 0-COURSE FLICKER)
   ========================================================================== */
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: skeletonPulse 1.5s infinite ease-in-out;
}
.skeleton-line {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.skeleton-title {
  width: 75%;
  height: 20px;
}
.skeleton-badge {
  width: 40%;
  height: 16px;
}
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ==========================================================================
   PUBLIC BROADCAST ANNOUNCEMENT BANNER
   ========================================================================== */
.public-broadcast-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(12px);
  animation: fadeInDown 0.4s ease-out;
}
.public-broadcast-banner.hidden {
  display: none !important;
}
.broadcast-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}
.broadcast-type-badge {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  white-space: nowrap;
}
.broadcast-msg-text {
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.close-broadcast-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   MODAL DIALOGS & OVERLAYS STYLING
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}
.modal-overlay.hidden {
  display: none !important;
}
.modal-card {
  background: #0d1424;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  animation: slideUpModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-card-wide {
  max-width: 540px;
}
@keyframes slideUpModal {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  padding: 18px 22px;
  background: rgba(13, 20, 36, 0.95);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-title i {
  color: var(--primary);
}
.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.login-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}
.login-error-msg.hidden {
  display: none !important;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group label i {
  color: var(--cyan);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}



/* Floating Telegram Support & Custom Course Request Button */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 995;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 16, 32, 0.98));
  border: 1.5px solid rgba(0, 166, 255, 0.45);
  box-shadow: 0 8px 32px rgba(0, 136, 204, 0.4), 0 0 16px rgba(0, 166, 255, 0.25);
  backdrop-filter: blur(16px);
  padding: 8px 16px 8px 10px;
  border-radius: 50px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.floating-support-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #00a6ff;
  box-shadow: 0 12px 38px rgba(0, 136, 204, 0.6), 0 0 24px rgba(0, 166, 255, 0.45);
}

.floating-tg-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #00a6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.5);
}

.tg-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 166, 255, 0.7);
  animation: tgPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes tgPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.floating-tg-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.floating-tg-sub {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.floating-tg-title {
  font-size: 13px;
  font-weight: 800;
  color: #00d2ff;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}

.floating-tg-title i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.floating-support-btn:hover .floating-tg-title i {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .floating-support-btn {
    bottom: 16px;
    right: 14px;
    padding: 6px 14px 6px 8px;
    gap: 10px;
  }
  .floating-tg-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .floating-tg-sub {
    font-size: 9px;
  }
  .floating-tg-title {
    font-size: 12px;
  }
}



/* ============================================================
   TOP Q&A (FAQ) SECTION & ACCORDION
   ============================================================ */
.faq-section {
  margin-top: 22px;
  margin-bottom: 24px;
}

.faq-section.hidden {
  display: none !important;
}

.faq-card {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.85), rgba(8, 13, 26, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.faq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--cyan), transparent);
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}

.faq-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.faq-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.faq-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.faq-toggle-all-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.faq-toggle-all-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .faq-accordion {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: start;
  }
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-q-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(13, 20, 36, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 700;
}

.faq-q-btn:hover {
  background: rgba(19, 29, 51, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-item.active .faq-q-btn {
  background: rgba(19, 29, 51, 0.95);
  border-color: rgba(99, 102, 241, 0.55);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.faq-q-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.faq-q-title {
  flex: 1;
  line-height: 1.4;
}

.faq-icon {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-a-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  background: rgba(9, 14, 25, 0.85);
  border: 1px solid var(--card-border);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  padding: 0 16px;
}

.faq-item.active .faq-a-body {
  max-height: 500px;
  padding: 14px 16px 16px 16px;
  border-color: rgba(99, 102, 241, 0.55);
}

.faq-a-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.faq-a-body strong {
  color: #60a5fa;
  font-weight: 700;
}

@media (max-width: 640px) {
  .faq-card {
    padding: 16px 14px;
  }
  .faq-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .faq-toggle-all-btn {
    align-self: flex-end;
    font-size: 11px;
    padding: 4px 10px;
  }
  .faq-title {
    font-size: 16px;
  }
  .faq-subtitle {
    font-size: 11.5px;
  }
  .faq-q-btn {
    padding: 11px 12px;
    font-size: 13px;
    gap: 9px;
  }
  .faq-a-body p {
    font-size: 12.5px;
  }
}

/* Course Action & Multi-Course Cart Buttons */
.course-action {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.course-action .btn-watch-now {
  flex: 1;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-cart:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1.5px);
}

.btn-add-cart.in-cart {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.btn-add-cart.in-cart:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #f87171;
}

/* Nav Cart Button */
.btn-cart-nav {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 5.5px 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.btn-cart-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.cart-nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  border: 1.5px solid #0f172a;
}

/* Floating Multi-Course Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 990;
  pointer-events: none;
  animation: slideUpCart 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCart {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.floating-cart-container {
  pointer-events: auto;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-summary-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-icon-bubble {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 18px;
}

.floating-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 2px solid #0f172a;
}

.cart-text-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-courses-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.cart-total-price {
  font-size: 15px;
  font-weight: 800;
  color: #34d399;
}

.cart-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-view-cart {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-cart:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-buy-cart-tg {
  background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-buy-cart-tg:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 136, 204, 0.55);
}

/* Cart Modal Drawer */
.cart-modal-card {
  max-width: 580px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.cart-modal-body {
  overflow-y: auto;
  padding: 16px 20px;
}

/* FAQ Modal Popup */
.faq-modal-card {
  max-width: 980px;
  width: 95%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.faq-modal-body {
  overflow-y: auto;
  padding: 20px 24px 26px;
}

.faq-modal-body .faq-accordion {
  margin-top: 14px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.cart-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.cart-item-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.cart-item-thumb-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 18px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-cat {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: #34d399;
  white-space: nowrap;
}

.cart-item-price-ask {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-item-desc {
  font-size: 11px;
  font-weight: 500;
  color: #34d399;
  line-height: 1.35;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.cart-item-desc i {
  color: #10b981;
  font-size: 11px;
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-remove-cart-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.btn-remove-cart-item:hover {
  color: #ff5252;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.btn-remove-cart-item:active {
  transform: scale(0.92);
}

.cart-pricing-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #94a3b8;
}

.cart-summary-row.total-row {
  font-size: 16px;
  font-weight: 800;
  color: #f1f5f9;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.cart-summary-row.total-row strong {
  color: #34d399;
  font-size: 18px;
}

.cart-modal-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-clear-cart {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-clear-cart:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.btn-buy-cart-tg-large {
  flex: 1;
  background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
  transition: all 0.2s ease;
}

.btn-buy-cart-tg-large:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.55);
}

.empty-cart-state,
.cart-empty-state {
  text-align: center;
  padding: 30px 10px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cart-empty-state h4 {
  font-size: 16px;
  color: #f1f5f9;
  margin: 0;
}

.cart-empty-state p {
  font-size: 13px;
  max-width: 320px;
  line-height: 1.4;
  margin: 0;
}

.empty-cart-state i,
.cart-empty-state i {
  font-size: 38px;
  color: #475569;
}

@media (max-width: 640px) {
  .floating-cart-bar {
    bottom: 16px;
    padding: 0 12px;
  }
  .floating-cart-container {
    padding: 10px 14px;
    border-radius: 12px;
  }
  .cart-text-details {
    display: none;
  }
  .cart-courses-label {
    font-size: 12px;
  }
  .btn-buy-cart-tg {
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .btn-view-cart {
    padding: 9px 11px;
    font-size: 12px;
  }
  .course-action {
    flex-direction: row;
    gap: 6px;
  }
  .btn-add-cart {
    padding: 12px 10px;
  }
  .btn-nav-download {
    padding: 5px 8px;
    font-size: 11.5px;
    gap: 3.5px;
  }
  .btn-nav-request {
    padding: 5px 9px;
    font-size: 11.5px;
    gap: 4px;
  }
  .btn-nav-faq {
    padding: 5px 8px;
    font-size: 11.5px;
    gap: 3.5px;
  }
}

@media (max-width: 480px) {
  .brand-subtitle {
    display: none;
  }
  .brand-title {
    font-size: 15px;
  }
  .brand-icon {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 6px;
  }
  .btn-nav-download {
    padding: 5px 6.5px;
    font-size: 11px;
    gap: 2.5px;
  }
  .btn-nav-request {
    padding: 5px 7px;
    font-size: 11px;
    gap: 3px;
  }
  .btn-nav-faq {
    padding: 5px 6.5px;
    font-size: 11px;
    gap: 2.5px;
  }
}

@media (max-width: 400px) {
  .nav-request-text {
    display: none;
  }
  .btn-nav-download {
    padding: 5px 6px;
  }
  .btn-nav-request {
    padding: 5px 8px;
  }
  .btn-nav-faq {
    padding: 5px 6px;
  }
}

@media (max-width: 360px) {
  .nav-download-text {
    display: none;
  }
}

@media (max-width: 340px) {
  .nav-faq-text {
    display: none;
  }
}

/* ============================================================
   CINEMATIC APP LAUNCH SPLASH SCREEN ANIMATION
   ============================================================ */
.app-splash-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #060913;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

.app-splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(8px);
  pointer-events: none;
}

.app-splash-screen.hidden {
  display: none !important;
}

.splash-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  pointer-events: none;
  animation: splashGlowPulse 2.4s ease-in-out infinite alternate;
}

.splash-glow-1 {
  top: 25%;
  left: 28%;
  background: #0088cc;
}

.splash-glow-2 {
  bottom: 25%;
  right: 28%;
  background: #a855f7;
  animation-delay: 1.2s;
}

@keyframes splashGlowPulse {
  0% { transform: scale(0.85); opacity: 0.25; }
  100% { transform: scale(1.25); opacity: 0.48; }
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  animation: splashContentEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashContentEntrance {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.splash-icon-wrapper {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-icon-pulse-ring {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  border: 2px solid rgba(96, 165, 250, 0.5);
  animation: splashRingPulse 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes splashRingPulse {
  0% { transform: scale(0.9); opacity: 0.85; }
  100% { transform: scale(1.4); opacity: 0; }
}

.splash-icon-box {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #0088cc 0%, #6366f1 50%, #a855f7 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #ffffff;
  box-shadow: 0 0 38px rgba(99, 102, 241, 0.6), inset 0 0 16px rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  animation: splashIconShine 2s ease-in-out infinite alternate;
}

@keyframes splashIconShine {
  0% { transform: translateY(0); box-shadow: 0 0 30px rgba(99, 102, 241, 0.5); }
  100% { transform: translateY(-4px); box-shadow: 0 0 50px rgba(56, 189, 248, 0.8); }
}

.splash-icon-bolt {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.85));
  animation: splashBoltSpark 1.5s ease-in-out infinite alternate;
}

@keyframes splashBoltSpark {
  0% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 18px rgba(56, 189, 248, 1)); }
}

.splash-brand-title {
  font-family: 'Shantell Sans', cursive, sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
}

.splash-brand-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-brand-subtitle {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.6px;
  margin-bottom: 24px;
}

.splash-loader-bar {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.splash-loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  border-radius: 999px;
  animation: splashProgressFill 2.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

@keyframes splashProgressFill {
  0% { width: 0%; }
  50% { width: 68%; }
  100% { width: 100%; }
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 999px;
}
