@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');
:root {
  --primary: #00b4d8;
  --primary-hover: #0098b8;
  --primary-light: #00d4ff;
  --accent: #00b4d8;
  --bg-page: #0a0e17;
  --bg-card: #111a27;
  --bg-input: #1a2536;
  --bg-input-focus: #213245;
  --text-primary: #e8eaed;
  --text-secondary: #8b95a5;
  --text-muted: #5a6577;
  --border-color: #1e2a3a;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --danger: #ff6b6b;
  --success: #51cf66;
  --warning: #f59e0b;
  --gradient: linear-gradient(135deg, #004052 0%, #00b4d8 100%);
  --gradient-dark: linear-gradient(135deg, #0a0e17 0%, #111a27 100%);
  --glow: 0 0 20px rgba(0,180,216,0.15);
  --radius: 14px;
  --navbar-height: 60px;
  --bottombar-height: 65px;
}
* { margin:0; padding:0; box-sizing:border-box; font-variant-numeric: tabular-nums; }
body {
  font-family: 'Tajawal', 'Segoe UI', 'Arial', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  padding-top: var(--navbar-height);
  padding-bottom: calc(var(--bottombar-height) + 10px);
  -webkit-locale: "en";
}
a { text-decoration: none; color: inherit; }
.page { display: none; padding: 16px; max-width: 600px; margin: 0 auto; animation: pageIn 0.25s ease; content-visibility: auto; }
.page.active { display: block; }
@keyframes pageIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes pageSlideLeft { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes pageSlideRight { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes cardEnter { from { opacity:0; transform:translateY(20px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes countUp { from { opacity:0; transform:scale(0.5); } to { opacity:1; transform:scale(1); } }
@keyframes progressFill { from { width: 0%; } }
@keyframes fadeInScale { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }
@keyframes subtlePulse { 0%,100% { opacity:1; } 50% { opacity:0.7; } }
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes rippleEffect { 0% { transform:scale(0); opacity:0.5; } 100% { transform:scale(4); opacity:0; } }
@keyframes gradientShift { 0% { background-position:0% 50%; } 50% { background-position:100% 50%; } 100% { background-position:0% 50%; } }
@keyframes imgReveal { from { opacity:0; transform:scale(1.02); } to { opacity:1; transform:scale(1); } }

/* Staggered card entrance */
.stagger-card { animation: cardEnter 0.4s ease both; }
.stagger-card:nth-child(1) { animation-delay: 0s; }
.stagger-card:nth-child(2) { animation-delay: 0.06s; }
.stagger-card:nth-child(3) { animation-delay: 0.12s; }
.stagger-card:nth-child(4) { animation-delay: 0.18s; }
.stagger-card:nth-child(5) { animation-delay: 0.24s; }
.stagger-card:nth-child(6) { animation-delay: 0.3s; }
.stagger-card:nth-child(7) { animation-delay: 0.36s; }
.stagger-card:nth-child(8) { animation-delay: 0.42s; }

/* Progress bar animate on appear */
.h-progress-bar.animated { animation: progressFill 0.8s ease-out; }

/* Counter animation */
.count-animate { animation: countUp 0.5s ease both; }

/* Smooth accordion */
.category-courses { max-height: 2000px; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 1; }
.category-courses.collapsed { max-height: 0; opacity: 0; padding: 0; }

/* Page slide directions */
.page.slide-left { animation: pageSlideLeft 0.3s ease; }
.page.slide-right { animation: pageSlideRight 0.3s ease; }
.page.slide-up { animation: slideUp 0.3s ease; }

/* Ripple button effect */
.h-btn, .nav-btn, .nav-item { position: relative; overflow: hidden; }
.ripple-circle { position:absolute; border-radius:50%; background:rgba(255,255,255,0.3); width:20px; height:20px; pointer-events:none; animation:rippleEffect 0.6s ease-out forwards; }

/* Image lazy reveal */
img.lazy-reveal { animation: imgReveal 0.4s ease both; }

/* Login page animated gradient */
.login-gradient-bg { background: linear-gradient(-45deg, #004052, #00b4d8, #0a0e17, #111a27); background-size: 400% 400%; animation: gradientShift 15s ease infinite; }

/* Breadcrumb */
.breadcrumb { display:flex; align-items:center; gap:6px; font-size:0.85rem; color:var(--text-muted); margin-bottom:12px; flex-wrap:wrap; }
.breadcrumb a { color:var(--primary); font-weight:500; }
.breadcrumb span.sep { color:var(--border-color); }

/* Search bar global */
.search-global { position:relative; }
.search-global input { padding-right:40px; }
.search-global .search-icon { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--text-muted); pointer-events:none; }

/* Gamification badges */
.achievement-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:20px; font-size:0.75rem; font-weight:600; background:rgba(245,158,11,0.15); color:var(--warning); }
.achievement-badge.gold { background:rgba(255,215,0,0.15); color:#ffd700; }
.achievement-badge.silver { background:rgba(192,192,192,0.15); color:#c0c0c0; }
.achievement-badge.bronze { background:rgba(205,127,50,0.15); color:#cd7f32; }

/* Streak counter */
.streak-counter { display:inline-flex; align-items:center; gap:4px; padding:6px 14px; border-radius:10px; background:rgba(255,107,107,0.1); color:var(--danger); font-weight:700; font-size:0.85rem; }

/* Stats mini card */
.stat-mini { text-align:center; padding:12px 8px; background:rgba(255,255,255,0.08); border-radius:12px; flex:1; }
.stat-mini .stat-num { font-size:1.4rem; font-weight:800; color:var(--primary); }
.stat-mini .stat-label { font-size:0.72rem; color:var(--text-muted); margin-top:2px; }

/* Playlist drawer */
.playlist-drawer { background:var(--bg-card); border-radius:16px 16px 0 0; border:1px solid var(--border-color); max-height:45vh; overflow-y:auto; margin-top:12px; }
.playlist-drawer .drawer-header { padding:12px 16px; border-bottom:1px solid var(--border-color); display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; background:var(--bg-card); z-index:1; }
.playlist-drawer .drawer-item { display:flex; align-items:center; gap:10px; padding:10px 16px; border-bottom:1px solid rgba(30,42,58,0.5); cursor:pointer; transition:background 0.2s; }
.playlist-drawer .drawer-item:hover, .playlist-drawer .drawer-item.playing { background:rgba(0,180,216,0.08); }
.playlist-drawer .drawer-item.playing { border-right:3px solid var(--primary); }

/* Onboarding */


/* Safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom); height: calc(var(--bottombar-height) + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(var(--bottombar-height) + env(safe-area-inset-bottom) + 10px); }
}

/* Skeleton Loading */
.skeleton { background: linear-gradient(90deg, var(--bg-input) 25%, var(--border-color) 50%, var(--bg-input) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton { contain: strict; }
.skeleton-card { height: 80px; margin-bottom: 12px; }

/* Top Navbar */
.top-nav {
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  height: var(--navbar-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; color: var(--text-primary);
}
.top-nav .nav-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.top-nav .nav-actions { display: flex; gap: 12px; align-items: center; }
.top-nav .nav-btn {
  background: rgba(0,180,216,0.1); border: 1px solid var(--border-color); color: var(--primary);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: all 0.2s;
}
.top-nav .nav-btn:hover { background: rgba(0,180,216,0.2); border-color: var(--primary); }

/* Bottom Navbar */
.bottom-nav {
  position: fixed; bottom:0; left:0; right:0; z-index: 1000;
  background: var(--bg-card);
  height: var(--bottombar-height);
  display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}
.bottom-nav.hidden { transform: translateY(100%); }
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-muted); font-size: 0.72rem; cursor: pointer;
  padding: 6px 10px; border-radius: 10px; transition: all 0.25s;
  border: none; background: none; font-weight: 500;
}
.bottom-nav .nav-item:hover { color: var(--text-primary); }

/* Unified icon wraps */
.nav-icon-wrap {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all 0.3s ease;
  position: relative;
}

/* أيقونات مخصصة */
.nav-custom-icon {
  width: 26px; height: 26px; object-fit: contain;
  transition: all 0.3s ease; filter: grayscale(0.6) opacity(0.6);
}
.nav-item.active .nav-custom-icon { filter: none; }
.nav-item:hover .nav-custom-icon { filter: grayscale(0.2) opacity(0.85); }

/* Home icon */
.nav-icon-home { color: var(--text-muted); background: transparent; }
.nav-item.active .nav-icon-home {
  background: rgba(81,207,102,0.1);
  box-shadow: 0 2px 12px rgba(81,207,102,0.15);
  animation: navBounce 0.4s ease;
}
.nav-item.active .nav-icon-home .nav-custom-icon { filter: none; transform: scale(1.1); }
.nav-item.active .nav-icon-home + span { color: #51cf66; }

/* Request icon - elevated CTA */
.nav-item-request { overflow: visible !important; }
.nav-icon-request {
  width: 54px !important; height: 54px !important; border-radius: 50% !important;
  background: var(--gradient); color: #fff !important;
  font-size: 1.2rem !important; margin-top: -26px;
  box-shadow: 0 4px 18px rgba(0,180,216,0.4);
  border: 3px solid var(--bg-card); z-index: 2;
}
.nav-icon-request .nav-custom-icon { width: 30px; height: 30px; filter: none !important; animation: navFloat 3s ease-in-out infinite; }
.nav-icon-request::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  background: rgba(0,180,216,0.15); z-index: -1;
  animation: iconGlow 2.5s ease-in-out infinite;
}
@keyframes iconGlow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.18); opacity: 0; }
}
@keyframes navFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes navBounce {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.nav-item-request:hover .nav-icon-request { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,180,216,0.5); }
.nav-item-request.active .nav-icon-request { box-shadow: 0 4px 22px rgba(0,180,216,0.6); }
.nav-item-request span:last-child { color: var(--primary) !important; font-weight: 600; margin-top: 3px; }

/* Profile icon */
.nav-icon-profile { color: var(--text-muted); background: transparent; }
.nav-item.active .nav-icon-profile {
  background: rgba(167,139,250,0.1);
  box-shadow: 0 2px 12px rgba(167,139,250,0.15);
  animation: navBounce 0.4s ease;
}
.nav-item.active .nav-icon-profile .nav-custom-icon { filter: none; transform: scale(1.1); }
.nav-item.active .nav-icon-profile + span { color: #a78bfa; }

/* Hover effects for all icons */
.nav-item:hover .nav-icon-home { background: rgba(81,207,102,0.06); }
.nav-item:hover .nav-icon-profile { background: rgba(167,139,250,0.06); }

/* Active label styling */
.nav-item.active span:last-child { font-weight: 600; }

/* Cards */
.h-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; cursor: pointer; contain: layout style;
}
.h-card:hover { transform: translateY(-2px); box-shadow: var(--glow); border-color: rgba(0,180,216,0.3); }

/* Forms */
.h-input {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border-color);
  border-radius: 12px; font-size: 1rem; font-family: inherit;
  background: var(--bg-input); color: var(--text-primary);
  transition: all 0.2s; outline: none;
}
.h-input:focus { border-color: var(--primary); background: var(--bg-input-focus); box-shadow: var(--glow); }
.h-input::placeholder { color: var(--text-muted); }
.h-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  font-size: 1.05rem; font-weight: 700; cursor: pointer; font-family: inherit;
  background: var(--gradient); color: #fff;
  transition: all 0.2s; box-shadow: 0 4px 15px rgba(0,180,216,0.2);
}
.h-btn:hover { box-shadow: 0 6px 25px rgba(0,180,216,0.35); transform: translateY(-1px); }
.h-btn:active { transform: scale(0.98); }
.h-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.h-btn.outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary); box-shadow: none;
}
.h-btn.outline:hover { background: rgba(0,180,216,0.1); }
.h-btn.danger { background: var(--danger); box-shadow: 0 4px 15px rgba(255,107,107,0.2); }
.h-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-secondary); font-size: 0.9rem; }
.form-group { margin-bottom: 16px; }

/* Section Headers */
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }

/* Progress Bar */
.h-progress { height: 5px; background: var(--border-color); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.h-progress-bar { height: 100%; background: var(--gradient); border-radius: 3px; transition: width 0.3s; }

/* Category Accordion */
.category-header {
  background: var(--gradient); color: #fff; padding: 14px 16px;
  border-radius: 12px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  margin-bottom: 6px; user-select: none; transition: all 0.2s;
}
.category-header:hover { opacity: 0.95; }
.category-header .cat-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.category-badge { background: rgba(255,255,255,0.25); padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; }
.category-chevron { transition: transform 0.3s; }
.category-chevron.collapsed { transform: rotate(-90deg); }
.category-courses { padding: 8px 0; }
.category-courses.hidden { display: none; }

/* Course Card */
.course-card {
  display: flex; background: var(--bg-card); border-radius: 12px;
  overflow: hidden; border: 1px solid var(--border-color);
  margin-bottom: 8px; transition: transform 0.2s ease, box-shadow 0.2s ease; min-height: 90px; contain: layout style;
}
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.course-thumb { width: 100px; min-width: 100px; height: 90px; background: var(--border-color); overflow: hidden; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-info { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
.course-info .c-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.course-info .c-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }


/* Messages */
.msg-header {
  background: var(--gradient); color: #fff; padding: 20px;
  border-radius: 16px 16px 0 0; display: flex; align-items: center; gap: 14px;
}
.msg-avatar { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.msg-list { max-height: 50vh; overflow-y: auto; padding: 16px; background: var(--bg-card); border: 1px solid var(--border-color); }
.msg-bubble { background: #f0f2f5; padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; max-width: 85%; }
.msg-bubble.admin { background: var(--primary); color: #fff; margin-right: auto; }
.msg-bubble .msg-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* Playlist Request */
.req-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
}
.req-badge.pending { background: #fff3cd; color: #856404; }
.req-badge.approved { background: #d4edda; color: #155724; }
.req-badge.rejected { background: #f8d7da; color: #721c24; }

/* Profile */
.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--primary);
  object-fit: cover; box-shadow: var(--shadow);
}
.profile-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg-card); border-radius: 12px;
  margin-bottom: 8px; border: 1px solid var(--border-color); cursor: pointer;
  transition: all 0.2s;
}
.profile-menu-item:hover { box-shadow: var(--shadow); }
.profile-menu-item .pmi-right { display: flex; align-items: center; gap: 12px; }
.pmi-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-page); display: flex; align-items: center; justify-content: center; color: var(--primary); }

/* Video Player */
.video-container {
  background: #000; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
}
.video-container iframe, .video-container video { width: 100%; height: 100%; border: none; }

/* Toast */
.toast-container {
  position: fixed; bottom: calc(var(--bottombar-height) + 12px); right: 16px;
  z-index: 9999; display: flex; flex-direction: column-reverse; gap: 8px;
}
.h-toast {
  padding: 12px 20px; border-radius: 12px; color: #fff; font-weight: 500;
  animation: slideDown 0.3s ease; min-width: 250px; text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.h-toast.success { background: var(--success); }
.h-toast.error { background: var(--danger); }
@keyframes slideDown { from { opacity:0; transform: translateY(-20px); } to { opacity:1; transform: translateY(0); } }

/* Loading Spinner */
.spinner { display: flex; justify-content: center; padding: 40px; }
.spinner::after {
  content: ''; width: 36px; height: 36px; border: 3px solid var(--border-color);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skel-list { padding: 0; }
.skel-list .skeleton-card { border-radius: var(--radius); }

/* Empty State */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 12px; }
.empty-state h5 { color: var(--text-secondary); margin-bottom: 8px; }

/* Modal */
.h-modal-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.h-modal-overlay.active { opacity: 1; pointer-events: all; }
.h-modal {
  background: var(--bg-card); border-radius: 16px; padding: 24px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
  transform: translateY(20px); transition: transform 0.3s;
}
.h-modal-overlay.active .h-modal { transform: translateY(0); }
.h-modal h5 { margin-bottom: 16px; font-weight: 700; }

/* =====================================================
   CINEMATIC POSTER REQUEST EXPERIENCE
   ===================================================== */

/* Hero Header */
.req-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 120px;
  display: flex;
  align-items: center;
}
.req-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #004052 0%, #00243a 40%, #0a0e17 100%);
  z-index: 0;
}
.req-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,180,216,0.18) 0%, transparent 70%);
}
.req-hero-bg::after {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 60%);
}
.req-hero-content {
  position: relative; z-index: 1;
  padding: 28px 24px;
}
.req-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.req-hero-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Steps Progress Bar */
.req-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 8px;
}
.req-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: default;
  position: relative;
}
.req-step.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,180,216,0.08);
  box-shadow: 0 0 20px rgba(0,180,216,0.12);
}
.req-step.done {
  border-color: var(--success);
  color: var(--success);
  background: rgba(81,207,102,0.06);
}
.req-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
  background: var(--border-color);
  color: var(--text-muted);
  transition: all 0.4s;
  flex-shrink: 0;
}
.req-step.active .req-step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,180,216,0.4);
}
.req-step.done .req-step-num {
  background: var(--success);
  color: #fff;
}
.req-step-line {
  width: 32px;
  height: 2px;
  background: var(--border-color);
  transition: background 0.4s;
  flex-shrink: 0;
}
.req-step-line.done {
  background: var(--success);
}

/* Step Panels */
.req-step-panel {
  display: none;
  animation: reqPanelIn 0.45s cubic-bezier(0.4,0,0.2,1);
}
.req-step-panel.active { display: block; }
@keyframes reqPanelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.req-select-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.req-select-fancy {
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  transition: all 0.3s;
  cursor: pointer;
}
.req-select-fancy:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,180,216,0.1);
}

/* Poster Grid */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 20px;
}
@media (min-width: 520px) { .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 768px) { .poster-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .poster-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

/* Individual Poster Card */
.poster-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
  transform: translateZ(0);
  will-change: transform;
  contain: layout style;
}
.poster-card:hover {
  transform: scale(1.035) translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,180,216,0.25);
  border-color: rgba(0,180,216,0.4);
}
.poster-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.35s;
  background: linear-gradient(135deg, rgba(0,180,216,0.15) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}
.poster-card:hover::before { opacity: 1; }

/* Poster Shine Effect */
.poster-card::after {
  content: '';
  position: absolute;
  top: -120%; left: -120%;
  width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 55%, transparent 60%);
  transform: rotate(25deg);
  transition: top 0.5s ease, left 0.5s ease;
  z-index: 3;
  pointer-events: none;
}
.poster-card:hover::after {
  top: -50%; left: -30%;
}

/* Poster Image */
.poster-img-wrap {
  position: absolute; inset: 0;
  z-index: 0;
}
.poster-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.poster-card:hover .poster-img-wrap img {
  transform: scale(1.06);
}

/* Poster Fallback (no image) */
.poster-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #162032 0%, #0d1520 60%, #071018 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 0;
}
.poster-fallback i {
  font-size: 2.8rem;
  color: rgba(0,180,216,0.2);
  margin-bottom: 8px;
}
.poster-fallback-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Poster Gradient Overlay */
.poster-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Poster Content */
.poster-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  z-index: 4;
  display: flex; flex-direction: column;
  gap: 8px;
}
.poster-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.poster-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Poster Metadata Bar */
.poster-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.poster-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.poster-meta-item i {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Status Badge (top-right of poster) */
.poster-status {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 5;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 5px;
  animation: fadeInScale 0.4s ease;
}
.poster-status.pending {
  background: rgba(245,158,11,0.25);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3);
}
.poster-status.approved {
  background: rgba(81,207,102,0.25);
  color: #6ee7b7;
  border: 1px solid rgba(81,207,102,0.3);
}
.poster-status.enrolled {
  background: rgba(81,207,102,0.3);
  color: #4ade80;
  border: 1px solid rgba(81,207,102,0.4);
}
.poster-status.rejected {
  background: rgba(255,107,107,0.25);
  color: #fca5a5;
  border: 1px solid rgba(255,107,107,0.3);
}

/* Action Button inside poster */
.poster-action-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  position: relative; overflow: hidden;
}
.poster-action-btn.request {
  background: linear-gradient(135deg, #004052 0%, #00b4d8 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,180,216,0.3);
}
.poster-action-btn.request:hover {
  box-shadow: 0 6px 24px rgba(0,180,216,0.45);
  transform: translateY(-1px);
}
.poster-action-btn.pending-btn {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  cursor: default;
}
.poster-action-btn.approved-btn {
  background: rgba(81,207,102,0.15);
  color: #51cf66;
  cursor: default;
}
.poster-action-btn.enrolled-btn {
  background: rgba(81,207,102,0.2);
  color: #4ade80;
  cursor: default;
}
.poster-action-btn.retry-btn {
  background: rgba(255,107,107,0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255,107,107,0.3);
}
.poster-action-btn.retry-btn:hover {
  background: rgba(255,107,107,0.25);
}
.poster-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Skeleton for Posters */
.poster-skeleton {
  aspect-ratio: 9/16;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--border-color) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Empty State for Requests */
.req-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.req-empty-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(0,180,216,0.06);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.req-empty-icon i {
  font-size: 2rem;
  color: var(--text-muted);
}
.req-empty h5 {
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 6px;
}
.req-empty p {
  font-size: 0.9rem;
}

/* Poster stagger entrance */
.poster-card.stagger-poster {
  animation: posterEnter 0.5s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes posterEnter {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dashboard Poster Cards */
.dash-poster-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}
@media (min-width: 520px) { .dash-poster-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; } }
.dash-poster-card {
  aspect-ratio: 9/14 !important;
}
.dash-poster-card .poster-content {
  gap: 5px;
}
.dash-poster-card .poster-gradient {
  height: 75%;
}
.dash-poster-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-poster-progress .h-progress {
  flex: 1;
}
.dash-poster-pct {
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 30px;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (max-width: 400px) {
  .req-hero-title { font-size: 1.3rem; }
  .req-steps-bar { gap: 0; }
  .req-step { padding: 8px 10px; font-size: 0.78rem; }
  .req-step span { display: none; }
  .req-step.active span { display: inline; }
  .req-step-line { width: 20px; }
  .poster-grid { gap: 10px; }
  .poster-title { font-size: 0.82rem; }
  .poster-content { padding: 10px; }
  .poster-action-btn { padding: 8px; font-size: 0.78rem; }
}
/* =====================================================
   VIDEO ENHANCEMENTS - Layered on existing
   ===================================================== */
.video-wrapper { position: relative; }

/* Controls Overlay */
.vid-controls-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  display: flex; gap: 20px; align-items: center; z-index: 10;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.video-wrapper:hover .vid-controls-overlay,
.video-wrapper.show-controls .vid-controls-overlay { opacity: 1; pointer-events: all; }
.vid-ctrl-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; position: relative;
  flex-direction: column; gap: 0;
}
.vid-ctrl-btn:hover { background: rgba(0,180,216,0.7); transform: scale(1.1); }
.vid-ctrl-btn small { font-size: 0.55rem; position: absolute; bottom: 6px; }
.vid-ctrl-btn:nth-child(2) { width: 56px; height: 56px; font-size: 1.2rem; }

/* Top Actions */
.vid-top-actions {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 6px; z-index: 10;
  opacity: 0; transition: opacity 0.3s;
}
.video-wrapper:hover .vid-top-actions { opacity: 1; }
.vid-top-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 0.85rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.vid-top-btn:hover { background: rgba(0,180,216,0.7); }

/* Speed Control */
.vid-speed-control {
  display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px;
  padding: 8px 10px; animation: fadeInScale 0.2s ease;
}
.vid-speed-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-color);
  background: transparent; color: var(--text-secondary); font-family: inherit;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.vid-speed-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.vid-speed-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* End Screen */
.vid-end-screen {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(10,14,23,0.95);
  display: flex; align-items: center; justify-content: center;
  animation: fadeInScale 0.4s ease; border-radius: 12px;
}
.vid-end-content { text-align: center; padding: 24px; max-width: 340px; width: 90%; }
.vid-end-check { font-size: 3rem; color: var(--success); margin-bottom: 12px; animation: countUp 0.5s ease; }
.vid-end-content h4 { color: #fff; margin-bottom: 12px; }
.vid-end-progress { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.vid-end-actions { display: flex; gap: 8px; }

/* Resume Prompt */
.vid-resume-prompt {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 15; animation: slideUp 0.35s ease;
}
.vid-resume-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 16px 20px; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); min-width: 260px;
  
}
.vid-resume-card p { font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }

/* Mini Player */
.mini-player {
  position: fixed; bottom: 80px; right: 16px; z-index: 4000;
  width: 320px; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease; resize: both; cursor: move;
  touch-action: none;
}
.mini-player-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: rgba(0,0,0,0.3);
  cursor: move; user-select: none;
}
.mini-player-title {
  font-size: 0.8rem; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;
}
.mini-player-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: rgba(255,255,255,0.1); color: var(--text-primary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; transition: all 0.2s;
}
.mini-player-btn:hover { background: rgba(0,180,216,0.3); }
.mini-player-video { aspect-ratio: 16/9; background: #000; }
.mini-player-video iframe, .mini-player-video video { width: 100%; height: 100%; border: none; }
@media (max-width: 480px) {
  .mini-player { width: 260px; bottom: 75px; right: 8px; }
}

/* Bookmark items */
.vid-bookmark-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 10px; margin-bottom: 6px; cursor: pointer; transition: all 0.2s;
}
.vid-bookmark-item:hover { border-color: var(--primary); background: rgba(0,180,216,0.05); }
.vid-bookmark-time { color: var(--primary); font-weight: 700; font-size: 0.88rem; min-width: 50px; }
.vid-bookmark-del { color: var(--text-muted); background: none; border: none; cursor: pointer; font-size: 0.85rem; padding: 4px; }
.vid-bookmark-del:hover { color: var(--danger); }

/* Enhanced Drawer Items */
.drawer-item .drawer-watch-bar { height: 3px; background: var(--border-color); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.drawer-item .drawer-watch-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.3s; }
.drawer-item.completed { border-right: 3px solid var(--success); }
.drawer-item.in-progress { border-right: 3px solid var(--warning); }

/* Video bookmark toast */
.vid-bookmark-toast {
  position: absolute; top: 10px; right: 10px; z-index: 20;
  background: var(--success); color: #fff; padding: 8px 14px;
  border-radius: 10px; font-size: 0.82rem; font-weight: 600;
  animation: fadeInScale 0.3s ease; pointer-events: none;
}
@keyframes namePulseGlow{0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.85;transform:scale(1.02);}}
