/* ==========================================================================
   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
   ========================================================================== */
.curriculum-modal-content {
  max-width: 960px;
  width: 95%;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 25px 80px rgba(15, 24, 38, 0.3);
  border: 1px solid #E2E8F0;
  color: #162336;
  text-align: right;
  direction: rtl;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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

/* Embedded Player Wrap */
.curriculum-player-wrap {
  background: #0F172A;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
}

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

.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;
}

.curriculum-player-iframe {
  width: 100%;
  height: 380px;
  border: none;
  background: #000;
}

/* Curriculum Scrollable Area */
.curriculum-modules-scroll {
  overflow-y: auto;
  flex: 1;
  padding-left: 6px;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}

/* Curriculum Top Stats Bar */
.curriculum-top-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: #F8FAFD;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
}

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

.stat-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stat-pill.pdf {
  color: #1D4ED8;
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.stat-pill.green {
  color: #15803D;
  background: #DCFCE7;
  border-color: #BBF7D0;
}

.stat-pill .stat-num {
  font-weight: 800;
  color: var(--tlc-red);
}

.stat-pill.pdf .stat-num {
  color: #1D4ED8;
}

.btn-toggle-all-modules {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 180ms ease;
}

.btn-toggle-all-modules:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

/* Module Accordion Card */
.curriculum-module-card {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.curriculum-module-card:hover {
  border-color: #CBD5E1;
}

.curriculum-module-card.expanded {
  border-color: #94A3B8;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.module-card-header {
  background: #F8FAFD;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all 180ms ease;
  user-select: none;
}

.module-card-header:hover {
  background: #EFF6FF;
}

.curriculum-module-card.expanded .module-card-header {
  border-bottom-color: #E2E8F0;
  background: #F1F5F9;
}

.module-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-num-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: var(--radius-full);
  background: var(--tlc-red);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-title-text {
  font-size: 1rem;
  font-weight: 700;
  color: #162336;
}

.module-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-lessons-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.module-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.curriculum-module-card.expanded .module-chevron {
  transform: rotate(180deg);
}

/* Lessons List inside Module */
.module-lessons-list {
  display: none;
  flex-direction: column;
}

.curriculum-module-card.expanded .module-lessons-list {
  display: flex;
}

.lesson-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #F1F5F9;
  transition: background 150ms ease;
}

.lesson-row-item:last-child {
  border-bottom: none;
}

.lesson-row-item:hover {
  background: #F8FAFD;
}

.lesson-row-item.is-playing-now {
  background: #F0FDF4;
  border-left: 3px solid #10B981;
}

.lesson-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.lesson-num-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  background: #E2E8F0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.lesson-num-pill.book {
  background: #DBEAFE;
  color: #1E40AF;
  min-width: auto;
  padding: 3px 10px;
}

.lesson-title-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.5;
  word-break: break-word;
}

.lesson-quality-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #BFDBFE;
  display: inline-block;
  margin-top: 3px;
}

.lesson-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-lesson-play {
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--tlc-red-light);
  color: var(--tlc-red);
  border: 1px solid rgba(204, 23, 29, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 180ms ease;
  white-space: nowrap;
}

.btn-lesson-play:hover {
  background: var(--tlc-red);
  color: #FFFFFF;
}

.btn-lesson-play.book {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.btn-lesson-play.book:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
}

.btn-lesson-play.is-playing {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.btn-lesson-drive {
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 180ms ease;
}

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

/* ==========================================================================
   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) {
  .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;
  }
}

