/* Learnwage — shared design system (brochure palette: magenta, deep indigo, purple, teal, gold on lavender) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root {
  --magenta: #b3367e; --magenta-d: #962a68; --indigo: #24164a; --purple: #5a2e91; --teal: #11756f; --gold: #c8972c; --green: #1f7a45; --red: #c0392b;
  --lav: #f6f1fa; --lav2: #ece2f4; --line: #e4d9ee; --ink: #24164a; --text: #3d3554; --muted: #7a7290; --white: #fff;
  --accent: var(--magenta); --radius: 14px; --shadow: 0 1px 2px rgba(36,22,74,.06), 0 6px 18px rgba(36,22,74,.07);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--lav); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; } h2 { font-size: 1.25rem; font-weight: 800; } h3 { font-size: 1.05rem; font-weight: 700; } h4 { font-size: .95rem; }
p { margin: 0 0 .6em; } a { color: var(--purple); }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tiny { font-size: .75rem; } .center { text-align: center; } .right { text-align: right; }
.hidden { display: none !important; } .nowrap { white-space: nowrap; }
.eyebrow { color: var(--magenta); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .3em; }
.stack > * + * { margin-top: 12px; } .row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .spread { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Forms */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); }
input, select, textarea { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0; accent-color: var(--accent); }
.phone-in { display: flex; align-items: stretch; margin-top: 5px; } .phone-in span { padding: 11px 12px; background: var(--lav2); border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; font-weight: 700; color: var(--purple); }
.phone-in input { margin: 0; border-radius: 0 10px 10px 0; }
.otp-in { font-size: 1.5rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } .form-grid .full { grid-column: 1 / -1; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; transition: transform .05s, background .15s, box-shadow .15s; background: #fff; color: var(--ink); border-color: var(--line); }
.btn:active { transform: translateY(1px); } .btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { filter: brightness(.95); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; } .btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { background: #fff; color: var(--red); border-color: #f0c9c4; } .btn.ghost { background: transparent; border-color: transparent; color: var(--purple); }
.btn.sm { padding: 6px 10px; font-size: .8rem; border-radius: 8px; } .btn.block { width: 100%; } .btn.lg { padding: 14px 20px; font-size: 1rem; }
.icon-btn { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: inherit; padding: 6px; border-radius: 8px; line-height: 1; }
.chip { display: inline-block; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: .78rem; font-weight: 600; color: var(--purple); cursor: pointer; margin: 3px 2px 0 0; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.spin { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards & data */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid #efe7f5; }
.card.bar { border-top: 4px solid var(--accent); } .card.bar.teal { border-top-color: var(--teal); } .card.bar.purple { border-top-color: var(--purple); } .card.bar.gold { border-top-color: var(--gold); }
.card + .card { margin-top: 12px; } .grid > .card + .card { margin-top: 0; }
.stat { padding: 14px 16px; } .stat .v { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; } .stat .l { font-size: .78rem; color: var(--muted); font-weight: 600; }
.stat .sub { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; line-height: 1.35; vertical-align: middle; background: var(--lav2); color: var(--purple); white-space: nowrap; }
.s-approved, .s-success, .s-verified, .s-balanced, .s-passed, .s-paid, .s-active, .s-accepted, .s-resolved, .s-published, .s-completed, .s-disbursed { background: #e3f4ea; color: var(--green); }
.s-pending, .s-searching, .s-assigned, .s-arrived, .s-applied, .s-initiated, .s-open, .s-draft, .s-in_progress, .s-exported, .s-submitted, .s-under_review { background: #fbf0d9; color: #8a6412; }
.s-rejected, .s-failed, .s-blocked, .s-mismatch, .s-flagged, .s-disputed, .s-withdrawn, .s-cancel_requested { background: #fbe4e1; color: var(--red); }
.s-closed, .s-archived, .s-cancelled, .s-expired { background: #eee; color: #666; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1.5px solid var(--line); background: #fcfaFE; position: sticky; top: 0; }
td { padding: 10px 12px; border-bottom: 1px solid #f1ebf6; vertical-align: middle; } tr:hover td { background: #fcf9fe; }
.table-wrap { overflow: auto; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid #efe7f5; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1ebf6; } .list-item:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--lav2); color: var(--purple); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); } .empty div { font-size: 2rem; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: .88rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.notice { background: var(--lav2); border-left: 4px solid var(--purple); padding: 10px 12px; border-radius: 8px; font-size: .85rem; }
.notice.gold { background: #fbf3e0; border-color: var(--gold); } .notice.teal { background: #e2f3f1; border-color: var(--teal); }
.demo { margin-top: 16px; background: #fbf3e0; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; font-size: .8rem; }
.dev-otp { display: inline-block; margin-top: 6px; background: #fbf3e0; padding: 3px 8px; border-radius: 6px; color: #8a6412; }
.progress { height: 8px; background: var(--lav2); border-radius: 99px; overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* Toasts & modal */
#toasts { position: fixed; z-index: 1000; left: 50%; bottom: 90px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow); max-width: 90vw; transition: opacity .4s, transform .4s; }
.toast.err { background: var(--red); } .toast.out { opacity: 0; transform: translateY(8px); }
.modal-bg { position: fixed; inset: 0; background: rgba(36,22,74,.45); z-index: 900; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(36,22,74,.3); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 6px; position: sticky; top: 0; background: #fff; z-index: 1; } .modal-head h3 { margin: 0; }
.modal-body { padding: 8px 18px 18px; }
@keyframes fade { from { opacity: 0; } }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent), var(--lav); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 28px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--accent); }
.login-card h1 { margin-top: 4px; } .brand-mark { color: var(--accent); margin-bottom: 8px; }

/* No-screenshot / copy deterrent for protected content (native apps use FLAG_SECURE) */
.protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media print { .protected { display: none !important; } }

/* ---- Alignment system ---- */
.entry { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1ebf6; font-size: .86rem; }
.entry:last-child { border-bottom: 0; }
.entry .right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.entry .right .btn.ghost { padding: 2px 0; }
.card > .row.spread:first-child, .job > .row.spread:first-child, .bar > .row.spread:first-child { align-items: flex-start; gap: 10px; }
.card > .row.spread:first-child > .pill, .job > .row.spread:first-child > .pill { flex-shrink: 0; margin-top: 2px; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.nw { white-space: nowrap; }
td .btn + .btn { margin-left: 0; }
.kv dt { padding-top: 1px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .demo-chips .chip { margin: 0; } .demo-chips .chip b { color: var(--ink); margin-right: 4px; }
.login-foot { margin-top: 14px; line-height: 1.5; }

.doc-frame { width: 100%; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow); min-height: 300px; display: block; }
.stars { color: var(--gold); letter-spacing: 1px; }
.match { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: .72rem; font-weight: 800; background: #e2f3f1; color: var(--teal); white-space: nowrap; }
.match.hi { background: #e3f4ea; color: var(--green); } .match.lo { background: var(--lav2); color: var(--purple); }

/* ---- V6: verification badge, SLA ladder, eligibility checks ---- */
.vbadge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: .7rem; font-weight: 700; background: #e3f4ea; color: var(--green); white-space: nowrap; vertical-align: middle; }
.vbadge.no { background: #f1edf6; color: #7a7290; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.checks li { display: grid; grid-template-columns: 20px 1fr auto; gap: 6px; align-items: baseline; font-size: .82rem; }
.checks li .v { color: #7a7290; font-size: .76rem; text-align: right; white-space: nowrap; }
.checks li.ok::before { content: '✔'; color: var(--green); font-weight: 700; }
.checks li.bad::before { content: '✖'; color: var(--red); font-weight: 700; }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.ladder span { text-align: center; font-size: .7rem; font-weight: 700; padding: 5px 4px; border-radius: 8px; background: #f1edf6; color: #7a7290; }
.ladder span.done { background: #efe3f6; color: var(--purple); }
.ladder span.now { background: var(--purple); color: #fff; }
.sla { font-size: .74rem; font-weight: 700; white-space: nowrap; }
.sla.ok { color: var(--green); } .sla.warn { color: #8a6412; } .sla.late { color: var(--red); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid #e6def0; }
.timeline li { position: relative; font-size: .78rem; padding: 0 0 8px 6px; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.timeline li.resolved::before { background: var(--green); } .timeline li.sla_breached::before { background: var(--red); }

/* ---- V7: risk & placement pills, ID card, QR display ---- */
.risk-high { background: #fdecec; color: var(--red); } .risk-medium { background: #fbf1dc; color: #8a6412; } .risk-low { background: #e3f4ea; color: var(--green); }
.ps-applied, .ps-shortlisted { background: #eef0fb; color: #3d4aa0; } .ps-interview { background: #fbf1dc; color: #8a6412; }
.ps-offered, .ps-accepted, .ps-completed { background: #e3f4ea; color: var(--green); } .ps-declined, .ps-rejected { background: #f1edf6; color: #7a7290; }
.idcard { border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #24164A, #5a2e91 60%, #b3367e); color: #fff; padding: 18px; box-shadow: var(--shadow); }
.idcard .top { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; letter-spacing: .1em; font-weight: 800; opacity: .9; }
.idcard .mid { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin: 16px 0; }
.idcard .ph { width: 64px; height: 64px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.idcard h3 { color: #fff; margin: 0; font-size: 1.15rem; } .idcard .meta { font-size: .78rem; opacity: .9; line-height: 1.5; }
.idcard .qrbox { background: #fff; border-radius: 12px; padding: 10px; display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; color: var(--ink); }
.idcard .qrbox svg { width: 120px; height: 120px; display: block; }
.qr-display { text-align: center; } .qr-display .qr svg { width: min(70vw, 340px); height: auto; } .qr-display .code { font-size: 2.6rem; font-weight: 800; letter-spacing: .3em; color: var(--ink); font-variant-numeric: tabular-nums; }
.scan-video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 4/3; object-fit: cover; }
/* ---- V8 ---- */
.meter { height: 8px; background: var(--lav2, #ece4f3); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; } .meter i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
details.card > summary { cursor: pointer; list-style: none; } details.card > summary::-webkit-details-marker { display: none; }
.wa-bubble { background: #e7f8e9; border-radius: 10px 10px 10px 2px; padding: 8px 10px; font-size: .8rem; white-space: pre-line; color: #1d3b24; }
