@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --pb-bg:#F2F4F7; --pb-card:#FFFFFF; --pb-line:#E9EBF0; --pb-text:#1A2333; --pb-muted:#7A8194;
  --pb-blue:#2F6BFF; --pb-blue-rgb:47,107,255; --pb-green:#1BB774; --pb-amber:#E0A83E; --pb-red:#E14C4C;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{ background:var(--pb-bg); color:var(--pb-text); font-family:'Inter',sans-serif; -webkit-font-smoothing:antialiased; min-height:100vh; }
.bg-grid{ display:none; } /* no dark instrument-panel backdrop on the light profile page */
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
.eyebrow{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--pb-muted); font-weight:600; }
h1,h2,h3{ font-weight:800; letter-spacing:-0.01em; color:var(--pb-text); }
body{
    background-color: #ffffff;
}
/* ---------- Topbar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: rgb(255 255 255 / 82%);
    backdrop-filter: blur(14px);
    border-bottom: 0px solid var(--line-soft);
    width: 1140px;
    box-shadow: 0px 0px 40px 17px #efefef;
    margin-top: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #7a3fe5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-mark svg{ width:15px; height:15px; }
.brand-text{ display:flex; flex-direction:column; line-height:1; }
.brand-text .wordmark {
    font-family: inter;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .02em;
    color: #4c1d96;
}
.brand-text .tagline {
    font-family: inter;
    font-size: 9.5px;
    letter-spacing: .18em;
    color: var(--muted-2);
    margin-top: 3px;
    text-transform: uppercase;
}
.topbar-right{ display:flex; align-items:center; gap:12px; }
.plan-pill {
    font-family: inter;
    font-size: 12px;
    letter-spacing: .1em;
    padding: 13px 24px;
    border-radius: 100px;
    border: 1px solid #8a90a3;
    color: #8a90a3;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-ghost-accent {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 9px;
    border: 1px solid rgb(64 34 111);
    color: #ffffff;
    transition: .25s;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%);
    font-family: 'Poppins';
}
.avatar-chip {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--panel-3);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter';
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%);
}
div#kredscore-app {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}
/* ---------- Shell / sidebar (light) ---------- */
.shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    width: 1140px;
}
main{ padding:30px 36px 90px; max-width:1180px; margin:0 auto; width:100%; }
.rail-full {
    border-right: 0px solid var(--line-soft);
    padding: 35px 0px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
    scrollbar-color: rebeccapurple #ffffff;
    scrollbar-width: none;
}
.side-item.active span.side-ico {
    color: #ffffff !important;
}
.side-parent:hover span.side-chev {
    color: #ffffff;
}
.side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 9px;
    color: #000000 !important;
    font-size: 13px;
    font-weight: 400;
    background: none !important;
    border: none;
    width: 100%;
    text-align: left;
    transition: .15s;
    font-family: 'Inter';
    box-shadow: 0px 4px 14px 2px #ebebeb;
}
.side-item:hover span.side-ico {
    color: #ffffff !important;
}
.side-item:hover {
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%) !important;
    color: #ffffff !important;
}
.side-item.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%) !important;
}
.side-ico{ width:26px; height:26px; border-radius:8px; background:#EFEAFF; color:#5B3DF6; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.side-item.active .side-ico{ background:rgba(255,255,255,.2); color:#ffffff; }
.side-ico svg{ width:14px; height:14px; }
.side-label{ flex:1; }
.side-chev{ font-family:monospace; color:var(--pb-muted); font-size:14px; }
.side-sub {
    padding-left: 0px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 6px 0 6px;
}
.side-sub.collapsed{ display:none; }
.side-sub-item {
    padding: 10px 10px;
    font-size: 12px;
    color: #000000 !important;
    border-radius: 7px;
    background: none !important;
    border: none;
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter';
    height: 38px;
}
.side-sub-item:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%) !important;
}
.side-sub-item:hover .side-ico{ background:rgba(255,255,255,.2); color:#ffffff; }
.side-sub-sub{ padding-left:16px; display:flex; flex-direction:column; }
.side-sub-sub.collapsed{ display:none; }
.side-sub-sub-item{ padding:7px 10px; font-size:11.8px; color:var(--pb-muted); }
.side-logout{ color:var(--pb-red); }
.side-logout .side-ico{ background:#FDE4E9; color:var(--pb-red); }

.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.sec-head{ margin:20px 0 14px; }
.sec-title {
    font-size: 20px;
    font-size: 24px;
    margin-top: 0px;
    font-family: 'Inter';
    background: linear-gradient(90deg, #6D28D9, #3B2163);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.sec-sub{ color:var(--pb-muted); font-size:13px; margin-top:4px; }
.profile-empty{ max-width:520px; margin:60px auto; text-align:center; }

/* ---------- Dashboard summary (image 5) ---------- */
.pb-score-card{ background:var(--pb-card); border:1px solid var(--pb-line); border-radius:16px; padding:24px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; box-shadow:0 2px 10px rgba(20,30,60,.04); }
.pb-score-left{ display:flex; align-items:center; gap:16px; }
.pb-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%) !important;
}
.pb-name{ font-size:17px; font-weight:800; display:flex; align-items:center; gap:8px; }
.pb-edit{ color:var(--pb-blue); font-size:14px; }
.pb-score-row{ display:flex; align-items:center; gap:6px; margin-top:8px; }
.pb-score-num{ font-size:22px; font-weight:800; }
.pb-score-max{ font-size:13px; color:var(--pb-muted); }
.pb-bureau-badge {
    margin-left: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    border: 1px solid #422273;
    padding: 2px 8px;
    border-radius: 20px;
    background-color: #422273;
}
.pb-status-pill{ display:inline-block; margin-top:6px; font-size:11.5px; font-weight:700; color:var(--pb-green); background:#e8f9f1; padding:3px 10px; border-radius:20px; }
.pb-updated{ font-size:11.5px; color:var(--pb-muted); margin-top:6px; }
.pb-score-right{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.pb-btn-download {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 9px;
    border: 1px solid rgb(64 34 111);
    transition: .25s;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%);
    font-family: 'Poppins';
}
.pb-btn-download:hover{ filter:brightness(1.08); }
.pb-view-details {
    font-size: 14px;
    font-weight: 700;
    color: #45237a;
}

.pb-eyebrow {
    font-size: 24px;
    letter-spacing: normal;
    font-weight: 700;
    color: var(--pb-muted);
    margin: 31px 0 19px;
    background: linear-gradient(90deg, #6D28D9, #3B2163);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.pb-loan-banner{ position:relative; overflow:hidden; background:linear-gradient(120deg,#152a7a,#2140c9); border-radius:16px; padding:26px 30px; color:#fff; max-width:420px; }
.pb-loan-title{ font-weight:700; font-size:15px; margin-bottom:6px; }
.pb-loan-amt {
    font-size: 33px;
    font-weight: 800;
    color: #ffc93c;
    margin-bottom: 10px;
}
.pb-loan-banner ul{ list-style:none; font-size:14px; opacity:.9; margin-bottom:14px; }
.pb-loan-banner li{ padding:2px 0; }
.pb-loan-badge{ position:absolute; top:14px; right:-34px; transform:rotate(28deg); background:#FFC93C; color:#1a2333; font-size:9.5px; font-weight:800; padding:4px 40px; }
.pb-btn-white {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 9px;
    border: 1px solid rgb(255 255 255);
    color: #3b2163 !important;
    transition: .25s;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff !important;
    font-family: 'Poppins';
}

.pb-explore-grid{ display:flex; gap:10px; flex-wrap:wrap; }
.pb-explore-item{ background:var(--pb-card); border:1px solid var(--pb-line); border-radius:12px; padding:16px 18px; display:flex; flex-direction:column; align-items:center; gap:10px; font-size:11.5px; font-weight:600; color:var(--pb-text); width:104px; text-align:center; }
.pb-explore-item:hover{ border-color:var(--pb-blue); }
.pb-explore-ico{ width:30px; height:30px; border-radius:8px; background:linear-gradient(135deg,#eef2ff,#e2e8ff); display:block; }

.pb-offers{ margin-top:30px; }
.pb-offers h3 {
    margin-bottom: 9px;
    font-size: 24px;
    font-style: normal;
    margin-top: 0px;
    font-family: 'Inter';
    background: linear-gradient(90deg, #6D28D9, #3B2163);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-transform: uppercase;
}
.pb-offers-sub {
    color: #000000;
    font-size: 14px;
    margin-bottom: 24px;
}
.pb-offers-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.pb-offer-card {
    background: var(--pb-card);
    border: 1px solid var(--pb-line);
    border-left: 4px solid var(--pb-blue);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.pb-offer-tag{ display:inline-block; font-size:12px; font-weight:700; color:var(--pb-green); text-transform:uppercase; margin-bottom:10px; }
.pb-offer-card b {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}
.pb-offer-card ul {
    list-style: none;
    font-size: 12px;
    color: var(--pb-muted);
    margin-bottom: 16px;
    text-align: center;
}
.pb-offer-card li{ padding:2px 0; }
.pb-btn-blue {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 9px;
    border: 1px solid rgb(64 34 111);
    transition: .25s;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%);
    font-family: 'Poppins';
    text-align: center;
    justify-content: center;
}

.pb-app-banner {
    margin-top: 26px;
    border: 1px solid var(--pb-line);
    border-radius: 16px;
    padding: 30px 35px 42px 35px;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%) !important;
}
.pb-app-banner b {
    font-size: 26px;
    color: #fff;
    font-family: 'Inter';
}
.pb-app-banner p {
    font-size: 14px;
    color: #ffffff;
    margin: 6px 0 24px;
    max-width: max-content;
}
.pb-app-buttons{ display:flex; gap:10px; flex-wrap:wrap; }
.pb-app-btn {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 9px;
    border: 1px solid rgb(255 255 255);
    color: #452479;
    transition: .25s;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgb(255 255 255) 0%, rgb(255 255 255) 100%);
    font-family: 'Poppins';
}

/* ---------- Detailed profile + employment (image 4) ---------- */
.profile-grid{ display:grid; grid-template-columns:1fr; gap:18px; align-items:start; }
.profile-card{ background:var(--pb-card); border:1px solid var(--pb-line); border-radius:16px; padding:26px; box-shadow:0 2px 10px rgba(20,30,60,.04); }
.profile-head{ display:flex; align-items:center; gap:14px; padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--pb-line); }
.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 19px;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%) !important;
}
.profile-head b{ font-size:15.5px; }
.profile-complete{ font-size:12px; color:var(--pb-muted); margin-top:3px; }
.profile-complete span{ color:var(--pb-green); font-weight:700; }
.profile-complete-bar{ height:5px; border-radius:4px; background:#EDEFF3; margin-top:7px; width:200px; overflow:hidden; }
.profile-complete-fill{ height:100%; width:0%; background:var(--pb-green); border-radius:4px; transition:width 1.1s cubic-bezier(.2,.8,.2,1); }
.profile-fields{ display:grid; grid-template-columns:1fr 1fr; gap:16px 22px; }
.profile-field-wide{ grid-column:1 / -1; }
.profile-fields label{ display:block; font-size:10.5px; color:var(--pb-muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:5px; }
.profile-fields b{ font-size:14px; }

.profile-emp-head{ display:flex; align-items:center; gap:12px; margin-bottom:30px; }
.link-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%) !important;
}
.link-icon svg{ width:17px; height:17px; }
.profile-emp-head h3 {
    font-size: 16.5px;
    margin: auto;
    margin-left: 0px;
}
#kredscore-profile-form label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 600;
}
#kredscore-profile-form select, #kredscore-profile-form input{ display:block; width:100%; margin-top:6px; background:#fff; border:1px solid var(--pb-line); border-radius:9px; padding:11px 12px; color:var(--pb-text); font-size:14px; font-weight:400; }
.kredscore-form-error{ color:var(--pb-red); font-size:12px; min-height:16px; margin-bottom:6px; }
.btn-liquidity {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 9px;
    border: 1px solid rgb(64 34 111);
    color: #ffffff;
    transition: .25s;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgb(109, 40, 217) 0%, rgb(59, 33, 99) 100%);
    font-family: 'Poppins';
}
.btn-liquidity:hover{ filter:brightness(1.08); }
.profile-note{ font-size:14px; color:var(--pb-muted); margin-top:12px; line-height:1.5; }

@media (max-width:980px){
  .shell{ grid-template-columns:0 1fr; }
  .rail-full{ display:none; }
  .profile-grid, .pb-offers-grid{ grid-template-columns:1fr; }
  .profile-fields{ grid-template-columns:1fr; }
  main{ padding:24px 16px 70px; }
}
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }
