/* ============ SPARC Portal ============ */
@font-face { font-family: Poppins; src: url(../../assets/fonts/Poppins-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(../../assets/fonts/Poppins-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(../../assets/fonts/Poppins-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(../../assets/fonts/Poppins-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
    --pt-red: #B41D26;
    --pt-red-dark: #8f141c;
    --pt-red-soft: #fbecec;
    --pt-ink: #1d1f24;
    --pt-muted: #6b7280;
    --pt-line: #e8e9ee;
    --pt-bg: #f5f6f9;
    --pt-card: #ffffff;
    --pt-side-w: 252px;
    --bs-primary: #B41D26;
    --bs-primary-rgb: 180, 29, 38;
    --bs-link-color: #B41D26;
    --bs-link-hover-color: #8f141c;
    --bs-link-color-rgb: 180, 29, 38;
}
body { font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--pt-ink); font-size: 14.5px; }
.btn-primary { --bs-btn-bg: var(--pt-red); --bs-btn-border-color: var(--pt-red); --bs-btn-hover-bg: var(--pt-red-dark); --bs-btn-hover-border-color: var(--pt-red-dark); --bs-btn-active-bg: var(--pt-red-dark); --bs-btn-disabled-bg: var(--pt-red); --bs-btn-disabled-border-color: var(--pt-red); }
.btn-outline-primary { --bs-btn-color: var(--pt-red); --bs-btn-border-color: var(--pt-red); --bs-btn-hover-bg: var(--pt-red); --bs-btn-hover-border-color: var(--pt-red); --bs-btn-active-bg: var(--pt-red-dark); }
.text-brand { color: var(--pt-red) !important; }
.form-control:focus, .form-select:focus { border-color: var(--pt-red); box-shadow: 0 0 0 .2rem rgba(180, 29, 38, .14); }
.form-check-input:checked { background-color: var(--pt-red); border-color: var(--pt-red); }
.form-label { font-weight: 500; font-size: 13.5px; margin-bottom: .3rem; }
.form-control, .form-select { border-radius: 9px; padding: .55rem .8rem; font-size: 14.5px; }
.btn { border-radius: 9px; font-weight: 500; }

/* ---------- shell ---------- */
.pt-body { background: var(--pt-bg); }
.pt-shell { display: flex; min-height: 100vh; }
.pt-side { width: var(--pt-side-w); background: #16171b; color: #c9cbd2; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease; }
.pt-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: #fff; text-decoration: none; }
.pt-brand strong { display: block; font-size: 17px; letter-spacing: .5px; line-height: 1.1; }
.pt-brand small { display: block; font-size: 11.5px; color: #9ea1aa; }
.pt-brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--pt-red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.pt-nav { padding: 6px 12px; flex: 1; overflow-y: auto; }
.pt-nav a, .pt-side-foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: #c9cbd2; text-decoration: none; border-radius: 9px; margin-bottom: 2px; font-size: 14px; }
.pt-nav a i, .pt-side-foot a i { font-size: 17px; width: 20px; text-align: center; }
.pt-nav a:hover, .pt-side-foot a:hover { background: #24262c; color: #fff; }
.pt-nav a.active { background: var(--pt-red); color: #fff; }
.pt-side-foot { padding: 12px; border-top: 1px solid #2a2c33; }
.pt-main { flex: 1; margin-left: var(--pt-side-w); min-width: 0; display: flex; flex-direction: column; }
.pt-top { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--pt-line); position: sticky; top: 0; z-index: 1020; }
.pt-title { font-size: 19px; font-weight: 600; margin: 0; flex: 1; }
.pt-burger { display: none; border: 0; background: none; font-size: 26px; line-height: 1; padding: 0; color: var(--pt-ink); }
.pt-user { display: flex; align-items: center; gap: 10px; }
.pt-user-name { font-weight: 600; font-size: 13.5px; }
.pt-user-type { font-size: 11.5px; color: var(--pt-muted); }
.pt-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pt-red-soft); color: var(--pt-red); display: grid; place-items: center; font-weight: 700; }
.pt-content { padding: 26px 28px; flex: 1; }
.pt-foot { padding: 14px 28px; color: var(--pt-muted); font-size: 12.5px; }
.pt-overlay { display: none; }

@media (max-width: 991.98px) {
    .pt-side { transform: translateX(-100%); }
    .pt-side.open { transform: none; }
    .pt-overlay.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1030; }
    .pt-main { margin-left: 0; }
    .pt-burger { display: block; }
    .pt-top { padding: 12px 16px; }
    .pt-content { padding: 18px 16px; }
    .pt-foot { padding: 14px 16px; }
}

/* ---------- cards ---------- */
.pt-card { background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.pt-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pt-card-h h2, .pt-card-h h3 { font-size: 16px; font-weight: 600; margin: 0; }
.pt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pt-stat { background: #fff; border: 1px solid var(--pt-line); border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.pt-stat:hover { border-color: var(--pt-red); transform: translateY(-1px); color: inherit; }
.pt-stat-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex: none; }
.tone-red { background: var(--pt-red-soft); color: var(--pt-red); }
.tone-green { background: #e8f6ee; color: #198754; }
.tone-blue { background: #e9f1fd; color: #2563eb; }
.tone-amber { background: #fdf4e3; color: #b7791f; }
.tone-gray { background: #f0f1f4; color: #4b5563; }
.pt-stat-val { font-size: 22px; font-weight: 700; line-height: 1.1; }
.pt-stat-lbl { font-size: 12.5px; color: var(--pt-muted); }
.pt-table { width: 100%; font-size: 13.8px; }
.pt-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--pt-muted); font-weight: 600; border-bottom: 1px solid var(--pt-line); padding: 10px 10px; white-space: nowrap; }
.pt-table td { padding: 11px 10px; border-bottom: 1px solid #f0f1f4; vertical-align: middle; }
.pt-table tr:last-child td { border-bottom: 0; }
.pt-empty { text-align: center; padding: 34px 10px; color: var(--pt-muted); }
.pt-empty i { font-size: 36px; display: block; margin-bottom: 8px; color: #c4c7cf; }
.pt-badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #f0f1f4; color: #4b5563; }
.pt-badge.green { background: #e8f6ee; color: #157347; }
.pt-badge.red { background: var(--pt-red-soft); color: var(--pt-red); }
.pt-badge.amber { background: #fdf4e3; color: #9a6412; }
.pt-badge.blue { background: #e9f1fd; color: #1d4ed8; }
.pt-banner { border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.pt-banner i { font-size: 22px; }
.pt-banner.warn { background: #fff8e6; border: 1px solid #f5dfa5; color: #7a5300; }
.pt-banner.info { background: #eef4ff; border: 1px solid #cfdcfb; color: #1e3a8a; }
.pt-banner.ok { background: #ebf7f0; border: 1px solid #bfe3cd; color: #14532d; }
.pt-welcome { background: linear-gradient(120deg, #B41D26, #7d1018); color: #fff; border-radius: 16px; padding: 24px; margin-bottom: 20px; position: relative; overflow: hidden; }
.pt-welcome h2 { font-size: 21px; font-weight: 600; margin: 0 0 4px; }
.pt-welcome p { margin: 0; opacity: .88; }
.pt-welcome::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); }

/* ---------- jobs ---------- */
.pt-job { border: 1px solid var(--pt-line); border-radius: 14px; padding: 18px; background: #fff; height: 100%; display: flex; flex-direction: column; }
.pt-job h3 { font-size: 16px; font-weight: 600; margin: 0 0 3px; }
.pt-job .co { color: var(--pt-muted); font-size: 13px; }
.pt-job .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.8px; color: #4b5563; margin: 12px 0; }
.pt-job .meta i { color: var(--pt-red); margin-right: 4px; }
.pt-job .skills { font-size: 12.5px; color: var(--pt-muted); margin-bottom: 14px; flex: 1; }
.pt-match { font-size: 11px; font-weight: 600; background: #e8f6ee; color: #157347; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }

/* ---------- auth ---------- */
.pt-auth-body { background: #fff; }
.pt-auth { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 100vh; }
.pt-auth-art { background: radial-gradient(circle at 20% 10%, #c62a33 0, #8f141c 45%, #4a0a0f 100%); color: #fff; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; }
.pt-brand.light small { color: rgba(255,255,255,.75); }
.pt-brand.light .pt-brand-mark { background: #fff; color: var(--pt-red); }
.pt-brand.light { padding: 0; }
.pt-art-copy h2 { font-size: 32px; font-weight: 700; line-height: 1.25; max-width: 420px; margin-bottom: 26px; }
.pt-art-copy ul { list-style: none; padding: 0; margin: 0; }
.pt-art-copy li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: 15px; opacity: .95; }
.pt-art-copy li i { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 16px; flex: none; }
.pt-art-foot { opacity: .7; font-size: 12px; }
.pt-auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--pt-bg); }
.pt-auth-card { width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--pt-line); border-radius: 18px; padding: 32px; box-shadow: 0 10px 40px rgba(17, 24, 39, .06); }
.pt-auth-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.pt-type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.pt-type-tabs input { display: none; }
.pt-type-tabs label { border: 1.5px solid var(--pt-line); border-radius: 12px; padding: 12px 6px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 500; transition: all .15s; }
.pt-type-tabs label i { display: block; font-size: 20px; margin-bottom: 3px; color: var(--pt-muted); }
.pt-type-tabs input:checked + label { border-color: var(--pt-red); background: var(--pt-red-soft); color: var(--pt-red); }
.pt-type-tabs input:checked + label i { color: var(--pt-red); }
.pt-otp-input { font-size: 26px; letter-spacing: 12px; text-align: center; font-weight: 600; }
.pt-pass-wrap { position: relative; }
.pt-pass-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--pt-muted); }
@media (max-width: 991.98px) {
    .pt-auth { grid-template-columns: 1fr; }
    .pt-auth-art { display: none; }
    .pt-auth-form { padding: 20px 14px; align-items: flex-start; }
    .pt-auth-card { padding: 24px 18px; }
}

/* ---------- resume builder ---------- */
.rb-wrap { display: grid; grid-template-columns: minmax(340px, 470px) minmax(0, 1fr); gap: 20px; align-items: start; }
.rb-form, .rb-preview { min-width: 0; }
.rb-form .accordion-button { font-weight: 600; font-size: 14.5px; }
.rb-form .accordion-button:not(.collapsed) { background: var(--pt-red-soft); color: var(--pt-red); box-shadow: none; }
.rb-form .accordion-button:focus { box-shadow: none; }
.rb-item { border: 1px dashed #d6d8de; border-radius: 10px; padding: 12px; margin-bottom: 10px; position: relative; background: #fcfcfd; }
.rb-item .rb-del { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #9ca3af; font-size: 18px; }
.rb-item .rb-del:hover { color: var(--pt-red); }
.rb-preview { position: sticky; top: 84px; }
.rb-preview-frame { background: #e9ebf0; border-radius: 14px; padding: 16px; height: calc(100vh - 210px); min-height: 560px; overflow-y: auto; overflow-x: hidden; }
.rb-preview-frame iframe { width: 794px; height: 1123px; border: 0; background: #fff; transform-origin: top left; box-shadow: 0 6px 24px rgba(0,0,0,.12); display: block; }
.rb-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.rb-tpl { border: 2px solid var(--pt-line); border-radius: 10px; padding: 6px; cursor: pointer; text-align: center; font-size: 11.5px; font-weight: 500; background: #fff; }
.rb-tpl.active { border-color: var(--pt-red); color: var(--pt-red); }
.rb-tpl .thumb { height: 74px; border-radius: 6px; margin-bottom: 5px; background: #f3f4f6; position: relative; overflow: hidden; }
.rb-colors { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rb-colors button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d1d5db; }
.rb-colors button.active { box-shadow: 0 0 0 2px var(--pt-ink); }
.rb-save-state { font-size: 12.5px; color: var(--pt-muted); }
@media (max-width: 1199.98px) { .rb-wrap { grid-template-columns: minmax(0, 1fr); } .rb-preview { position: static; } .rb-preview-frame { height: 75vh; } }
