/* Phase CP1: NxT Career app (student lead) - shell, dashboard, profile hub, login. Prefix ca-. */
:root {
    --ca-ink: #14123b;
    --ca-text: #2f2d55;
    --ca-muted: #6b6a8a;
    --ca-line: #e7e6f5;
    --ca-bg: #f6f5ff;
    --ca-card: #ffffff;
    --ca-pri: #4338ca;
    --ca-pri-2: #7c3aed;
    --ca-hot: #f97316;
    --ca-ok: #059669;
    --ca-radius: 18px;
    --ca-shadow: 0 10px 30px rgba(67, 56, 202, .10);
    --ca-g1: linear-gradient(135deg, #6366f1, #a855f7);
    --ca-g2: linear-gradient(135deg, #06b6d4, #3b82f6);
    --ca-g3: linear-gradient(135deg, #10b981, #14b8a6);
    --ca-g4: linear-gradient(135deg, #f59e0b, #f97316);
    --ca-g5: linear-gradient(135deg, #ec4899, #f43f5e);
    --ca-g6: linear-gradient(135deg, #0ea5e9, #22c55e);
    --ca-font: Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
    --ca-top-h: 58px;
    --ca-tabs-h: 66px;
}

/* ------------------------------------------------------------------ shell: top bar + bottom tabs (phones and tablets) */
.ca-top, .ca-tabs, .ca-scrim { display: none; }
@media (max-width: 1024px) {
    html.ca-has-shell body { padding-top: var(--ca-top-h) !important; padding-bottom: calc(var(--ca-tabs-h) + env(safe-area-inset-bottom, 0px) + 8px) !important; }
    html.ca-has-shell, html.ca-has-shell body { overflow-x: hidden; max-width: 100%; }
    html.ca-has-shell .card, html.ca-has-shell img, html.ca-has-shell table { max-width: 100%; }
    html.ca-has-shell .nxt-mobile-menu-toggle, html.ca-has-shell #mobileToggle, html.ca-has-shell .nxt-mobile-toggle { display: none !important; }
    .ca-top {
        display: flex; align-items: center; gap: 8px; position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
        height: var(--ca-top-h); padding: 0 10px; padding-top: env(safe-area-inset-top, 0px);
        background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
        border-bottom: 1px solid var(--ca-line); font-family: var(--ca-font);
    }
    .ca-top-btn { width: 42px; height: 42px; border-radius: 13px; border: 0; background: #f1f0ff; color: var(--ca-pri); display: inline-flex; align-items: center; justify-content: center; position: relative; text-decoration: none; flex: 0 0 auto; font-size: 17px; cursor: pointer; }
    .ca-menu { flex-direction: column; gap: 4px; }
    .ca-menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
    .ca-menu span:nth-child(2) { width: 13px; margin-right: 5px; }
    .ca-top-logo img { width: 34px; height: 34px; border-radius: 50%; display: block; }
    .ca-top-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 17px; font-weight: 700; color: var(--ca-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--ca-font); }
    .ca-bell b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10.5px; line-height: 18px; text-align: center; font-weight: 700; }
    .ca-top-av { width: 38px; height: 38px; border-radius: 50%; background: var(--ca-g1); color: #fff !important; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: 0 0 auto; }
    .ca-tabs {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; height: calc(var(--ca-tabs-h) + env(safe-area-inset-bottom, 0px));
        padding: 6px 6px env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--ca-line); box-shadow: 0 -8px 24px rgba(20, 18, 59, .06); font-family: var(--ca-font);
    }
    .ca-tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none !important; color: var(--ca-muted) !important; font-size: 11px; font-weight: 600; min-width: 0; }
    .ca-tab-ic { width: 40px; height: 30px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 17px; transition: transform .2s ease, background .2s ease; }
    .ca-tab-home .ca-tab-ic { color: #6366f1; } .ca-tab-courses .ca-tab-ic { color: #0ea5e9; } .ca-tab-jobs .ca-tab-ic { color: #10b981; } .ca-tab-me .ca-tab-ic { color: #ec4899; }
    .ca-tab.on { color: var(--ca-ink) !important; }
    .ca-tab.on .ca-tab-ic { background: #eeedff; transform: translateY(-1px); }
    .ca-tab-ai .ca-tab-ic { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--ca-g1); color: #fff; font-size: 22px; box-shadow: 0 8px 20px rgba(99, 102, 241, .45); border: 4px solid #fff; }
    .ca-tab-ai.on .ca-tab-ic { background: var(--ca-g5); }
    .ca-tab-tx { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* side menu = the portal sidebar */
    html.ca-has-shell .nxt-sidebar-shell { z-index: 1060 !important; width: min(300px, 86vw) !important; }
    html.ca-menu-open .ca-scrim { display: block; position: fixed; inset: 0; z-index: 1050; background: rgba(20, 18, 59, .45); }
    html.ca-has-shell .cp-flash { bottom: calc(var(--ca-tabs-h) + env(safe-area-inset-bottom, 0px) + 12px) !important; }
}

/* ------------------------------------------------------------------ page frame for the new pages */
body.ca-body { margin: 0; background: var(--ca-bg); font-family: var(--ca-font); color: var(--ca-text); -webkit-font-smoothing: antialiased; }
.ca-body * { box-sizing: border-box; }
.ca-main { margin-left: var(--nxt-shell-sidebar-width, 272px); padding: 24px 28px 40px; max-width: calc(100vw - var(--nxt-shell-sidebar-width, 272px)); }
@media (max-width: 1024px) { .ca-main { margin-left: 0; max-width: 100vw; padding: 14px 14px 20px; } }
.ca-wrap { max-width: 1180px; margin: 0 auto; }
.ca-sec { margin-top: 22px; }
.ca-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.ca-sec-h h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ca-ink) !important; line-height: 1.25; font-family: var(--ca-font) !important; }
.ca-sec-h p { margin: 3px 0 0; font-size: 13px; color: var(--ca-muted); }
.ca-sec-h a { font-size: 13px; font-weight: 600; color: var(--ca-pri); text-decoration: none; white-space: nowrap; }
.ca-card { background: var(--ca-card); border-radius: var(--ca-radius); box-shadow: var(--ca-shadow); border: 1px solid #efeefb; }
.g1 { background: var(--ca-g1); } .g2 { background: var(--ca-g2); } .g3 { background: var(--ca-g3); } .g4 { background: var(--ca-g4); } .g5 { background: var(--ca-g5); } .g6 { background: var(--ca-g6); }

/* hero */
.ca-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 22px 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #a855f7 0%, #6366f1 38%, #312e81 100%); box-shadow: 0 18px 40px rgba(67, 56, 202, .32); }
.ca-hero::before, .ca-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.ca-hero::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.ca-hero::after { width: 140px; height: 140px; right: 40px; bottom: -80px; background: rgba(249, 115, 22, .35); }
.ca-hero > * { position: relative; z-index: 1; }
.ca-hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.ca-hero h1 { margin: 12px 0 6px; font-size: 24px; line-height: 1.25; font-weight: 800; color: #fff !important; font-family: var(--ca-font) !important; }
.ca-hero h1 em { font-style: normal; background: linear-gradient(90deg, #fde68a, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ca-hero p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .88) !important; max-width: 560px; }
.ca-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ca-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px; text-decoration: none !important; border: 0; cursor: pointer; font-family: var(--ca-font); }
.ca-btn-hot { background: linear-gradient(135deg, #f97316, #f43f5e); color: #fff !important; box-shadow: 0 10px 22px rgba(244, 63, 94, .35); }
.ca-btn-glass { background: rgba(255, 255, 255, .16); color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); }
.ca-btn-pri { background: var(--ca-g1); color: #fff !important; box-shadow: 0 10px 22px rgba(99, 102, 241, .3); }
.ca-btn-wa { background: #16a34a; color: #fff !important; }
.ca-btn-line { background: #fff; color: var(--ca-pri) !important; border: 1.5px solid #dcdaf7; }
.ca-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.ca-hero-stats div { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px 8px; text-align: center; }
.ca-hero-stats b { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.ca-hero-stats span { display: block; font-size: 11px; color: rgba(255, 255, 255, .85); line-height: 1.3; }

/* first-step strip */
.ca-next { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 14px; text-decoration: none !important; color: inherit !important; }
.ca-next-ic { width: 46px; height: 46px; border-radius: 14px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 auto; }
.ca-next-tx { flex: 1 1 auto; min-width: 0; }
.ca-next-tx small { display: block; font-size: 11.5px; font-weight: 700; color: var(--ca-hot); text-transform: uppercase; letter-spacing: .05em; }
.ca-next-tx b { display: block; font-size: 15px; color: var(--ca-ink); }
.ca-next-tx span { display: block; font-size: 12.5px; color: var(--ca-muted); }
.ca-next > i { color: var(--ca-pri); }

/* AI features */
.ca-ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .ca-ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ca-ai { display: block; padding: 14px; text-decoration: none !important; color: inherit !important; transition: transform .18s ease, box-shadow .18s ease; }
.ca-ai:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(67, 56, 202, .16); }
.ca-ai-ic { width: 46px; height: 46px; border-radius: 15px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; box-shadow: 0 8px 16px rgba(20, 18, 59, .12); }
.ca-ai b { display: block; font-size: 14px; line-height: 1.3; color: var(--ca-ink); }
.ca-ai .ca-ai-d { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--ca-muted); }
.ca-first { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(90deg, #fff7ed, #fdf2f8); border: 1px solid #fed7aa; font-size: 13.5px; color: #9a3412; font-weight: 600; }
.ca-first i { font-size: 18px; color: #f97316; }

/* journey */
.ca-journey { padding: 16px 14px; }
.ca-jbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--ca-muted); }
.ca-jbar div { flex: 1; height: 9px; border-radius: 9px; background: #eeedff; overflow: hidden; }
.ca-jbar div span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #6366f1, #ec4899, #f97316); }
.ca-jbar b { color: var(--ca-ink); }
.ca-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.ca-step { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.ca-step:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 42px; bottom: 2px; width: 2px; background: repeating-linear-gradient(#d9d7f5 0 5px, transparent 5px 9px); }
.ca-step-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; position: relative; }
.ca-step.is-done .ca-step-ic::after { content: "\2713"; position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; border-radius: 50%; background: #059669; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ca-step.is-later .ca-step-ic { filter: grayscale(.55); opacity: .65; }
.ca-step-tx { flex: 1; min-width: 0; padding-top: 2px; }
.ca-step-tx b { display: block; font-size: 14.5px; color: var(--ca-ink); }
.ca-step-tx span { display: block; font-size: 12.5px; color: var(--ca-muted); line-height: 1.45; }
.ca-step.is-next { }
.ca-step.is-next .ca-step-tx b::after { content: "Next"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff1e6; color: #ea580c; font-size: 10.5px; font-weight: 700; vertical-align: middle; }
.ca-step-go { align-self: center; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: #eeedff; color: var(--ca-pri) !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important; }
.ca-step.is-next .ca-step-go { background: var(--ca-g4); color: #fff !important; }

/* records */
.ca-recs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: none; }
.ca-recs::-webkit-scrollbar { display: none; }
.ca-rec { flex: 0 0 min(78%, 300px); scroll-snap-align: start; border-radius: 20px; padding: 16px; color: #fff; position: relative; overflow: hidden; min-height: 150px; }
.ca-rec::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ca-rec-ic { font-size: 28px; line-height: 1; }
.ca-rec b { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.3; color: #fff; }
.ca-rec span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); position: relative; z-index: 1; }
@media (min-width: 1025px) { .ca-recs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } .ca-rec { flex: none; } }

/* compare */
.ca-cmp { overflow: hidden; }
.ca-cmp table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ca-cmp th { padding: 12px 10px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ca-muted); background: #faf9ff; }
.ca-cmp th.us { color: #fff; background: var(--ca-g1); text-align: center; }
.ca-cmp th.them { text-align: center; }
.ca-cmp td { padding: 11px 10px; border-top: 1px solid var(--ca-line); vertical-align: top; color: var(--ca-text); }
.ca-cmp td.us { background: #f5f3ff; color: #3730a3; font-weight: 700; text-align: center; }
.ca-cmp td.us i { color: #059669; margin-right: 4px; }
.ca-cmp td.them { color: var(--ca-muted); text-align: center; }
.ca-cmp-note { padding: 10px 12px; font-size: 11.5px; color: var(--ca-muted); border-top: 1px solid var(--ca-line); }

/* marquees */
.ca-marq { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ca-marq-track { display: flex; gap: 12px; width: max-content; animation: caMarq var(--ca-speed, 40s) linear infinite; padding: 4px 0 8px; }
.ca-marq:hover .ca-marq-track { animation-play-state: paused; }
.ca-marq.rev .ca-marq-track { animation-direction: reverse; }
@keyframes caMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ca-marq-track { animation: none; } .ca-marq { overflow-x: auto; } }
.ca-logo { width: 128px; height: 64px; flex: 0 0 auto; border-radius: 14px; background: #fff; border: 1px solid #ecebf8; display: flex; align-items: center; justify-content: center; padding: 8px 12px; box-shadow: 0 4px 12px rgba(20, 18, 59, .05); }
.ca-logo img { max-width: 100%; max-height: 44px; object-fit: contain; display: block; }
.ca-plc { width: 250px; flex: 0 0 auto; display: flex; gap: 11px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #ecebf8; box-shadow: 0 6px 16px rgba(20, 18, 59, .06); }
.ca-plc-ph { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; border: 3px solid #fff; box-shadow: 0 0 0 2px #a5b4fc; }
.ca-plc-tx { min-width: 0; font-size: 12px; line-height: 1.4; color: var(--ca-muted); }
.ca-plc-tx b { display: block; font-size: 14px; color: var(--ca-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-plc-tx em { display: block; font-style: normal; color: #4338ca; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-plc-tx span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-plc-tx strong { color: #047857; }

/* centre */
.ca-centre { padding: 18px; display: grid; gap: 14px; }
@media (min-width: 900px) { .ca-centre { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.ca-centre-who { display: flex; gap: 12px; align-items: flex-start; }
.ca-centre-ic { width: 52px; height: 52px; border-radius: 16px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }
.ca-centre-who b { display: block; font-size: 16px; color: var(--ca-ink); }
.ca-centre-who .ca-centre-l { display: block; font-size: 13px; color: var(--ca-muted); line-height: 1.5; margin-top: 2px; }
.ca-centre-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ca-centre-btns .ca-btn { width: 100%; padding: 0 10px; font-size: 13.5px; }
.ca-centre-btns .ca-btn.full { grid-column: 1 / -1; }

/* motivation band */
.ca-band { margin-top: 22px; border-radius: 22px; padding: 20px; color: #fff; background: linear-gradient(135deg, #f97316 0%, #ec4899 55%, #8b5cf6 100%); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; box-shadow: 0 16px 34px rgba(236, 72, 153, .28); }
.ca-band b { display: block; font-size: 19px; line-height: 1.3; }
.ca-band span { display: block; font-size: 13.5px; opacity: .92; margin-top: 4px; }
.ca-band .ca-btn { background: #fff; color: #be185d !important; }

/* profile hub */
.ca-me-head { text-align: center; padding: 24px 16px 18px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #ec4899 0%, #8b5cf6 45%, #4338ca 100%); box-shadow: 0 16px 34px rgba(99, 102, 241, .3); }
.ca-me-av { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 3px solid rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; }
.ca-me-head b { display: block; font-size: 20px; }
.ca-me-head span { display: block; font-size: 13px; opacity: .9; margin-top: 2px; word-break: break-all; }
.ca-me-prog { margin: 14px auto 0; max-width: 320px; font-size: 12.5px; }
.ca-me-prog div { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .25); margin-top: 6px; overflow: hidden; }
.ca-me-prog div span { display: block; height: 100%; background: #fde68a; border-radius: 8px; }
.ca-list { margin-top: 14px; overflow: hidden; }
.ca-list a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-decoration: none !important; color: var(--ca-ink) !important; font-size: 14.5px; font-weight: 600; border-top: 1px solid var(--ca-line); }
.ca-list a:first-child { border-top: 0; }
.ca-list a:hover { background: #faf9ff; }
.ca-list-ic { width: 38px; height: 38px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.ca-list a small { display: block; font-size: 12px; font-weight: 500; color: var(--ca-muted); }
.ca-list a > span:nth-child(2) { flex: 1; min-width: 0; }
.ca-list a > i { color: #b8b6d6; font-size: 13px; }
.ca-list a.out { color: #be123c !important; }
.ca-me-grid { display: grid; gap: 14px; }
@media (min-width: 1025px) { .ca-me-grid { grid-template-columns: 360px 1fr; align-items: start; } }

/* get the app */
.ca-getapp { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 14px; border-radius: 18px; background: #0f172a; color: #fff; text-decoration: none !important; }
.ca-getapp img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.ca-getapp b { display: block; font-size: 14.5px; color: #fff; }
.ca-getapp span { display: block; font-size: 12px; color: #cbd5e1; }
.ca-getapp em { margin-left: auto; font-style: normal; background: #22c55e; color: #fff; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 13px; white-space: nowrap; }

/* desktop two columns on the dashboard */
@media (min-width: 1025px) {
    .ca-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
    .ca-hero { padding: 30px 30px; }
    .ca-hero h1 { font-size: 32px; }
}

/* ------------------------------------------------------------------ login */
body.ca-login { margin: 0; min-height: 100vh; font-family: var(--ca-font); background: #f6f5ff; color: var(--ca-text); }
.ca-login * { box-sizing: border-box; }
.ca-lg { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .ca-lg { grid-template-columns: 1.05fr 1fr; } }
.ca-lg-art { position: relative; overflow: hidden; padding: 28px 22px 70px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #a855f7 0%, #6366f1 40%, #1e1b4b 100%); }
.ca-lg-art::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; bottom: -110px; background: rgba(249, 115, 22, .45); filter: blur(4px); }
.ca-lg-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.ca-lg-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.ca-lg-brand small { display: block; font-weight: 500; font-size: 11.5px; opacity: .85; }
.ca-lg-art h1 { position: relative; z-index: 1; margin: 26px 0 8px; font-size: 27px; line-height: 1.22; font-weight: 800; }
.ca-lg-art h1 em { font-style: normal; color: #fde68a; }
.ca-lg-art p { position: relative; z-index: 1; margin: 0; font-size: 14px; opacity: .9; line-height: 1.55; max-width: 460px; }
.ca-lg-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ca-lg-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 600; }
.ca-lg-form { padding: 0 16px 30px; margin-top: -46px; position: relative; z-index: 2; }
@media (min-width: 960px) { .ca-lg-art { padding: 56px 56px; display: flex; flex-direction: column; justify-content: center; } .ca-lg-art h1 { font-size: 40px; } .ca-lg-form { margin: 0; display: flex; align-items: center; justify-content: center; padding: 40px; } }
.ca-lg-card { width: 100%; max-width: 420px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 24px 20px; box-shadow: 0 20px 50px rgba(30, 27, 75, .18); }
.ca-lg-card h2 { margin: 0; font-size: 21px; color: var(--ca-ink); }
.ca-lg-card > p { margin: 4px 0 18px; font-size: 13.5px; color: var(--ca-muted); }
.ca-field { margin-bottom: 14px; }
.ca-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ca-ink); margin-bottom: 6px; }
.ca-input { position: relative; }
.ca-input i.lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8b89b3; }
.ca-input input { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid #e1e0f3; background: #fbfbff; padding: 0 46px 0 42px; font-size: 15px; font-family: var(--ca-font); color: var(--ca-ink); outline: none; }
.ca-input input:focus { border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }
.ca-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: #8b89b3; cursor: pointer; border-radius: 10px; }
.ca-lg-msg { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; }
.ca-lg-msg.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ca-lg-msg.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.ca-lg-msg a { color: inherit; font-weight: 700; }
.ca-lg-card .ca-btn { width: 100%; min-height: 50px; font-size: 15.5px; }
.ca-lg-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13.5px; }
.ca-lg-links a { color: var(--ca-pri); font-weight: 600; text-decoration: none; }
.ca-lg-or { text-align: center; margin: 16px 0 12px; font-size: 12px; color: var(--ca-muted); }
.ca-lg-help { margin-top: 14px; font-size: 12.5px; color: var(--ca-muted); text-align: center; line-height: 1.5; }

/* Phase CP14: Password | OTP tabs on the login card */
.ca-lg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 0 0 16px; border-radius: 14px; background: #f1f0fb; }
.ca-lg-tabs button { border: 0; background: transparent; min-height: 42px; border-radius: 11px; font: 600 13.5px var(--ca-font); color: var(--ca-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ca-lg-tabs button.on { background: #fff; color: var(--ca-ink); box-shadow: 0 4px 12px rgba(67, 56, 202, .12); }
.ca-lg-tabs button .fa-whatsapp { color: #16a34a; }
#caOtpForm .ca-btn { min-height: 50px; font-size: 15px; }
#caOtpCode { letter-spacing: .35em; font-weight: 700; }

/* Phase CP15: "Turn on notifications" card */
.ca-notify { position: fixed; z-index: 1045; left: 12px; right: 12px; bottom: calc(var(--ca-tabs-h) + env(safe-area-inset-bottom, 0px) + 12px); display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 18px; background: #fff; border: 1px solid #e7e6f5; box-shadow: 0 16px 40px rgba(20, 18, 59, .18); font-family: var(--ca-font); }
.ca-notify[hidden] { display: none; }
.ca-notify-ic { font-size: 24px; flex: 0 0 auto; }
.ca-notify-tx { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ca-muted); line-height: 1.4; }
.ca-notify-tx b { display: block; font-size: 14px; color: var(--ca-ink); }
.ca-notify .ca-btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; flex: 0 0 auto; }
.ca-notify-x { border: 0; background: none; font-size: 22px; color: #9a98bb; cursor: pointer; padding: 0 4px; flex: 0 0 auto; }
@media (min-width: 1025px) { .ca-notify { left: auto; right: 22px; bottom: 22px; max-width: 420px; } }

/* Phase CP15: the old pages load the Metronic bundle, which sets html { font-size: 13px !important } (12px on some widths),
   so the menu and text were smaller than on the dashboard. The same scale as the dashboard on every page: */
html.ca-has-shell { font-size: 16px !important; }
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .nxt-nav-item, html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .nxt-nav-item span { font-size: 15.2px !important; }
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .nxt-nav-item i { font-size: 15.2px !important; width: 20px; }
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .nxt-nav-label { font-size: 11.5px !important; }
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .cp-path-hello { font-size: 15.7px !important; }
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .cp-path-meta, html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .cp-path-next { font-size: 13px !important; }
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .cp-sidebar-cta a { font-size: 15.2px !important; }
/* Phase CP15: the Metronic bundle greys every <i>; the app bar keeps its colours on every page */
html.ca-has-shell .ca-top-btn i { color: var(--ca-pri) !important; }
html.ca-has-shell .ca-tab-home .ca-tab-ic i { color: #6366f1 !important; }
html.ca-has-shell .ca-tab-courses .ca-tab-ic i { color: #0ea5e9 !important; }
html.ca-has-shell .ca-tab-jobs .ca-tab-ic i { color: #10b981 !important; }
html.ca-has-shell .ca-tab-me .ca-tab-ic i { color: #ec4899 !important; }
html.ca-has-shell .ca-tab-ai .ca-tab-ic i { color: #fff !important; }
html.ca-has-shell .ca-tab { font-size: 11px !important; }
html.ca-has-shell .ca-tab-ic { font-size: 17px !important; }
html.ca-has-shell .ca-tab-ai .ca-tab-ic { font-size: 22px !important; }
html.ca-has-shell .ca-top-title { font-size: 17px !important; }

/* Phase CP16: 5 steps with locks */
.ca-steps5 .ca-step-tx small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b89b3; }
.ca-step.is-locked .ca-step-ic { background: #e9e8f5 !important; color: #9a98bb; }
.ca-step.is-locked .ca-step-tx b { color: #8b89b3; }
.ca-step-lock { align-self: center; flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #8b89b3; background: #f3f2fb; border-radius: 10px; padding: 6px 10px; white-space: nowrap; }
.ca-step-go.is-done { background: #ecfdf5; color: #047857 !important; }
.ca-later { margin-top: 8px; padding-top: 12px; border-top: 1px dashed #e1e0f3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ca-muted); }
.ca-later b { width: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8b89b3; }
.ca-later span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #f6f5ff; border: 1px solid #ecebf8; }
/* Phase CP16: step marks in the menu */
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .nxt-nav-item .cp-nav-st { margin-left: auto; font-style: normal; font-size: 12px !important; }
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .nxt-nav-item .cp-nav-st.is-done { color: #059669; font-weight: 800; }
html.ca-has-shell .nxt-sidebar.nxt-sidebar-shell .nxt-nav-item.is-locked { opacity: .62; }

/* ------------------------------------------------------------------ Phase CP17: the rotating flash card (portal_flash) fits a phone
   (its width used the desktop sidebar and pushed the page wider than the screen); it sits above the bottom tabs */
@media (max-width: 1024px) {
  html.ca-has-shell .cp-flash { left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important; bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; box-sizing: border-box; }
}

/* ------------------------------------------------------------------ Phase CP18: rewards card on Home */
.ca-rw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ca-rw-t { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 18px; text-decoration: none; color: #fff; min-height: 118px; box-shadow: 0 10px 24px rgba(20, 18, 59, .12); }
.ca-rw-t.t1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.ca-rw-t.t2 { background: linear-gradient(135deg, #f97316, #db2777); }
.ca-rw-t.t3 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.ca-rw-ic { font-size: 26px; line-height: 1; }
.ca-rw-t b { font-size: 15px; font-weight: 700; color: #fff !important; line-height: 1.3; }
.ca-rw-t small { font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .92) !important; }
.ca-rw-t code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: .06em; background: rgba(255, 255, 255, .22); padding: 1px 6px; border-radius: 6px; color: #fff; }
.ca-rw-cta { width: 100%; margin-top: 12px; }
@media (max-width: 700px) { .ca-rw { grid-template-columns: 1fr; } .ca-rw-t { min-height: 0; grid-template-columns: 34px 1fr; column-gap: 12px; } .ca-rw-ic { grid-row: span 2; align-self: center; } }

/* ------------------------------------------------------------------ Phase CP19: old lead pages load Metronic (html, body height 100%), so the
   page scrolled inside a body box the height of the screen and cards / buttons at the bottom got cut in the app. The page scrolls normally now. */
html.ca-has-shell, html.ca-has-shell body { height: auto !important; min-height: 100%; }
html.ca-has-shell body { overflow-y: visible !important; overflow-x: clip !important; }

/* ------------------------------------------------------------------ Phase CP20: 24-hour coupon card + floating bar */
.cp20-card { border-radius: 22px; padding: 18px; display: grid; gap: 12px; color: #14123b; font-family: var(--ca-font, Poppins, sans-serif); box-shadow: 0 14px 32px rgba(219, 39, 119, .16); }
.cp20-card.is-active { background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 100%); border: 2px dashed #fb923c; }
.cp20-card.is-missed { background: #fff; border: 2px solid #fecaca; }
.cp20-card.is-locked { background: #ecfdf5; border: 2px solid #a7f3d0; box-shadow: none; }
.cp20-top { display: flex; gap: 12px; align-items: stretch; }
.cp20-off { flex: 0 0 96px; display: grid; place-items: center; align-content: center; border-radius: 16px; padding: 10px 6px; background: linear-gradient(135deg, #f97316, #db2777); color: #fff; }
.cp20-off small { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #fff !important; }
.cp20-off b { font-size: 30px; line-height: 1.05; font-weight: 800; color: #fff !important; }
.cp20-code { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: center; }
.cp20-code small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9a3412; }
.cp20-code code { background: none !important; border: 0 !important; padding: 0 !important; font-size: 21px; font-weight: 800; letter-spacing: .12em; color: #14123b; font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.cp20-copy { justify-self: start; border: 0; border-radius: 9px; padding: 6px 12px; background: #14123b; color: #fff; font-weight: 600; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.cp20-msg { margin: 0; font-size: 14px; color: #3f3d64; text-align: center; }
.cp20-msg b { color: #c2410c; }
.cp20-timer { display: flex; justify-content: center; gap: 10px; }
.cp20-timer span { display: grid; place-items: center; min-width: 66px; padding: 8px 6px; border-radius: 14px; background: #14123b; color: #fff; }
.cp20-timer b { font-size: 26px; font-weight: 800; line-height: 1.1; color: #fff !important; font-variant-numeric: tabular-nums; }
.cp20-timer small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .75) !important; }
.cp20-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; width: 100%; min-height: 52px; padding: 10px 14px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #f97316, #db2777); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit; box-shadow: 0 12px 26px rgba(219, 39, 119, .3); box-sizing: border-box; }
.cp20-go span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.cp20-go em { font-style: normal; background: #fff; color: #be185d; border-radius: 999px; padding: 2px 8px; margin-left: 4px; font-weight: 800; }
.cp20-card.is-locked .cp20-go { background: linear-gradient(135deg, #059669, #0ea5e9); box-shadow: none; }
.cp20-small { margin: 0; text-align: center; font-size: 12px; color: #6b6994; }
.cp20-miss { display: flex; gap: 12px; align-items: center; }
.cp20-miss > span { font-size: 34px; }
.cp20-miss div { display: grid; gap: 3px; } .cp20-miss b { font-size: 16px; color: #14123b; } .cp20-miss small { font-size: 13px; line-height: 1.45; color: #5b5a7d; }
.cp20-card form { margin: 0; }
/* floating bar on the other pages */
.cp20-float { position: fixed; z-index: 1045; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 16px; background: #14123b; color: #fff; box-shadow: 0 14px 30px rgba(20, 18, 59, .3); font-family: var(--ca-font, Poppins, sans-serif); top: 16px; right: 16px; width: min(420px, calc(100vw - 32px)); box-sizing: border-box; }
.cp20-float[hidden] { display: none; }
.cp20-f-ic { font-size: 20px; }
.cp20-f-tx { flex: 1; min-width: 0; display: grid; } .cp20-f-tx b { font-size: 13px; color: #fff !important; font-variant-numeric: tabular-nums; } .cp20-f-tx small { font-size: 11.5px; color: rgba(255, 255, 255, .78) !important; }
.cp20-f-go { flex: 0 0 auto; border: 0; border-radius: 10px; padding: 8px 10px; background: linear-gradient(135deg, #f97316, #db2777); color: #fff !important; font-weight: 700; font-size: 12.5px; text-decoration: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
.cp20-float form { margin: 0; }
.cp20-f-x { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 1024px) { .cp20-float { top: calc(var(--ca-top-h, 58px) + env(safe-area-inset-top, 0px) + 6px); left: 10px; right: 10px; width: auto; } }
@media (max-width: 420px) { .cp20-timer span { min-width: 58px; } .cp20-timer b { font-size: 22px; } }
/* Home after the test: rewards first */
.cp20-first { display: grid; gap: 14px; margin-top: 14px; }
.cp20-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .cp20-grid { grid-template-columns: minmax(0, 1fr); } }
.cp20-cert { padding: 14px; display: grid; gap: 10px; }
.cp20-cert h2 { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--ca-ink); }
.cp20-cert canvas { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; border-radius: 12px; -webkit-touch-callout: none; user-select: none; }
.cp20-share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cp20-share a, .cp20-share button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: 12px; border: 1px solid #ecebf8; background: #fbfbff; color: var(--ca-ink); font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; }
.cp20-share i { font-size: 18px; } .cp20-share .wa i { color: #16a34a !important; } .cp20-share .fb i { color: #1877f2 !important; } .cp20-share .all i { color: #db2777 !important; }
.cp20-ctas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cp20-cta { display: grid; gap: 3px; padding: 14px; border-radius: 18px; text-decoration: none; color: #fff !important; box-shadow: 0 10px 24px rgba(20, 18, 59, .14); }
.cp20-cta b { font-size: 15px; color: #fff !important; } .cp20-cta small { font-size: 12px; color: rgba(255, 255, 255, .9) !important; }
.cp20-cta.a { background: linear-gradient(135deg, #6366f1, #a855f7); } .cp20-cta.b { background: linear-gradient(135deg, #10b981, #0ea5e9); }
@media (max-width: 480px) { .cp20-ctas { grid-template-columns: 1fr; } }
