:root {
  --brand: #24476a;
  --brand-dark: #14243a;
  --accent: #c49a54;
  --page-bg: #f2f4f7;
  --card-bg: #ffffff;
  --text: #1d2937;
  --muted: #667085;
  --radius: 24px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page-bg); color: var(--text); font-family: var(--font); }
.page { width: min(100% - 28px, 520px); margin: 34px auto 48px; }
.card { overflow: hidden; background: var(--card-bg); border: 1px solid rgba(16,24,40,.07); border-radius: var(--radius); box-shadow: 0 18px 55px rgba(16,24,40,.09); }
.cover { height: 142px; background: linear-gradient(125deg, var(--brand-dark), var(--brand)); background-size: cover; background-position: center; }
.profile { padding: 0 28px 24px; text-align: center; }
.avatar-wrap { width: 112px; height: 112px; margin: -56px auto 16px; padding: 5px; position: relative; border-radius: 50%; background: white; }
.avatar { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #e7ebf0; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.55rem, 6vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.role { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.bio { max-width: 390px; margin: 14px auto 0; color: #526071; font-size: .95rem; line-height: 1.55; }
.primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.action, .link-item, .tool-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 13px; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.action:hover, .link-item:hover, .tool-button:hover { transform: translateY(-1px); opacity: .92; }
.action.primary { color: white; background: var(--brand); }
.action.outline { color: var(--brand); background: white; border: 1px solid #d8dee7; }
.links { display: grid; gap: 10px; padding: 0 28px 26px; }
.link-item { justify-content: flex-start; padding: 0 16px; color: var(--text); background: #f7f8fa; border: 1px solid #e9edf2; }
.link-item .link-icon { width: 26px; text-align: center; color: var(--brand); font-size: 1.1rem; }
.link-item .arrow { margin-left: auto; color: #98a2b3; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 22px; border-top: 1px solid #edf0f3; color: var(--muted); font-size: .76rem; }
.powered { white-space: nowrap; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tool-button { color: white; background: var(--brand); padding: 0 14px; }
.tool-button.secondary { color: var(--brand-dark); background: white; border: 1px solid #d8dee7; }
.qr-panel { margin-top: 14px; padding: 24px; text-align: center; background: white; border: 1px solid #e6eaf0; border-radius: 18px; }
.qr-panel h2 { margin: 0 0 7px; font-size: 1.15rem; }
.qr-panel p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.qr-code { display: flex; justify-content: center; margin: 0 auto 18px; min-height: 128px; }
.qr-code img, .qr-code canvas { max-width: 100%; }
.error { padding: 16px; color: #9b1c1c; background: #fff0f0; border-radius: 12px; }
@media (max-width: 390px) { .profile { padding-inline: 19px; } .links { padding-inline: 19px; } .footer { padding-inline: 16px; } }
