/* ═══════════════════════════════════════════════════════════
   Student Panel — Extended Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Course learn card ── */
.learn-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
}
.learn-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.lc-thumb {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; font-weight: 800; position: relative;
}
.lc-thumb .lc-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 99px; background: rgba(0,0,0,.18); color: #fff;
}
.lc-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lc-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.lc-tutor { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.lc-prog { margin-top: 6px; }
.lc-prog-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.lc-foot {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* ── Explore card ── */
.explore-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ex-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all .2s;
  box-shadow: var(--sh);
}
.ex-card:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: var(--sh2); }
.ex-thumb { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; }
.ex-body { padding: 14px; }
.ex-title { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; line-height: 1.4; }
.ex-cat { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.ex-meta { display: flex; gap: 10px; margin-bottom: 10px; }
.ex-meta span { font-size: 11.5px; color: var(--text2); display: flex; align-items: center; gap: 3px; }
.ex-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.ex-price { font-size: 15px; font-weight: 800; }
.enrolled-tag { font-size: 10px; font-weight: 700; background: var(--gl); color: var(--green); padding: 2px 8px; border-radius: 99px; }

/* ── Invoice styles ── */
.inv-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--sh);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; gap: 16px;
}
.inv-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 4px 0 0 4px;
}
.inv-pending::before { background: var(--amber); }
.inv-paid::before { background: var(--green); }
.inv-failed::before { background: var(--red); }
.inv-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.inv-details { flex: 1; }
.inv-id { font-size: 11px; font-family: 'Fira Code', monospace; color: var(--muted); margin-bottom: 2px; }
.inv-course { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.inv-date { font-size: 11.5px; color: var(--muted); }
.inv-amount { font-size: 18px; font-weight: 800; text-align: right; }
.inv-actions { display: flex; gap: 7px; flex-direction: column; align-items: flex-end; }

/* ── Invoice print view ── */
.inv-print-wrap {
  max-width: 720px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh2);
}
.inv-print-head {
  background: linear-gradient(135deg, #7c3aed, #2563eb, #0d9488);
  color: #fff; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.inv-print-logo { font-size: 22px; font-weight: 800; }
.inv-print-logo span { opacity: .75; }
.inv-print-id { font-size: 12px; opacity: .8; margin-top: 4px; font-family: 'Fira Code', monospace; }
.inv-print-body { padding: 28px 32px; }
.inv-print-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.inv-field-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.inv-field-val { font-size: 14px; font-weight: 600; color: var(--text); }
.inv-items-table th { background: var(--bg); }
.inv-total-row { background: linear-gradient(135deg, var(--vl), var(--bl)); }
.inv-total-row td { font-weight: 800; font-size: 15px; color: var(--violet); }
.inv-print-foot { padding: 16px 32px; background: var(--bg); border-top: 1px solid var(--border); text-align: center; font-size: 11.5px; color: var(--muted); }
.inv-stamp { display: inline-block; border: 3px solid var(--green); color: var(--green); padding: 4px 18px; border-radius: 6px; font-weight: 800; font-size: 13px; transform: rotate(-8deg); margin-top: 6px; }
.inv-stamp-pending { border-color: var(--amber); color: var(--amber); }

/* ── Lesson viewer ── */
.lesson-sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  max-height: 600px;
  display: flex; flex-direction: column;
}
.ls-head { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 13px; background: var(--bg); }
.ls-list { flex: 1; overflow-y: auto; }
.ls-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid rgba(0,0,0,.04);
  cursor: pointer; transition: background .15s; font-size: 12.5px;
}
.ls-item:hover { background: var(--bg); }
.ls-item.active { background: var(--vl); border-right: 3px solid var(--violet); color: var(--violet); font-weight: 700; }
.ls-item.done .ls-num { background: var(--green); color: #fff; }
.ls-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0; border: 1.5px solid var(--border);
}
.ls-title { flex: 1; line-height: 1.4; }
.ls-dur { font-size: 10px; color: var(--muted); }

.lesson-viewer { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.lv-player {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.lv-player-area {
  background: #1a1d2e;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: rgba(255,255,255,.7);
}
.lv-play-btn {
  width: 70px; height: 70px; background: var(--violet);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; cursor: pointer; box-shadow: 0 6px 24px rgba(124,58,237,.5);
  transition: transform .2s;
}
.lv-play-btn:hover { transform: scale(1.08); }
.lv-meta { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.lv-title { font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.lv-controls { padding: 14px 20px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Live class student card ── */
.slc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--sh);
  display: flex; align-items: center; gap: 14px;
  transition: all .2s;
}
.slc-card:hover { border-color: var(--violet); box-shadow: var(--sh2); }
.slc-ic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.slc-body { flex: 1; }
.slc-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.slc-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.slc-acts { display: flex; gap: 7px; flex-shrink: 0; }

/* ── Pay modal ── */
.pay-step { display: none; }
.pay-step.active { display: block; }
.pay-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.pay-method-btn {
  border: 2px solid var(--border); border-radius: var(--rsm);
  padding: 14px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--bg);
  font-size: 12.5px; font-weight: 600;
}
.pay-method-btn:hover, .pay-method-btn.selected { border-color: var(--violet); background: var(--vl); color: var(--violet); }
.pay-method-btn .pm-icon { font-size: 24px; margin-bottom: 5px; }
.upi-input-wrap { display: flex; gap: 8px; margin-top: 10px; }
.upi-input-wrap .fi { flex: 1; }
.pay-summary {
  background: var(--bg); border-radius: var(--rsm);
  padding: 14px; margin: 14px 0;
  border: 1px solid var(--border);
}
.pay-summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.pay-summary-row.total { font-weight: 800; font-size: 15px; border-top: 1.5px dashed var(--border); margin-top: 5px; padding-top: 10px; color: var(--violet); }
.pay-success-wrap { text-align: center; padding: 20px 0; }
.pay-success-icon { font-size: 56px; margin-bottom: 12px; }
.pay-success-wrap h3 { font-size: 18px; font-weight: 800; margin-bottom: 5px; color: var(--green); }

/* ── Dashboard stat layout ── */
.stu-sg { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }

/* ── Profile ── */
.profile-avatar-big {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  border: 3px solid var(--vm);
  box-shadow: 0 4px 16px rgba(124,58,237,.2);
}

/* ── Responsive ── */
@media(max-width:1100px){ .explore-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:900px){
  .lesson-sidebar { width: 100%; max-height: 260px; }
  .explore-grid { grid-template-columns: repeat(2,1fr); }
  .stu-sg { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:640px){
  .explore-grid { grid-template-columns: 1fr; }
  .stu-sg { grid-template-columns: 1fr 1fr; }
  .inv-print-row { grid-template-columns: 1fr; }
  .pay-method-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .sidebar, .header, .btn, .ph-acts, .no-print { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 0 !important; }
  .inv-print-wrap { box-shadow: none; border: none; }
}
