:root{
  --bg:#f4f4f4;
  --panel:#ffffff;
  --panel-soft:#fafafa;
  --red:#e30000;
  --red-dark:#cb0000;
  --red-soft:#f24a1d;
  --blue:#3a9be8;
  --blue-soft:#eef7ff;
  --yellow:#f5c643;
  --green:#21b66f;
  --text:#1f2937;
  --muted:#7b8794;
  --line:#e7eaef;
  --shadow-sm:0 8px 18px rgba(0,0,0,.05);
  --shadow-md:0 14px 34px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(58,155,232,.08), transparent 26%),
    radial-gradient(circle at top right, rgba(227,0,0,.06), transparent 20%),
    var(--bg);
  color:var(--text);
}

.top-strip{
  background:#fff;
  padding:16px 28px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:18px;
  font-weight:800;
}

.top-strip span{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.header-bar{
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  color:#fff;
  box-shadow:var(--shadow-md);
  gap:14px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-badge{
  width:58px;
  height:58px;
  border-radius:18px;
  background:#fff;
  color:var(--red);
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:26px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.brand h1{
  margin:0;
  font-size:30px;
  font-weight:900;
  letter-spacing:-.03em;
}

.brand p{
  margin:4px 0 0;
  font-size:13px;
  font-weight:600;
  opacity:.94;
}

.header-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.btn,
.mini{
  border:none;
  border-radius:16px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
  font-size:14px;
  font-family:inherit;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease, box-shadow .18s ease;
}

.btn:hover,
.mini:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-sm);
}

.btn{
  background:rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
}

.btn.blue,
.mini.blue{
  background:linear-gradient(135deg,var(--blue),#2d8ad7);
  color:#fff;
  border:none;
}

.btn.red,
.mini.red{
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  color:#fff;
  border:none;
}

.btn.yellow,
.mini.gold{
  background:linear-gradient(135deg,var(--yellow),#efd977);
  color:#6b5000;
  border:none;
}

.content{
  padding:28px 22px 42px;
  max-width:1320px;
  margin:0 auto;
}

.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.welcome{
  color:var(--blue);
  font-size:30px;
  font-weight:900;
  margin:0;
  letter-spacing:-.04em;
}

.hero-sub{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
  max-width:780px;
}

.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.meta span{
  padding:9px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:12px;
  font-weight:800;
  color:var(--text);
  box-shadow:var(--shadow-sm);
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.profile-layout{
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:22px;
}

.panel{
  background:rgba(255,255,255,.9);
  border-radius:28px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  border:1px solid var(--line);
}

.panel-head{
  padding:22px 22px 10px;
}

.panel-head h3{
  margin:0;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.03em;
}

.panel-head p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.panel-body{
  padding:16px 22px 24px;
  display:grid;
  gap:14px;
}

.profile-panel{
  position:sticky;
  top:22px;
}

.profile-panel .panel-body{
  gap:18px;
}

.avatar-shell{
  display:grid;
  justify-items:center;
  gap:14px;
}

.avatar-wrap{
  position:relative;
  width:128px;
  height:128px;
}

.avatar{
  width:128px;
  height:128px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid #fff;
  background:#eff2f6;
  box-shadow:0 14px 28px rgba(0,0,0,.12);
}

.verified{
  position:absolute;
  right:8px;
  bottom:8px;
  width:26px;
  height:26px;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  border:2px solid #fff;
}

.upload-input{display:none}

.profile-actions{
  display:grid;
  gap:10px;
  width:100%;
}

.upload-btn{
  width:100%;
  min-height:46px;
}

.upload-btn input{display:none}

.profile-name{
  text-align:center;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.03em;
}

.profile-email{
  margin-top:6px;
  text-align:center;
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
  word-break:break-word;
}

.badge-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid transparent;
}

.pill.red{
  background:rgba(227,0,0,.1);
  border-color:rgba(227,0,0,.12);
  color:var(--red);
}

.pill.blue{
  background:rgba(58,155,232,.12);
  border-color:rgba(58,155,232,.18);
  color:var(--blue);
}

.stat-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.stat-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
  box-shadow:var(--shadow-sm);
}

.stat-box strong{
  display:block;
  font-size:28px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.04em;
}

.stat-box span{
  display:block;
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
  line-height:1.55;
  font-weight:700;
}

.content-stack,
.stack,
.nav-list,
.doc-list{
  display:grid;
  gap:22px;
}

.split-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:22px;
}

.section-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.section-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.section-row .status-note{
  margin-top:8px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.field{
  display:grid;
  gap:6px;
}

.field label{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}

.field input,
.field select{
  width:100%;
  border:1px solid #ddd;
  border-radius:16px;
  padding:13px 14px;
  font-size:14px;
  background:#fff;
  outline:none;
  font-family:inherit;
}

.status-note{
  min-height:20px;
  font-size:13px;
  font-weight:800;
  color:var(--muted);
}

.status-note.ok{color:#15803d}
.status-note.err{color:#b91c1c}

.nav-card,
.doc-card{
  background:#fff;
  border:1px solid #ededed;
  border-radius:22px;
  padding:16px;
  box-shadow:var(--shadow-sm);
}

.nav-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  transition:transform .18s ease, box-shadow .18s ease;
}

.nav-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}

.nav-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.icon-box{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:12px;
  font-weight:900;
  flex-shrink:0;
  box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.icon-blue{background:linear-gradient(135deg,#4da2ff,#2f7cff)}
.icon-pink{background:linear-gradient(135deg,#ff7ea1,#ff4f83)}
.icon-green{background:linear-gradient(135deg,#37d889,#17b26a)}
.icon-red{background:linear-gradient(135deg,#ff5f5f,#d50000)}
.icon-gold{background:linear-gradient(135deg,#f2ca62,#d9a928)}
.icon-peach{background:linear-gradient(135deg,#ffae98,#ff8a7a)}
.icon-sky{background:linear-gradient(135deg,#58cbff,#37b6ff)}

.nav-text{
  min-width:0;
  display:grid;
  gap:4px;
}

.nav-title{
  font-size:15px;
  font-weight:900;
  line-height:1.25;
}

.nav-subtitle{
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
}

.chevron{
  color:#98a2b3;
  font-size:22px;
  line-height:1;
  flex-shrink:0;
}

.doc-card strong{
  font-size:16px;
  color:#333;
}

.doc-card p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.empty{
  text-align:center;
  padding:18px 12px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  background:#fff;
  border:1px dashed var(--line);
  border-radius:18px;
}

.footer{
  margin-top:28px;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.9);
}

.footer-inner{
  max-width:1320px;
  margin:0 auto;
  padding:18px 22px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.footer-nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.footer-nav a{
  text-decoration:none;
  color:var(--muted);
}

.footer-nav a:hover{
  color:var(--red);
}

@media (max-width:1180px){
  .profile-layout,
  .split-grid,
  .section-grid{
    grid-template-columns:1fr;
  }

  .profile-panel{
    position:static;
  }
}

@media (max-width:760px){
  .top-strip,
  .header-bar,
  .content,
  .footer-inner{
    padding-left:14px;
    padding-right:14px;
  }

  .grid-2,
  .stat-grid{
    grid-template-columns:1fr;
  }

  .header-actions,
  .hero-actions{
    width:100%;
  }

  .header-actions .btn,
  .hero-actions .mini{
    flex:1 1 180px;
  }

  .welcome{
    font-size:26px;
  }
}
