:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --soft:#f8fafc;
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --green:#16a34a;
  --shadow:0 14px 30px rgba(15,23,42,.08);
  --radius:18px;
  --radiusPill:999px;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color: var(--blue); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Top bar */
.top{
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid var(--line);
  background:#fff;
  position:sticky;
  top:0;
  z-index:100;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:-.4px;
  color:var(--text);
}
.brand:hover{text-decoration:none}
.brand img{
  width:32px;height:32px;
  border-radius:8px;
  border:1px solid var(--line);
}
.nav{display:flex;gap:2px}
.nav a{
  font-size:13px;
  padding:8px 10px;
  border-radius:10px;
  color:#334155;
}
.nav a:hover{background:var(--soft);text-decoration:none}

/* Layout */
.wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 18px 80px;
}
.avatar{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--blue),var(--blue2));display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:950;flex-shrink:0}
   
/* Profile page */
.profile-header{
  display:flex;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}
.profile-icon{
  width:64px;height:64px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:28px;
  font-weight:950;
  flex-shrink:0;
}
.profile-info{ flex:1; min-width:200px; }

h1{
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -.6px;
  line-height:1.2;
}
h2{
  margin: 28px 0 12px;
  font-size: 17px;
  letter-spacing: -.2px;
  font-weight:900;
}

.muted{ color: var(--muted); }

.pills{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  border:1px solid var(--line);
  background: var(--soft);
  color:#475569;
}
.pill.live{
  border-color:rgba(22,163,74,.3);
  background:rgba(22,163,74,.06);
  color:#166534;
}
.pill.pending{
  border-color:rgba(234,179,8,.35);
  background:rgba(234,179,8,.08);
  color:#7c5f00;
}

/* Cards */
.card{
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:14px;
}

.fact{
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--soft);
}
.fact-label{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  margin-bottom:4px;
}
.fact-value{
  font-size:16px;
  font-weight:800;
  color:var(--text);
  word-break:break-word;
}
.fact-value a{color:var(--blue)}

/* Services list */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:8px;
}
.service-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--soft);
  font-size:14px;
  font-weight:600;
}
.service-item::before{
  content:"✓";
  color:var(--green);
  font-weight:900;
  flex-shrink:0;
}

/* CTA banner */
.cta-banner{
  margin-top:24px;
  padding:20px 24px;
  border:2px solid var(--blue);
  border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(37,99,235,.04),rgba(37,99,235,.08));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.cta-banner-text{
  font-weight:800;
  font-size:15px;
}
.cta-banner-sub{
  font-size:13px;
  color:var(--muted);
  margin-top:2px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:var(--radiusPill);
  font-weight:900;
  font-size:14px;
  border:1px solid var(--line);
  background:var(--soft);
  color:var(--text);
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition:filter .15s ease;
}
.btn:hover{filter:brightness(.97);text-decoration:none}
.btn-primary{
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  color:#fff;
  border-color:rgba(37,99,235,.35);
}
.btn-primary:hover{filter:brightness(1.05)}

/* Structured data badge */
.schema-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border:1px solid rgba(22,163,74,.25);
  border-radius:12px;
  background:rgba(22,163,74,.04);
  color:#166534;
  font-size:13px;
  font-weight:700;
  margin-top:12px;
}

/* Footer */
.profile-footer{
  margin-top:32px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
  text-align:center;
  line-height:1.5;
}

code{
  background:var(--soft);
  border:1px solid var(--line);
  padding:2px 6px;
  border-radius:8px;
  font-size:12px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .top { padding: 0 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav a { font-size: 12px; padding: 6px 8px; }

  .wrap { padding: 24px 14px 60px; }
  .profile-header { gap: 14px; }
  .profile-icon { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; }
  
  h1 { font-size: 22px; margin-bottom: 4px; }
  .pills { gap: 4px; }
  .pill { padding: 4px 8px; font-size: 11px; }

  .card { padding: 16px; margin-top: 12px; }
  .card-grid { grid-template-columns: 1fr; gap: 10px; }
  .fact { padding: 12px; }
  .fact-value { font-size: 15px; }

  .services-grid { grid-template-columns: 1fr; }
  
  .cta-banner { padding: 16px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
}
