:root{
  --bg:#eef2f7;
  --card:#ffffff;
  --text:#111827;
  --muted:#5b6472;
  --line:#d7dde7;
  --brand:#0f172a;
  --accent:#2563eb;
  --accent-strong:#1d4ed8;
  --soft:#f8fafc;
  --shadow:0 18px 40px rgba(15,23,42,.12);
  --radius:8px;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  background:linear-gradient(180deg,#f8fafc 0,#eef2f7 100%);
  color:var(--text);
  font-family:Inter,Segoe UI,Arial,sans-serif;
  overflow-x:hidden;
}
a{text-decoration:none;color:inherit}
button{font:inherit}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.page-shell{
  width:100%;
  max-width:100vw;
  padding:24px 16px 40px;
  overflow-x:hidden;
}
.card{
  width:min(100%,420px);
  max-width:100%;
  margin:0 auto;
  background:var(--card);
  border:1px solid rgba(215,221,231,.8);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.hero{
  position:relative;
  height:220px;
  background:#000;
}
.hero-cover{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(2,6,23,.18) 0,rgba(2,6,23,.48) 100%);
}
.hero-actions{
  position:absolute;
  top:14px;
  right:14px;
  display:flex;
  gap:10px;
  z-index:2;
}
.icon-button{
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.icon-button:hover{background:rgba(255,255,255,.18)}
.identity{
  padding:0 24px 28px;
  text-align:center;
  margin-top:-58px;
  position:relative;
  z-index:2;
  width:100%;
  max-width:100%;
  min-width:0;
}
.profile-photo{
  width:116px;
  height:116px;
  border-radius:999px;
  object-fit:cover;
  object-position:center top;
  border:5px solid #fff;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.16);
}
.brand-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:14px;
  padding:8px 12px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:var(--accent-strong);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
}
.identity h1{
  margin:14px 0 8px;
  font-size:36px;
  line-height:1.02;
  letter-spacing:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.title{
  margin:0;
  font-size:17px;
  font-weight:700;
  color:#1f2937;
  max-width:100%;
  overflow-wrap:anywhere;
}
.subtitle{
  margin:10px 0 0;
  font-size:15px;
  color:var(--muted);
  max-width:100%;
  overflow-wrap:anywhere;
}
.location{
  margin:6px 0 0;
  font-size:14px;
  color:#6b7280;
  max-width:100%;
  overflow-wrap:anywhere;
}
.summary{
  margin:18px auto 0;
  max-width:32ch;
  font-size:15px;
  line-height:1.65;
  color:#374151;
  overflow-wrap:anywhere;
}
.primary-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  margin-top:22px;
  min-height:54px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent) 0,var(--accent-strong) 100%);
  color:#fff;
  font-weight:700;
  box-shadow:0 12px 24px rgba(37,99,235,.22);
  max-width:100%;
}
.primary-cta svg{width:22px;height:22px}
.primary-cta span{min-width:0;overflow-wrap:anywhere}
.content-section{
  padding:24px;
  border-top:1px solid var(--line);
  width:100%;
  max-width:100%;
  min-width:0;
}
.section-heading h2{
  margin:0;
  font-size:18px;
}
.section-heading p{
  margin:6px 0 0;
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
}
.action-grid{
  display:grid;
  gap:12px;
  margin-top:18px;
  width:100%;
  max-width:100%;
}
.primary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.action-card{
  min-height:122px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--soft);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
  min-width:0;
  max-width:100%;
}
.action-card:hover{
  transform:translateY(-1px);
  border-color:#bfdbfe;
  box-shadow:0 14px 24px rgba(37,99,235,.08);
}
.action-icon{
  width:46px;
  height:46px;
  border-radius:999px;
  background:#dbeafe;
  color:var(--accent-strong);
  display:grid;
  place-items:center;
}
.action-icon svg{width:22px;height:22px}
.action-label{
  font-size:15px;
  font-weight:700;
  color:#111827;
}
.action-meta{
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.secondary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.mini-action{
  min-height:52px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:14px;
  font-weight:600;
  color:#334155;
  max-width:100%;
  min-width:0;
  overflow-wrap:anywhere;
}
.mini-action:hover{
  border-color:#bfdbfe;
  background:#f8fbff;
}
.payment-section{padding-bottom:28px}
.payment-card{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg,#fff 0,#f8fafc 100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  max-width:100%;
}
.payment-label{
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
}
.payment-number{
  display:block;
  margin-top:6px;
  font-size:18px;
  color:#111827;
}
.secondary-button{
  min-width:128px;
  min-height:44px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#fff;
  color:#1e293b;
  cursor:pointer;
  font-weight:600;
}
.secondary-button:hover{background:#f8fafc}
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:flex-end;
  justify-content:center;
  background:rgba(15,23,42,.45);
  padding:16px;
  z-index:20;
}
.modal-open{display:flex}
.modal-sheet{
  width:min(100%,420px);
  background:#fff;
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.modal-close{
  width:40px;
  height:40px;
  margin-left:auto;
  border:none;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.modal-view{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.modal-view-hidden{display:none}
.modal-view h2{
  margin:14px 0 0;
  font-size:20px;
}
.modal-view p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.55;
}
.pill-button{
  width:100%;
  min-height:52px;
  margin-top:20px;
  border:none;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  font-weight:700;
}
.pill-button svg{width:20px;height:20px}
.qr-box{
  margin-top:14px;
  padding:18px;
  border-radius:var(--radius);
  background:#fff;
  border:1px solid var(--line);
}
.qr-box svg{
  width:220px;
  height:220px;
  display:block;
}
@media (max-width:520px){
  html,body{overflow-x:hidden}
  .page-shell{padding:0;max-width:100vw}
  .card{
    width:100%;
    max-width:100vw;
    min-height:100vh;
    border:none;
    border-radius:0;
    box-shadow:none;
  }
  .identity h1{font-size:clamp(2rem,7vw,2.5rem);line-height:1.06}
  .title{font-size:clamp(1rem,4.6vw,1.125rem)}
  .content-section,.identity{padding-left:18px;padding-right:18px}
  .primary-grid,.secondary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .action-card,.mini-action,.payment-card,.primary-cta{width:100%}
  .action-card{padding:12px 10px;min-height:98px;gap:10px;align-items:center;text-align:center}
  .action-icon{width:42px;height:42px}
  .action-icon svg{width:20px;height:20px}
  .action-label{font-size:13px;line-height:1.2}
  .action-meta{font-size:11px;line-height:1.3}
  .mini-action{min-height:46px;padding:10px 8px;font-size:12px}
  .payment-card{flex-direction:column;align-items:flex-start}
  .secondary-button{width:100%}
}
