:root { --card-primary: #4b183f; --card-accent: #f35d68; --ink: #241b22; --muted: #766e74; --line: #e8e2e5; --paper: #fff; }
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 80% 0, color-mix(in srgb, var(--card-accent) 10%, transparent), transparent 32%), #eee9ec; font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.card-shell { width: min(680px, calc(100% - 28px)); margin: 32px auto; }
.digital-card { overflow: hidden; border: 1px solid rgba(60, 33, 51, .08); border-radius: 28px; background: var(--paper); box-shadow: 0 35px 100px rgba(40, 16, 33, .15); }
.card-cover { position: relative; display: flex; align-items: flex-start; justify-content: space-between; min-height: 255px; padding: 24px; color: white; background-image: linear-gradient(180deg, rgba(28, 8, 22, .16), rgba(28, 8, 22, .58)), var(--cover); background-position: center; background-size: cover; }
.card-cover::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 48px; background: linear-gradient(180deg, transparent, rgba(24,8,19,.42)); content: ""; }
.home-link { position: relative; z-index: 1; display: grid; gap: 2px; font-size: .94rem; font-weight: 900; letter-spacing: .08em; direction: ltr; }
.home-link small { color: rgba(255,255,255,.7); font-size: .57rem; letter-spacing: .27em; }
.share-button { position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.38); border-radius: 22px; color: white; background: rgba(24, 8, 19, .28); font-size: .7rem; font-weight: 800; cursor: pointer; backdrop-filter: blur(12px); }
.card-profile { position: relative; padding: 0 46px 42px; }
.avatar-wrap { position: relative; width: 120px; height: 120px; margin-top: -63px; }
.avatar { display: grid; width: 120px; height: 120px; place-items: center; border: 5px solid white; border-radius: 30px; object-fit: contain; color: white; background: var(--card-primary); box-shadow: 0 13px 36px rgba(47,20,39,.22); font-size: 2.6rem; font-weight: 900; }
.availability { position: absolute; right: -3px; bottom: 4px; width: 19px; height: 19px; border: 4px solid white; border-radius: 50%; background: #2cb879; }
.identity { margin-top: 23px; }
.identity h1 { margin: 0 0 8px; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; letter-spacing: -.045em; }
.identity p { margin: 0 0 6px; color: var(--muted); font-size: .83rem; }
.identity strong { color: var(--card-primary); font-size: .75rem; }
.bio { margin: 25px 0 28px; color: #655d63; font-size: .88rem; line-height: 2; }
.primary-actions { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 10px; }
.action { display: grid; min-height: 82px; place-items: center; align-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: #faf8f9; font-size: .68rem; font-weight: 800; text-align: center; transition: transform .2s ease, border-color .2s ease; }
.action:hover, .action:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--card-primary) 35%, var(--line)); }
.action-main { border-color: transparent; color: white; background: var(--card-primary); }
.action img { width: 22px; height: 22px; color: currentColor; }
.action-main img { filter: brightness(0) invert(1); }
.plus-icon { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.05rem; font-weight: 400; }
.contact-list { display: grid; gap: 1px; margin: 32px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.contact-list a { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 12px; min-height: 74px; padding: 13px 17px; background: white; }
.contact-list img { width: 20px; height: 20px; color: var(--card-primary); }
.contact-list span { display: grid; gap: 5px; min-width: 0; }
.contact-list small { color: #958b92; font-size: .63rem; }
.contact-list b { overflow: hidden; font-size: .74rem; line-height: 1.65; text-overflow: ellipsis; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 1rem; }
.section-title span { color: #675f65; font-size: .63rem; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.platform-grid a { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 10px; min-height: 60px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbfb; }
.platform-grid img, .platform-fallback { display: grid; width: 21px; height: 21px; place-items: center; color: var(--card-primary); font-size: .7rem; font-weight: 900; }
.platform-grid b { font-size: .72rem; }
.platform-grid i { color: #afa5ac; font-size: .74rem; font-style: normal; }
.qr-panel { display: grid; grid-template-columns: 178px 1fr; align-items: center; gap: 24px; margin-top: 34px; padding: 22px; border-radius: 18px; color: white; background: linear-gradient(135deg, var(--card-primary), color-mix(in srgb, var(--card-primary) 72%, #000)); }
.qr-panel > img { width: 178px; height: 178px; padding: 9px; border-radius: 13px; background: white; }
.qr-panel h2 { margin: 0 0 10px; font-size: 1.2rem; }
.qr-panel p { margin: 0 0 16px; color: rgba(255,255,255,.64); font-size: .68rem; line-height: 1.8; }
.qr-panel a { display: inline-flex; min-height: 37px; align-items: center; padding: 0 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; font-size: .66rem; font-weight: 800; }
.qr-downloads { display: flex; flex-wrap: wrap; gap: 7px; }
.digital-card footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px 46px; border-top: 1px solid var(--line); color: #655d63; background: #faf8f9; font-size: .62rem; }
.digital-card footer a { color: var(--card-primary); }
.fixed-link { margin: 15px 0 0; color: #81777e; font-size: .62rem; text-align: center; }
.fixed-link b { color: var(--card-primary); }
.toast { position: fixed; z-index: 20; right: 50%; bottom: 24px; min-width: 180px; padding: 13px 18px; transform: translateX(50%); border-radius: 9px; color: white; background: #171015; box-shadow: 0 15px 45px rgba(0,0,0,.24); font-size: .73rem; font-weight: 800; text-align: center; }
.toast[hidden] { display: none; }

@media (max-width: 620px) {
  .card-shell { width: 100%; margin: 0; }
  .digital-card { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .card-cover { min-height: 225px; padding: 20px; }
  .card-profile { padding: 0 19px 30px; }
  .avatar-wrap, .avatar { width: 105px; height: 105px; }
  .avatar-wrap { margin-top: -55px; }
  .avatar { border-radius: 26px; }
  .identity h1 { font-size: 2.35rem; }
  .primary-actions { grid-template-columns: 1fr 1fr; }
  .action:first-child { grid-column: 1 / -1; }
  .platform-grid { grid-template-columns: 1fr; }
  .qr-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .digital-card footer { padding: 18px 20px; }
  .fixed-link { padding: 0 14px 14px; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
