: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);
}

*{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:var(--bg);
}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}

.company-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:100vh;
}

.sidebar{
  background:#fff;
  border-right:1px solid var(--line);
  padding:14px 10px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.sidebar__brand{
  padding:6px 6px 10px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}

.brand__mark{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:6px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.brand__text{
  font-size:1.05rem;
}

.sidebar__group{
  display:grid;
  gap:6px;
}

.sidebar__label{
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
  color:#b2bfd1;
  padding:0 8px 4px;
}

.side-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:10px;
  color:#5b6778;
  font-weight:600;
}

.side-link:hover{
  background:#f2f7fd;
  color:var(--text);
}

.side-link.active{
  background:#eef4fb;
  color:#111827;
}

.side-link__icon{
  width:16px;
  text-align:center;
  color:#98a4b5;
}

.side-link__count{
  margin-left:auto;
  min-width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f3f7fd;
  color:#6b7280;
  font-size:.74rem;
  font-weight:800;
}

.sidebar__footer{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.sidebar-user{
  display:flex;
  align-items:center;
  gap:10px;
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}

.sidebar-user__avatar{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-weight:800;
}

.sidebar-user__name{
  font-size:.95rem;
  font-weight:700;
}

.sidebar-user__company{
  font-size:.82rem;
  color:#94a3b8;
}

.main{
  min-width:0;
}

.topbar{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:22px 28px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.topbar__left h1{
  margin:0 0 6px;
  font-size:2rem;
  letter-spacing:-0.04em;
}

.topbar__left p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.topbar__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn{
  border:none;
  cursor:pointer;
  border-radius:12px;
  padding:11px 16px;
  font-weight:700;
  transition:.2s ease;
  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);
}

.avatar-btn{
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.content{
  padding:22px 28px 28px;
  display:grid;
  grid-template-columns:280px 1fr;
  gap:20px;
  align-items:start;
}

.profile-side,
.profile-main{
  display:grid;
  gap:16px;
}

.company-card,
.completion-card,
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}

.company-card{
  overflow:hidden;
}

.company-card__cover{
  height:84px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 28%),
    linear-gradient(135deg, #2348a7 0%, #2f63e0 48%, #4b8ef7 100%);
}

.company-card__body{
  padding:0 18px 18px;
  text-align:center;
}

.company-card__title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.company-card__logo{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  color:#111827;
  font-weight:800;
  font-size:1.15rem;
  margin:-26px auto 12px;
  box-shadow:0 8px 24px rgba(15,23,42,.12);
}

.company-card__body h2{
  margin:0 0 6px;
  font-size:1.55rem;
  letter-spacing:-0.03em;
}

.company-card__industry{
  color:#94a3b8;
  margin-bottom:12px;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  border:1px solid transparent;
}
.status-pill--draft{
  color:#92400e;
  background:#fef3c7;
  border-color:#fcd34d;
}
.status-pill--pending{
  color:#075985;
  background:#e0f2fe;
  border-color:#bae6fd;
}
.status-pill--verified{
  color:#0f8a42;
  background:#eaf7ef;
  border-color:#c7ead4;
}

.company-card__stats{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  border-top:1px solid var(--line);
  margin:0 -18px -18px;
}

.company-card__stats > div{
  padding:14px 10px;
  border-right:1px solid var(--line);
}

.company-card__stats > div:last-child{
  border-right:none;
}

.company-card__stats strong{
  display:block;
  font-size:1.5rem;
  margin-bottom:4px;
}

.company-card__stats span{
  color:#94a3b8;
  font-size:.85rem;
}

.completion-card{
  padding:18px;
}

.completion-card h3{
  margin:0 0 12px;
  font-size:1.1rem;
}

.progress-bar{
  height:8px;
  border-radius:999px;
  background:#edf2f7;
  overflow:hidden;
  margin-bottom:10px;
}

.progress-bar__fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  transition:width .25s ease;
}

.completion-card p{
  margin:0;
  color:#94a3b8;
  line-height:1.6;
}

.profile-form{
  display:grid;
  gap:16px;
}

.panel{
  padding:22px;
}

.panel__head{
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid #edf1f5;
}

.panel__head h3{
  margin:0;
  font-size:1.2rem;
  letter-spacing:-0.02em;
}

.panel__head .muted{
  margin:4px 0 0;
}

.panel--verification{
  border:1px dashed var(--line);
  background:var(--surface-2);
}

.verification-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

.grid{
  display:grid;
  gap:16px;
}

.grid.two{
  grid-template-columns:repeat(2, 1fr);
}

.grid.three{
  grid-template-columns:repeat(3, 1fr);
}

.field-group{
  display:grid;
  gap:8px;
}

.field-group label{
  font-weight:700;
  color:#374151;
}

.field-group input,
.field-group select,
.field-group textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 14px;
  outline:none;
  background:#fff;
  color:#111827;
}

.field-group textarea{
  resize:vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder{
  color:#b0bac8;
}

.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:.2s ease;
  z-index:80;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media (max-width: 1100px){
  .content{
    grid-template-columns:1fr;
  }
}

@media (max-width: 900px){
  .company-layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    display:none;
  }
}

@media (max-width: 700px){
  .topbar{
    padding:18px 16px;
    flex-direction:column;
    align-items:stretch;
  }

  .topbar__actions{
    justify-content:space-between;
  }

  .content{
    padding:16px;
  }

  .grid.two{
    grid-template-columns:1fr;
  }

  .company-card__stats{
    grid-template-columns:1fr;
  }

  .company-card__stats > div{
    border-right:none;
    border-top:1px solid var(--line);
  }

  .company-card__stats > div:first-child{
    border-top:none;
  }
}
