:root{
  --bg:#f7fbff;
  --surface:#ffffff;
  --surface-2:#eef4fb;
  --text:#111827;
  --muted:#64748b;
  --line:#dbe5f0;
  --primary:#1d4ed8;
  --primary-2:#0ea5e9;
  --primary-soft:#e8f1ff;
  --success:#0f8a42;
  --success-soft:#eaf7ef;
  --shadow:0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft:0 10px 24px rgba(15, 23, 42, 0.05);
  --radius:22px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:#f7fbff;
}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(219,229,240,0.8);
}

.nav{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
}

.brand__mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 24px rgba(29,78,216,0.18);
}

.brand__mark--sm{
  width:30px;
  height:30px;
  border-radius:10px;
  font-size:14px;
}

.brand__text{
  font-size:1.12rem;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav-links a{
  padding:10px 12px;
  border-radius:10px;
  color:#5b6778;
  font-weight:600;
}

.nav-links a.active,
.nav-links a:hover{
  background:#f2f7fd;
  color:var(--text);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn{
  border:none;
  cursor:pointer;
  border-radius:14px;
  padding:12px 18px;
  font-weight:700;
  transition:0.2s transform,0.2s opacity,0.2s background,0.2s box-shadow;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn:hover{transform:translateY(-1px)}

.btn--primary{
  color:#fff;
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow:0 10px 24px rgba(29,78,216,0.18);
}

.btn--primary:hover{
  box-shadow:0 14px 28px rgba(29,78,216,0.22);
}

.btn--ghost{
  background:#fff;
  color:var(--primary);
  border:1px solid #c8daf9;
}

.btn--ghost:hover{
  background:#f8fbff;
}

.burger{
  display:none;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  padding:10px;
  cursor:pointer;
}

.burger span{
  display:block;
  height:2px;
  background:#24364f;
  margin:5px 0;
  border-radius:999px;
}

.mobile-menu{
  display:none;
  padding:0 16px 16px;
  border-bottom:1px solid var(--line);
  background:#fff;
}

.mobile-menu a,
.mobile-menu button{
  width:100%;
  margin-top:10px;
}

.mobile-menu.show{
  display:grid;
}

.profile-page{
  padding:34px 0 42px;
}

.profile-shell{
  display:grid;
  gap:28px;
}

.profile-intro{
  max-width:860px;
}

.profile-intro__eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(29,78,216,.12);
  background:#fff;
  color:#5d6d82;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:18px;
}

.profile-intro h1{
  margin:0 0 12px;
  font-size:clamp(2.3rem, 4vw, 4rem);
  line-height:1.02;
  letter-spacing:-0.06em;
}

.profile-intro__text{
  max-width:760px;
}

.profile-layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:24px;
  align-items:start;
}

.profile-side,
.profile-main{
  display:grid;
  gap:18px;
}

.side-card,
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:24px;
  box-shadow:var(--shadow-soft);
}

.side-card--account h2{
  margin:0 0 10px;
  font-size:1.7rem;
  letter-spacing:-0.03em;
}

.side-kicker,
.panel-kicker{
  color:var(--muted);
  font-weight:700;
  margin-bottom:6px;
  font-size:0.95rem;
}

.muted{
  color:var(--muted);
  line-height:1.8;
  margin:0;
}

.small{
  font-size:0.95rem;
}

.account-box{
  margin-top:18px;
  padding:16px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid #dce8f7;
}

.account-box__title{
  font-weight:800;
  margin-bottom:6px;
}

.account-box__text{
  color:var(--muted);
  line-height:1.6;
}

.mini-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.mini-head h3{
  margin:0;
  font-size:1.05rem;
}

.progress-bar{
  height:12px;
  border-radius:999px;
  background:#e7eef7;
  overflow:hidden;
  margin-bottom:16px;
}

.progress-bar__fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  transition:width 0.25s ease;
}

.readiness-list{
  display:grid;
  gap:10px;
}

.ready-item{
  display:flex;
  align-items:center;
  gap:10px;
  color:#41556f;
  font-weight:600;
}

.ready-item::before{
  content:"";
  width:12px;
  height:12px;
  border-radius:999px;
  background:#d8e3f1;
  flex-shrink:0;
}

.ready-item.is-done{
  color:var(--success);
}

.ready-item.is-done::before{
  background:var(--success);
  box-shadow:0 0 0 5px var(--success-soft);
}

.preview-box{
  padding:16px;
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff, #f7fbff);
  border:1px solid #dce8f7;
}

.preview-name{
  font-size:1.1rem;
  font-weight:800;
  margin-bottom:6px;
}

.preview-headline{
  color:#334155;
  font-weight:600;
  margin-bottom:8px;
  line-height:1.5;
}

.preview-meta{
  color:var(--muted);
  font-size:0.95rem;
  line-height:1.6;
  margin-bottom:12px;
}

.preview-skills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.skill-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#eef4fb;
  border:1px solid #dbe5f0;
  color:#44566f;
  font-size:0.9rem;
  font-weight:700;
}

.panel--login h2{
  margin:0 0 8px;
  letter-spacing:-0.03em;
}

.panel--hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:linear-gradient(180deg, #ffffff, #f4f8ff);
}

.panel--hero h2{
  margin:0 0 8px;
  letter-spacing:-0.03em;
  font-size:1.8rem;
}

.hero-status{
  min-width:220px;
  padding:16px 18px;
  border-radius:20px;
  background:#fff;
  border:1px solid #dce8f7;
}

.hero-status__label{
  color:var(--muted);
  font-size:0.92rem;
  margin-bottom:6px;
}

.hero-status__value{
  font-weight:800;
  font-size:1.15rem;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.section-head h3{
  margin:0;
  font-size:1.3rem;
  letter-spacing:-0.03em;
}

.profile-form{
  display:grid;
  gap:18px;
}

.grid{
  display:grid;
  gap:16px;
}

.grid.two{
  grid-template-columns:repeat(2, 1fr);
}

.grid.one{
  grid-template-columns:1fr;
}

.field-group{
  display:grid;
  gap:8px;
}

.field-group label{
  font-weight:700;
}

.field-group input,
.field-group select,
.field-group textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 15px;
  outline:none;
  background:#fff;
  color:var(--text);
}

.field-group textarea{
  resize:vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus{
  border-color:#9dc2ff;
  box-shadow:0 0 0 4px rgba(59,130,246,0.12);
}

.file-note{
  margin-top:6px;
  font-size:0.92rem;
  color:var(--muted);
}

.panel--actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.panel-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.save-note{
  color:var(--muted);
}

.site-footer{
  padding:22px 0 28px;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:#5b6f8b;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%) translateY(10px);
  background:#111827;
  color:#fff;
  padding:12px 16px;
  border-radius:14px;
  opacity:0;
  pointer-events:none;
  transition:0.2s ease;
  z-index:80;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

[hidden]{
  display:none !important;
}

@media (max-width: 980px){
  .nav-links,
  .nav-actions{
    display:none;
  }

  .burger{
    display:block;
  }

  .profile-layout{
    grid-template-columns:1fr;
  }

  .panel--hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero-status{
    min-width:0;
    width:100%;
  }
}

@media (max-width: 700px){
  .grid.two{
    grid-template-columns:1fr;
  }

  .panel--actions{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .profile-page{
    padding-top:22px;
  }

  .profile-intro h1{
    font-size:2.25rem;
  }

  .side-card,
  .panel{
    padding:20px;
    border-radius:24px;
  }

  .panel-actions{
    width:100%;
  }

  .panel-actions .btn{
    width:100%;
  }
}