/* Public profile — built on the exact visual system used by admin/style.css */
.public-page { width:min(100%,1180px); }
.public-topbar .brand { text-decoration:none; }
.public-topbar .brand:hover .brand-icon { border-color:var(--line-strong); }

.public-hero {
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
  gap:clamp(30px,6vw,78px);
  align-items:center;
  min-height:610px;
  margin-top:18px;
  padding:clamp(30px,6vw,72px);
}
.public-hero::before {
  content:"R/D";
  position:absolute;
  left:-18px;
  bottom:-47px;
  color:rgba(255,255,255,.024);
  font-size:clamp(120px,20vw,245px);
  font-weight:900;
  line-height:.75;
  letter-spacing:-16px;
  direction:ltr;
  pointer-events:none;
}
.public-hero::after {
  content:"";
  position:absolute;
  width:410px;
  height:410px;
  right:-220px;
  top:-230px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:50%;
  box-shadow:0 0 0 52px rgba(255,255,255,.012),0 0 0 104px rgba(255,255,255,.008);
  pointer-events:none;
}
.hero-copy,.portrait-shell { position:relative; z-index:2; }
.hero-copy h2 {
  max-width:780px;
  margin:0;
  font-size:clamp(49px,8vw,91px);
  line-height:.94;
  letter-spacing:-4px;
}
.hero-description {
  max-width:710px;
  margin:24px 0 0;
  color:var(--muted);
  font-size:clamp(15px,2vw,18px);
  line-height:1.9;
}
.hero-description strong { color:var(--accent-2); }
.hero-actions { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:10px; margin-top:30px; }
.hero-actions .primary,.hero-actions .secondary {
  min-height:74px;
  padding:11px 14px;
  gap:12px;
  justify-content:flex-start;
  text-align:right;
}
.hero-actions span:last-child { display:grid; gap:2px; min-width:0; }
.hero-actions b { font-size:13px; }
.hero-actions small { color:inherit; opacity:.68; font-size:10px; font-weight:550; }
.button-mark {
  width:43px;
  height:43px;
  flex:0 0 43px;
  display:grid;
  place-items:center;
  border:1px solid rgba(32,20,13,.15);
  border-radius:12px;
  background:rgba(32,20,13,.08);
  font-size:23px;
  font-weight:500;
  direction:ltr;
}
.hero-secondary .button-mark { border-color:var(--line); background:rgba(255,255,255,.045); color:var(--accent-2); font-size:10px; font-weight:800; }
.hero-meta { display:flex; flex-wrap:wrap; gap:14px 22px; margin-top:23px; color:var(--muted-2); font-size:11px; }
.hero-meta span { display:inline-flex; align-items:center; gap:8px; }
.hero-meta i { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px rgba(199,139,102,.09); }

.portrait-shell { max-width:390px; justify-self:end; }
.portrait-glow {
  position:absolute;
  inset:12% -9% -7% 20%;
  border-radius:45%;
  background:radial-gradient(circle,rgba(199,139,102,.23),transparent 68%);
  filter:blur(20px);
  pointer-events:none;
}
.profile-portrait {
  position:relative;
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center;
  border:1px solid rgba(255,255,255,.13);
  border-radius:30px;
  background:var(--surface-2);
  box-shadow:0 28px 80px rgba(0,0,0,.44);
}
.portrait-caption {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:calc(100% - 28px);
  margin:-42px auto 0;
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:17px;
  background:rgba(15,17,22,.91);
  box-shadow:0 18px 40px rgba(0,0,0,.3);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.portrait-caption div { display:grid; gap:2px; }
.portrait-caption span { color:var(--muted-2); font-size:9px; letter-spacing:.5px; text-transform:uppercase; }
.portrait-caption strong { font-size:16px; }
.portrait-caption > b { color:var(--accent-2); font-size:21px; letter-spacing:-1px; direction:ltr; }

.account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.account-card {
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  color:var(--text);
  background:rgba(255,255,255,.025);
  text-decoration:none;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.account-card:hover { transform:translateY(-2px); border-color:var(--line-strong); background:rgba(255,255,255,.05); }
.account-icon {
  width:51px;
  height:51px;
  flex:0 0 51px;
  display:grid;
  place-items:center;
  border:1px solid rgba(199,139,102,.2);
  border-radius:15px;
  color:var(--accent-2);
  background:rgba(199,139,102,.075);
  font-size:11px;
  font-weight:850;
  direction:ltr;
}
.account-copy { min-width:0; display:grid; gap:3px; }
.account-copy small { color:var(--muted-2); font-size:10px; }
.account-copy strong { overflow:hidden; text-overflow:ellipsis; direction:ltr; text-align:right; font-size:14px; }
.account-arrow { margin-right:auto; color:var(--muted-2); font-size:18px; direction:ltr; }

.skill-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.skill-card {
  min-height:108px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:17px;
  background:rgba(255,255,255,.024);
}
.skill-card > span {
  width:47px;
  height:47px;
  flex:0 0 47px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--accent-2);
  background:rgba(255,255,255,.035);
  font-size:10px;
  font-weight:850;
  direction:ltr;
}
.skill-card div { min-width:0; display:grid; gap:4px; }
.skill-card strong { font-size:14px; }
.skill-card small { color:var(--muted-2); font-size:10px; line-height:1.5; }

.public-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:29px 8px 10px;
  color:var(--muted-2);
}
.footer-brand { display:flex; align-items:center; gap:10px; }
.footer-brand img { width:39px; height:39px; border:1px solid var(--line); border-radius:12px; object-fit:cover; }
.footer-brand div { display:grid; gap:1px; }
.footer-brand strong { color:var(--text); font-size:12px; }
.footer-brand span,.public-footer p { margin:0; font-size:9px; }

@media (max-width:900px) {
  .public-hero { grid-template-columns:1fr; min-height:auto; }
  .portrait-shell { width:min(100%,420px); justify-self:center; grid-row:1; }
  .hero-copy { text-align:center; }
  .hero-copy h2,.hero-description { margin-inline:auto; }
  .hero-actions { width:min(100%,670px); margin-inline:auto; }
  .hero-meta { justify-content:center; }
}
@media (max-width:720px) {
  .hero-actions,.account-grid,.skill-grid { grid-template-columns:1fr; }
  .public-hero { padding:24px 16px 30px; }
  .profile-portrait { aspect-ratio:1/1.12; }
  .skill-card { min-height:92px; }
}
@media (max-width:560px) {
  .public-topbar .back-link { white-space:nowrap; }
  .hero-copy h2 { font-size:clamp(43px,14vw,61px); letter-spacing:-2.8px; }
  .hero-description { margin-top:18px; font-size:14px; }
  .portrait-shell { width:100%; }
  .public-footer { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) {
  .account-card,.public-topbar .brand-icon { transition:none; }
}
