/* ==========================================================================
   TLC ENGLISH ACADEMY - RESOURCES, GOOGLE DRIVE COURSES & VAULT STYLES
   ========================================================================== */

/* Sub-tabs Navigation inside #resources */
.resources-vault-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.res-tab-nav-btn {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(22, 35, 54, 0.04);
}

.res-tab-nav-btn:hover {
  border-color: var(--tlc-red);
  color: var(--tlc-red);
  transform: translateY(-2px);
}

.res-tab-nav-btn.active {
  background: var(--tlc-red);
  color: #FFFFFF;
  border-color: var(--tlc-red);
  box-shadow: 0 6px 20px rgba(204, 23, 29, 0.3);
}

/* Tab Panels */
.vault-tab-panel {
  display: none;
  animation: fadeIn 300ms ease;
}

.vault-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section wrapper & header enhancements */
.drive-courses-section-wrapper {
  background: #FFFFFF;
  border: 1.5px solid rgba(204, 23, 29, 0.2);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: 0 8px 30px rgba(22, 35, 54, 0.06);
  position: relative;
  overflow: hidden;
}

.drive-courses-section-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tlc-red), var(--accent-gold), var(--tlc-red));
}

.drive-section-intro-bar {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid #E2E8F0;
}

.drive-intro-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.drive-section-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.drive-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #162336;
  margin: 0;
}

.drive-section-sub {
  font-size: 0.98rem;
  color: #64748B;
  line-height: 1.7;
  margin: 0;
}

/* Drive Courses Grid */
.drive-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

/* Recorded Portal Cart & Quick Selection Bar */
.recorded-portal-cart-bar {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFD 100%);
  border: 1.5px solid rgba(204, 23, 29, 0.2);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(22, 35, 54, 0.04);
}

.cart-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tlc-red);
  background: var(--tlc-red-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.cart-bar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #162336;
  margin: 0 0 6px 0;
}

.cart-bar-desc {
  font-size: 0.92rem;
  color: #64748B;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.cart-selection-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.cart-box-item {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
}

.cart-box-item:hover {
  border-color: rgba(204, 23, 29, 0.4);
}

.cart-box-item.selected {
  border-color: var(--tlc-red);
  background: #FEF2F2;
}

.cart-box-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--tlc-red);
  cursor: pointer;
}

.cart-box-info strong {
  display: block;
  font-size: 0.95rem;
  color: #162336;
  margin-bottom: 2px;
}

.cart-box-info span {
  font-size: 0.82rem;
  color: #64748B;
}

.cart-bar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Flagship Drive Course Card */
.drive-course-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(22, 35, 54, 0.04);
  cursor: pointer;
}

.drive-course-card:hover {
  border-color: rgba(204, 23, 29, 0.4);
  box-shadow: 0 16px 40px rgba(22, 35, 54, 0.1);
  transform: translateY(-3px);
}

.drive-course-card.is-unlocked {
  border-color: #10B981;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
}

.drive-quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.drive-quick-chips .chip-item {
  background: #F8FAFC;
  color: #475569;
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  font-weight: 600;
}

.drive-course-card:hover {
  border-color: rgba(204, 23, 29, 0.4);
  box-shadow: 0 16px 40px rgba(22, 35, 54, 0.1);
  transform: translateY(-3px);
}

.drive-course-card.is-unlocked {
  border-color: #10B981;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
}

.drive-card-main {
  display: flex;
  flex-direction: column;
}

.drive-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.drive-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-drive-platform {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-drive-lessons {
  background: var(--tlc-red-light);
  border: 1px solid rgba(204, 23, 29, 0.2);
  color: var(--tlc-red);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-lock-status {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-lock-status.locked {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}

.badge-lock-status.unlocked {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
}

.drive-course-title-en {
  font-size: 1.65rem;
  font-weight: 800;
  color: #162336;
  margin: 0 0 6px 0;
  font-family: var(--font-display);
  letter-spacing: normal !important;
  word-spacing: 0.04em;
}

.drive-course-title-ar {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tlc-red);
  margin: 0 0 16px 0;
}

.drive-course-desc {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 22px;
}

.drive-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 16px;
  margin-bottom: 22px;
  background: #F8FAFD;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.drive-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

.drive-feature-bullet {
  color: var(--tlc-red);
  font-weight: 800;
  flex-shrink: 0;
}

/* Sidebar action panel of course card */
.drive-card-sidebar {
  background: #F8FAFD;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.drive-sidebar-head {
  margin-bottom: 18px;
}

.drive-icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(22, 35, 54, 0.05);
}

.drive-specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  text-align: right;
  font-size: 0.86rem;
  color: #475569;
  border-top: 1px dashed #CBD5E1;
  border-bottom: 1px dashed #CBD5E1;
  padding: 14px 0;
}

.drive-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drive-spec-label {
  color: #64748B;
}

.drive-spec-val {
  font-weight: 700;
  color: #162336;
}

.drive-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-open-course {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 200ms ease;
  border: none;
}

.btn-open-course.btn-locked {
  background: linear-gradient(135deg, var(--tlc-red) 0%, #a31116 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(204, 23, 29, 0.25);
}

.btn-open-course.btn-locked:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(204, 23, 29, 0.35);
}

.btn-open-course.btn-unlocked {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.btn-open-course.btn-unlocked:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.btn-drive-direct {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 180ms ease;
}

.btn-drive-direct:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ==========================================================================
   MODAL 1: COURSE ACCESS & PAYMENT MODAL (USERNAME & PASSWORD)
   ========================================================================== */
.course-access-modal-content {
  max-width: 620px;
  width: 92%;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  box-shadow: 0 25px 70px rgba(15, 24, 38, 0.25);
  border: 1px solid #E2E8F0;
  color: #162336;
  text-align: right;
  direction: rtl;
  max-height: 90vh;
  overflow-y: auto;
}

.course-access-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 16px;
}

.course-access-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #162336;
  margin: 0 0 4px 0;
}

.course-access-header p {
  font-size: 0.9rem;
  color: #64748B;
  margin: 0;
}

/* Modal Tabs */
.course-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #F1F5F9;
  padding: 6px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.course-tab-btn {
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.course-tab-btn.active {
  background: #FFFFFF;
  color: var(--tlc-red);
  box-shadow: 0 2px 8px rgba(22, 35, 54, 0.08);
}

/* Tab Panels */
.course-tab-panel {
  display: none;
}

.course-tab-panel.active {
  display: block;
}

/* Form Styles */
.passcode-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.username-input-group,
.passcode-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.username-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: #162336;
  transition: all 200ms ease;
  direction: ltr;
  text-align: right;
}

.username-input:focus {
  outline: none;
  border-color: var(--tlc-red);
  box-shadow: 0 0 0 3px rgba(204, 23, 29, 0.12);
}

.username-icon {
  position: absolute;
  right: 14px;
  color: #94A3B8;
  font-size: 1.15rem;
  pointer-events: none;
}

.passcode-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: #162336;
  transition: all 200ms ease;
  direction: ltr;
  text-align: center;
}

.passcode-input:focus {
  outline: none;
  border-color: var(--tlc-red);
  box-shadow: 0 0 0 3px rgba(204, 23, 29, 0.12);
}

.passcode-key-icon {
  position: absolute;
  right: 14px;
  color: #94A3B8;
  font-size: 1.2rem;
  pointer-events: none;
}

.passcode-toggle-vis {
  position: absolute;
  left: 14px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.passcode-error-msg {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
}

.passcode-error-msg.show {
  display: flex;
}

/* Payment Methods Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.payment-method-card {
  background: #F8FAFD;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.pm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #162336;
}

.pm-number-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pm-number-text {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  direction: ltr;
}

.pm-copy-btn {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.pm-copy-btn:hover {
  background: #DBEAFE;
}

.payment-instructions-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #92400E;
  line-height: 1.7;
}

.payment-instructions-box ol {
  margin: 8px 0 0 16px;
  padding: 0;
}

/* ==========================================================================
   MODAL 2: FULL CURRICULUM & LECTURES HUB MODAL (SIDE-BY-SIDE PLAYLIST)
   ========================================================================== */
.curriculum-modal-content {
  max-width: 1360px;
  width: 96vw;
  height: 92vh;
  max-height: 94vh;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: 0 25px 80px rgba(15, 24, 38, 0.35);
  border: 1px solid #E2E8F0;
  color: #162336;
  text-align: right;
  direction: rtl;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.curriculum-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.curriculum-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.curriculum-header-info h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #162336;
  margin: 0;
}

.curriculum-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Side-by-Side Main Container */
.curriculum-portal-layout {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
  direction: rtl;
  overflow: hidden;
}

/* ==========================================================================
   MAIN COLUMN: VIDEO PLAYER (RIGHT SIDE IN RTL)
   ========================================================================== */
.curriculum-player-main-col {
  flex: 1 1 65%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 12px;
}

.curriculum-player-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0F172A;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  min-height: 380px;
}

.curriculum-player-wrap.active {
  display: flex;
}

.curriculum-player-topbar {
  background: #1E293B;
  color: #FEFEFE;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

.curriculum-player-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#curriculum-player-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.curriculum-player-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  background: #000;
  display: block;
}

/* Player Bottom Control & Navigation Bar */
.player-bottom-controls-bar {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.player-nav-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-playlist-nav {
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  cursor: pointer;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.btn-playlist-nav:hover:not(:disabled) {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

.btn-playlist-nav.primary {
  background: #00a651;
  border-color: #00a651;
  color: #FFFFFF;
}

.btn-playlist-nav.primary:hover:not(:disabled) {
  background: #008744;
  border-color: #008744;
}

.btn-playlist-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.player-lesson-counter {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0F172A;
  background: #E2E8F0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.player-current-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.curr-lecture-tag {
  font-size: 0.76rem;
  font-weight: 800;
  background: #DCFCE7;
  color: #15803D;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.curr-lecture-title {
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

/* ==========================================================================
   SIDE COLUMN: PLAYLIST (دروس الكورس) (LEFT SIDE IN RTL, LIKE PICTURE)
   ========================================================================== */
.curriculum-playlist-sidebar-col {
  width: 380px;
  flex: 0 0 380px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.playlist-sidebar-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.playlist-sidebar-header {
  background: #F8FAFD;
  border-bottom: 1px solid #E2E8F0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.playlist-header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playlist-main-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #162336;
  margin: 0;
}

.playlist-total-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #008744;
  background: #DCFCE7;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.playlist-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.playlist-filter-btn {
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-full);
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
}

.playlist-filter-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.playlist-filter-btn.active {
  background: #00a651;
  border-color: #00a651;
  color: #FFFFFF;
  font-weight: 800;
}

.playlist-search-wrap {
  position: relative;
  width: 100%;
}

.playlist-search-input {
  width: 100%;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  outline: none;
  transition: border-color 150ms ease;
  box-sizing: border-box;
}

.playlist-search-input:focus {
  border-color: #00a651;
  box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.15);
}

/* Playlist Items Scrollable Area */
.playlist-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

/* Single Playlist Item Row (Exactly Like Screenshot) */
.playlist-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-align: right;
  direction: rtl;
}

.playlist-item-row:hover {
  background: #F0FDF4;
  border-color: #86EFAC;
  transform: translateX(-2px);
}

.playlist-item-content {
  flex: 1;
  min-width: 0;
}

.playlist-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #008744;
  line-height: 1.45;
  word-break: break-word;
}

.playlist-item-meta {
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.playlist-item-pill {
  background: #F1F5F9;
  color: #475569;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}

.playlist-item-pill.pdf {
  background: #EFF6FF;
  color: #1D4ED8;
}

.playlist-item-status-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* Active Playing Item Row (Exact Match to Picture) */
.playlist-item-row.is-active {
  background: #00a651 !important;
  border-color: #00a651 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 166, 81, 0.35);
  transform: translateX(-3px);
}

.playlist-item-row.is-active .playlist-item-title {
  color: #FFFFFF !important;
  font-weight: 800;
}

.playlist-item-row.is-active .playlist-item-meta {
  color: rgba(255, 255, 255, 0.92) !important;
}

.playlist-item-row.is-active .playlist-item-pill {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}

.playlist-item-row.is-active .playlist-item-status-icon {
  color: #FFFFFF;
}

.playing-pulse-icon {
  display: inline-block;
  font-size: 0.85rem;
  animation: tlcPulse 1.6s infinite ease-in-out;
}

@keyframes tlcPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Responsive Rules for Small Devices */
@media (max-width: 992px) {
  .curriculum-modal-content {
    height: 94vh;
    padding: 14px;
  }

  .curriculum-portal-layout {
    flex-direction: column;
    overflow-y: auto;
  }

  .curriculum-player-main-col {
    flex: none;
    width: 100%;
  }

  .curriculum-player-iframe {
    height: 280px;
    min-height: 240px;
  }

  .curriculum-playlist-sidebar-col {
    width: 100%;
    flex: 1;
    max-width: 100%;
    min-height: 320px;
  }

  .curr-lecture-title {
    max-width: 220px;
  }
}

/* ==========================================================================
   FREE VAULT RESOURCES GRID (EXISTING)
   ========================================================================== */
.vault-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.resource-card {
  background: #FEFEFE;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 250ms ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(22, 35, 54, 0.05);
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 23, 29, 0.4);
  box-shadow: 0 12px 28px rgba(22, 35, 54, 0.1);
}

.resource-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.resource-tag-cat {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--tlc-red);
  background: var(--tlc-red-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.resource-badge-feat {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--tlc-navy);
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.resource-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #162336;
}

.resource-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 20px;
  flex: 1;
}

.resource-highlights-box {
  background: #F8FAFD;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.resource-highlights-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resource-highlights-box li {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resource-highlights-box li::before {
  content: "✦";
  color: var(--tlc-red);
  font-size: 0.75rem;
}

.resource-meta-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: #64748B;
}

.resource-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Download Unlock Modal */
.resource-modal-content {
  max-width: 540px;
  background: #FEFEFE;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 60px rgba(22, 35, 54, 0.25);
  text-align: center;
  padding: 28px 26px;
  color: #162336;
}

.resource-modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.resource-modal-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #162336;
}

.resource-modal-desc {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .drive-course-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .drive-card-sidebar {
    text-align: right;
  }
  .drive-icon-box {
    margin: 0 0 12px 0;
  }
}

@media (max-width: 640px) {
  .drive-courses-section-wrapper {
    padding: 20px 16px;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
  .playlist-lesson-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }
  .playlist-lesson-left {
    align-items: flex-start;
    gap: 10px;
  }
  .btn-playlist-play {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .curriculum-player-nav-bar {
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
  }
  .btn-player-nav {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .course-modal-tabs {
    grid-template-columns: 1fr;
  }
  .curriculum-modal-content {
    padding: 16px 12px;
    width: 98%;
  }
  .curriculum-player-iframe {
    height: 210px;
  }
}

/* ==============================================================================
   TLC STUDENT PORTAL & ANTI-SCREEN-RECORDING DRM STYLES
   ============================================================================== */

/* Portal Notice Banner */
.portal-security-notice-strip {
  background: linear-gradient(90deg, #FEF2F2 0%, #FFFBEB 100%);
  border: 1.5px solid #FCA5A5;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.06);
}

.portal-security-notice-strip .psn-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.portal-security-notice-strip .psn-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.portal-security-notice-strip .psn-text {
  font-size: 0.94rem;
  color: #1F2937;
  line-height: 1.65;
}

.portal-security-notice-strip .psn-text strong {
  color: #B91C1C;
}

.btn-portal-wa-request {
  background: #25D366;
  color: #FFFFFF !important;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  text-decoration: none;
}

.btn-portal-wa-request:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
}

/* 45-Day Validity Meter */
.portal-expiry-meter {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: right;
}

.portal-expiry-meter.expired {
  background: #FEF2F2;
  border-color: #FECACA;
}

.portal-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: #15803D;
  margin-bottom: 8px;
}

.portal-expiry-meter.expired .portal-meter-header {
  color: #B91C1C;
}

.portal-meter-bar {
  height: 8px;
  width: 100%;
  background: #DCFCE7;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.portal-expiry-meter.expired .portal-meter-bar {
  background: #FEE2E2;
}

.portal-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 9999px;
  transition: width 400ms ease;
}

.portal-expiry-meter.expired .portal-meter-fill {
  background: #DC2626;
}

.portal-meter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 6px;
}

/* DRM Player Security Container */
.player-security-container {
  position: relative;
  overflow: hidden;
  background: #000000;
  user-select: none;
  -webkit-user-select: none;
}

/* Dynamic Floating Watermark */
.tlc-drm-watermark {
  position: absolute;
  top: 25%;
  left: 20%;
  z-index: 25;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: monospace, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: top 3.2s ease-in-out, left 3.2s ease-in-out, opacity 1.5s ease-in-out;
}

.tlc-drm-watermark .wm-shield {
  color: #F59E0B;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tlc-drm-watermark .wm-user {
  color: #38BDF8;
  direction: ltr;
  text-align: left;
}

.tlc-drm-watermark .wm-meta {
  color: #CBD5E1;
  font-size: 0.68rem;
}

/* Anti-Screen-Recording Obscurity Shield */
.tlc-screen-recording-shield {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(11, 19, 32, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transition: opacity 200ms ease;
}

.tlc-screen-recording-shield.hidden {
  display: none !important;
}

.shield-box {
  max-width: 480px;
  background: #1E293B;
  border: 2px solid #EF4444;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.3);
  color: #FFFFFF;
}

.shield-badge-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.shield-box h3 {
  font-size: 1.25rem;
  color: #EF4444;
  margin: 0 0 10px 0;
  font-weight: 800;
}

.shield-box p {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.shield-guide {
  font-size: 0.82rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}

/* Topbar Status in Player */
.curriculum-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.curriculum-player-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pulse-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

.curriculum-drm-indicator {
  font-size: 0.78rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
}

.btn-fullscreen-toggle {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93C5FD;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-fullscreen-toggle:hover {
  background: rgba(37, 99, 235, 0.5);
  border-color: #60A5FA;
  color: #FFFFFF;
}

.btn-close-player {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 180ms ease;
}

.btn-close-player:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
}

/* Native Fullscreen Mode for Player Wrap */
.curriculum-player-wrap:fullscreen,
.curriculum-player-wrap:-webkit-full-screen,
.curriculum-player-wrap:-moz-full-screen,
.curriculum-player-wrap:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #000000 !important;
  z-index: 999999 !important;
}

.curriculum-player-wrap:fullscreen .curriculum-player-iframe,
.curriculum-player-wrap:-webkit-full-screen .curriculum-player-iframe,
.curriculum-player-wrap:-moz-full-screen .curriculum-player-iframe,
.curriculum-player-wrap:-ms-fullscreen .curriculum-player-iframe {
  flex: 1 !important;
  width: 100% !important;
  height: calc(100vh - 48px) !important;
  border-radius: 0 !important;
  border: none !important;
}

.curriculum-player-wrap:fullscreen .curriculum-player-topbar,
.curriculum-player-wrap:-webkit-full-screen .curriculum-player-topbar {
  padding: 10px 18px !important;
  background: #0B1320 !important;
  border-bottom: 1px solid #1E293B !important;
}

@media (max-width: 768px) {
  /* Drive Courses Grid on Mobile */
  .drive-courses-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Recorded Portal Cart & Selection Box on Mobile */
  .recorded-portal-cart-bar {
    padding: 18px 14px !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 22px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cart-bar-title {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }

  .cart-bar-desc {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }

  .cart-selection-boxes {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .cart-box-item {
    padding: 12px 14px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .cart-box-info strong {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  .cart-box-info span {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }

  .cart-bar-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .cart-bar-footer .btn {
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 0.92rem !important;
    box-sizing: border-box !important;
  }

  .portal-security-notice-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-portal-wa-request {
    width: 100%;
    justify-content: center;
  }
  .curriculum-drm-indicator {
    display: none;
  }
  .curriculum-top-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-toggle-all-modules {
    align-self: flex-start;
  }
  .lesson-row-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .lesson-actions-group {
    width: 100%;
    justify-content: flex-end;
  }
  .btn-lesson-play {
    width: 100%;
    justify-content: center;
  }
}

