/* ============================================================
   learner-dashboard.css  -  Paid learner dashboard (/profile, /my-programs)
   Pairs with js/learner-dashboard.js. Brand: magenta #C81240,
   teal #0F766E, navy #1A1A2E.
   ============================================================ */

.ld-head h2 {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 20px; font-weight: 800; color: #1A1A2E;
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
}
.ld-head h2 i { color: #C81240; }
.ld-head h2 { margin-bottom: 4px; }
.ld-sub { margin: 0 0 16px; font-size: 13.5px; color: #6b6b8a; }

.ld-loading { display: flex; flex-direction: column; gap: 10px; }

/* ── Action needed ── */
.ld-action {
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 16px;
  padding: 16px 18px; margin-bottom: 20px;
}
.ld-action-head { font-weight: 800; color: #C2410C; font-size: 14px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.ld-action ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ld-action li a {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: #1A1A2E;
  background: #fff; border: 1px solid #FDE3C8; border-radius: 12px; padding: 11px 14px;
  font-size: 14px; font-weight: 600; transition: border-color .15s, transform .15s;
}
.ld-action li a:hover { border-color: #F97316; transform: translateX(2px); }
.ld-action li a > i:first-child { color: #EA580C; width: 18px; text-align: center; }
.ld-action li span { flex: 1; min-width: 0; }
.ld-action li small { display: block; font-size: 12px; color: #9a6b4b; font-weight: 500; margin-top: 2px; }
.ld-action-go { color: #FDBA74; font-size: 12px; }
.ld-action--clear {
  background: #F0FDF4; border-color: #BBF7D0; color: #166534; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}

/* ── Program card ── */
.ld-program {
  background: #fff; border: 1px solid rgba(26,26,46,.08); border-radius: 18px;
  box-shadow: 0 2px 16px rgba(26,26,46,.06); padding: 22px 22px 16px; margin-bottom: 20px;
  scroll-margin-top: calc(var(--header-h, 72px) + 16px);
}
.ld-program-name {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 17px; font-weight: 800; color: #1A1A2E; margin: 0 0 8px; line-height: 1.35;
}
.ld-program-sub { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12.5px; color: #6b6b8a; }
.ld-mode {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px;
  color: #0F766E; background: rgba(15,118,110,.08); border-radius: 20px; padding: 4px 11px;
}
.ld-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #1A1A2E; }

/* ── Steps ── */
.ld-steps {
  list-style: none; margin: 18px 0 14px; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px;
}
.ld-step {
  display: flex; align-items: center; gap: 10px; background: #F8F8FB; border-radius: 12px;
  padding: 10px 12px; font-size: 13px; font-weight: 700; color: #1A1A2E;
}
.ld-step small { display: block; font-size: 11.5px; color: #9999b0; font-weight: 500; margin-top: 1px; }
.ld-step-dot {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: #E5E7EB; color: #6b6b8a;
}
.ld-step--done .ld-step-dot { background: #0F766E; color: #fff; }
.ld-step--todo { background: #FFF1F2; }
.ld-step--todo .ld-step-dot { background: #C81240; color: #fff; }
.ld-step--wait .ld-step-dot { background: #FEF3C7; color: #B45309; }

/* ── Admit card block ── */
.ld-admit {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid #eee;
}
.ld-admit-text { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #1A1A2E; min-width: 0; flex: 1 1 240px; }
.ld-admit-text > i { color: #0F766E; font-size: 18px; margin-top: 2px; }
.ld-admit-text span { display: block; font-size: 12.5px; color: #6b6b8a; margin-top: 2px; }
.ld-admit--todo { background: #FFF1F2; border-color: #FECDD3; }
.ld-admit--todo .ld-admit-text > i { color: #C81240; }
.ld-admit--done { background: #F0FDFA; border-color: #CCFBF1; }
.ld-admit--wait { background: #FFFBEB; border-color: #FDE68A; }
.ld-admit--wait .ld-admit-text > i { color: #B45309; }

/* ── Next up ── */
.ld-next {
  border: 1.5px solid #0F766E; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(15,118,110,.05), rgba(15,118,110,0));
}
.ld-next-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0F766E; margin-bottom: 6px; }
.ld-next-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ld-next-info { min-width: 0; flex: 1 1 220px; }
.ld-next-status { margin-top: 8px; }
.ld-rel { font-size: 12px; color: #B45309; font-weight: 700; margin-left: 4px; }
.ld-next--empty { border-style: dashed; border-color: #D1D5DB; background: #FAFAFC; color: #6b6b8a; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }

/* ── Tests list ── */
.ld-fold { border-top: 1px solid #F0F0F5; }
.ld-fold > summary {
  cursor: pointer; list-style: none; padding: 12px 2px; font-size: 13.5px; font-weight: 700; color: #1A1A2E;
  display: flex; align-items: center; gap: 8px;
}
.ld-fold > summary::-webkit-details-marker { display: none; }
.ld-fold > summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: #9999b0; margin-left: auto; transition: transform .2s; }
.ld-fold[open] > summary::after { transform: rotate(180deg); }
.ld-fold > summary i { color: #0F766E; width: 16px; text-align: center; }

.ld-tests { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.ld-test {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid #EEF0F4; border-radius: 12px; padding: 11px 14px;
}
.ld-test-info { min-width: 0; flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.ld-test-title { font-weight: 800; color: #1A1A2E; font-size: 14px; line-height: 1.4; }
.ld-test-name { font-weight: 700; }
.ld-test-meta { font-size: 12.5px; color: #6b6b8a; line-height: 1.45; }
.ld-track { font-size: 11px; font-weight: 700; color: #4338CA; background: #EEF2FF; border-radius: 6px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }

/* ── Chips ── */
.ld-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  border-radius: 20px; padding: 3px 10px; line-height: 1.5;
}
.ld-chip i { font-size: 11px; }
.ld-chip--green { color: #166534; background: #DCFCE7; }
.ld-chip--blue  { color: #1D4ED8; background: #DBEAFE; }
.ld-chip--amber { color: #9A3412; background: #FFEDD5; }
.ld-chip--grey  { color: #4B5563; background: #F3F4F6; }
.ld-chip--red   { color: #B91C1C; background: #FEE2E2; }
.ld-chip--violet { color: #6D28D9; background: #EDE9FE; box-shadow: inset 0 0 0 1px #C4B5FD; }

/* ── Buttons ── */
.ld-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  font-family: inherit; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.ld-btn--primary { background: #C81240; color: #fff; }
.ld-btn--primary:hover { background: #A50F35; color: #fff; }
.ld-btn--ghost { background: #fff; color: #0F766E; border-color: rgba(15,118,110,.35); }
.ld-btn--ghost:hover { border-color: #0F766E; background: rgba(15,118,110,.05); }
.ld-btn--wa { background: #25D366; color: #fff; }
.ld-btn--wa:hover { background: #1DA851; color: #fff; }
.ld-btn--link { background: none; color: #6b6b8a; padding-left: 4px; padding-right: 4px; }
.ld-btn--link:hover { color: #C81240; }

/* ── How it works ── */
.ld-howto { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: #374151; line-height: 1.55; }
.ld-howto strong { color: #1A1A2E; }

/* ── Interview program: WhatsApp / book info rows + 5-session plan ── */
.ld-info {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid #eee;
}
.ld-info-text { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #1A1A2E; min-width: 0; flex: 1 1 260px; line-height: 1.45; }
.ld-info-text > i { font-size: 18px; margin-top: 2px; width: 18px; text-align: center; }
.ld-info-text span { display: block; font-size: 12.5px; color: #6b6b8a; margin-top: 3px; line-height: 1.55; }
.ld-info--wa { background: #F0FDF4; border-color: #BBF7D0; }
.ld-info--wa .ld-info-text > i { color: #16A34A; }
.ld-info--book { background: #FFF7F9; border-color: #FBD5DF; }
.ld-info--book .ld-info-text > i { color: #C81240; }
.ld-tag { display: inline-block !important; margin: 0 0 0 6px !important; font-size: 10.5px !important; font-weight: 800; letter-spacing: .03em; color: #fff !important; background: #C81240; border-radius: 10px; padding: 2px 8px; vertical-align: 1px; }
.ld-plan { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; }
.ld-plan-row { display: flex; gap: 12px; border: 1px solid #EEF0F4; border-radius: 12px; padding: 11px 14px; }
.ld-plan-day { flex-shrink: 0; white-space: nowrap; font-weight: 800; font-size: 12.5px; color: #0F766E; background: rgba(15,118,110,.08); border-radius: 8px; padding: 3px 9px; height: fit-content; }
.ld-plan-body { min-width: 0; flex: 1; }
.ld-plan-title { font-size: 14px; font-weight: 800; color: #1A1A2E; margin-bottom: 3px; }
.ld-plan-focus { font-size: 13px; color: #4B5563; line-height: 1.55; }
.ld-plan-note { margin: 0 0 12px; font-size: 12.5px; color: #166534; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.ld-plan-note i { margin-top: 3px; }

.ld-footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid #F0F0F5; padding-top: 14px; }

/* ── Profile page: account details fold ── */
.pf-fold > summary { cursor: pointer; list-style: none; }
.pf-fold > summary::-webkit-details-marker { display: none; }
.pf-fold:not([open]) > summary { border-bottom: none; }
.pf-fold > summary h2::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: #9999b0; margin-left: auto; transition: transform .2s; }
.pf-fold[open] > summary h2::after { transform: rotate(180deg); }
.pf-fold > summary h2 { width: 100%; }

@media (max-width: 600px) {
  .ld-program { padding: 18px 14px 12px; border-radius: 14px; }
  .ld-steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ld-step { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; font-size: 12px; line-height: 1.3; }
  .ld-step small { font-size: 11px; }
  .ld-next-row, .ld-test { flex-direction: column; align-items: stretch; }
  .ld-next-info, .ld-test-info, .ld-admit-text { flex: 0 0 auto; }
  .ld-actions .ld-btn { flex: 1 1 auto; justify-content: center; }
  .ld-admit .ld-btn, .ld-info .ld-btn { width: 100%; justify-content: center; }
  .ld-plan-row { flex-direction: column; gap: 8px; }
  .ld-plan-day { align-self: flex-start; }
}

/* ── Mock Interview Add-on (RPSC AE card) ── */
.ld-addon { border: 1px solid #c4b5fd; background: linear-gradient(180deg, #faf5ff, #fff 70%); border-radius: 14px; padding: 16px; margin: 0 0 14px; }
.ld-addon-tag { display: inline-block; font-size: 11px; font-weight: 800; color: #5b21b6; background: #ede9fe; border-radius: 50px; padding: 3px 10px; margin-bottom: 8px; }
.ld-addon-title { font-size: 15px; font-weight: 800; color: #1A1A2E; display: flex; gap: 8px; align-items: center; }
.ld-addon-title i { color: #6D28D9; }
.ld-addon-sub { font-size: 13px; color: #6b6b8a; margin: 4px 0 14px; line-height: 1.5; }
.ld-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ld-pack { position: relative; border: 1.5px solid #e5e7eb; background: #fff; border-radius: 12px; padding: 16px 10px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ld-pack.is-best { border: 2px solid #7C3AED; background: #faf5ff; box-shadow: 0 6px 18px rgba(124,58,237,.15); }
.ld-pack-best { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #7C3AED; color: #fff; font-size: 11px; font-weight: 800; border-radius: 50px; padding: 2px 10px; white-space: nowrap; }
.ld-pack b { font-size: 14px; color: #1A1A2E; }
.ld-pack-price { font-size: 22px; font-weight: 800; color: #C81240; margin-top: 2px; }
.ld-pack.is-best .ld-pack-price { color: #6D28D9; }
.ld-pack small { font-size: 12px; color: #6b6b8a; margin-bottom: 10px; }
.ld-pack-save { background: #dcfce7; color: #166534; font-size: 11.5px; font-weight: 800; border-radius: 50px; padding: 2px 10px; margin: -4px 0 10px; }
.ld-pack .ld-btn { margin-top: auto; width: 100%; justify-content: center; }
.ld-btn--best { background: #7C3AED; color: #fff; border-color: #7C3AED; }
.ld-addon-msg { margin-top: 12px; background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.ld-addon-msg.is-ok { background: #f0fdf4; border-color: #86efac; color: #166534; }
.ld-addon-note { font-size: 12px; color: #6b6b8a; margin: 12px 0 0; }

/* ── Your mock interviews (attendance, marks out of 72, feedback, recording) ── */
.ld-mi { margin: 14px 0; }
.ld-mi-title { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.ld-mi-title i { color: #C81240; margin-right: 4px; }
.ld-mi-card { background: #fff; border: 1.5px solid #E2E8F0; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.ld-mi-card--done { border-color: #BBF7D0; }
.ld-mi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ld-mi-head strong { display: block; font-size: 14.5px; }
.ld-mi-head span { font-size: 12.5px; color: #64748B; }
.ld-mi-badge { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 50px; padding: 3px 10px; background: #F1F5F9; color: #475569; white-space: nowrap; }
.ld-mi-badge--ok { background: #DCFCE7; color: #166534; }
.ld-mi-badge--bad { background: #FEE2E2; color: #991B1B; }
.ld-mi-badge--info { background: #DBEAFE; color: #1E40AF; }
.ld-mi-result { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; }
.ld-mi-score { --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#16A34A calc(var(--p) * 1%), #E2E8F0 0); }
.ld-mi-score > div { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ld-mi-score b { font-size: 21px; line-height: 1.1; color: #166534; }
.ld-mi-score small { font-size: 10.5px; color: #64748B; }
.ld-mi-fb { flex: 1; min-width: 0; background: #F8FAFC; border-radius: 10px; padding: 10px 12px; }
.ld-mi-fb-label { font-size: 11.5px; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.ld-mi-fb-label i { color: #C81240; margin-right: 3px; }
.ld-mi-fb-text { font-size: 13.5px; line-height: 1.6; color: #1E293B; white-space: pre-line; overflow-wrap: anywhere; }
.ld-mi-muted { color: #64748B; }
.ld-mi-rec { margin-top: 12px; display: inline-flex; }
.ld-mi-note { font-size: 12.5px; color: #64748B; margin: 8px 0 0; line-height: 1.5; }
@media (max-width: 520px) {
  .ld-mi-result { flex-direction: column; align-items: stretch; }
  .ld-mi-score { align-self: flex-start; }
}

/* Add-on discount banner + struck price (admin-set offer) */
.ao-offer { background: #FEF2F2; border: 1.5px solid #FECACA; color: #991B1B; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 8px 0 12px; line-height: 1.5; }
.ao-offer i { color: #DC2626; margin-right: 2px; }
.ld-pack-mrp, .bi-pack-mrp { font-size: .55em; color: #94A3B8; font-weight: 600; margin-right: 2px; }
