:root {
  --charcoal: #2b2b2b;
  --charcoal-deep: #201e20;
  --charcoal-soft: #333034;
  --lavender: #b39ddb;
  --lavender-soft: #cbbcec;
  --text: #f7f3f9;
  --muted: #c7c0ca;
  --line: rgba(179, 157, 219, .30);
  --secondary-border: rgba(179, 157, 219, .34);
  --card-width: 28rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--charcoal-deep); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -8%, rgba(179, 157, 219, .14), transparent 34rem),
    linear-gradient(180deg, #242124 0%, #1e1c1e 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(0px, 3vw, 32px) 16px;
}

.card {
  width: min(100%, var(--card-width));
  min-height: min(760px, calc(100dvh - 32px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 42px) clamp(22px, 6vw, 36px) 24px;
  background: linear-gradient(180deg, rgba(49,46,50,.98), rgba(43,43,43,.98));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 34px;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}

.profile-header { text-align: center; }
.logo-wrap {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  box-shadow:
    0 15px 32px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,.035),
    0 0 26px rgba(179,157,219,.11);
}
.logo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

h1 {
  margin: 0;
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.38rem, 9.5vw, 3.2rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.055em;
}
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.035em;
}

.title-line {
  margin: 10px 0 0;
  color: var(--lavender-soft);
  font-size: .76rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.button {
  min-height: 56px;
  border-radius: 17px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: .97rem;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button i { width: 20px; text-align: center; }
.button:active { transform: scale(.985); }
.button:focus-visible, .quick-action:focus-visible, .location-summary:focus-visible, .modal-close:focus-visible {
  outline: 3px solid rgba(179,157,219,.52);
  outline-offset: 3px;
}
.button-primary {
  background: var(--lavender);
  color: #211e25;
  box-shadow: 0 10px 28px rgba(179,157,219,.13);
}
.button-primary:hover { background: #c1ade5; }
.button-secondary {
  background: rgba(255,255,255,.035);
  color: var(--text);
  border-color: var(--secondary-border);
}
.button-secondary:hover { background: rgba(179,157,219,.09); border-color: rgba(179,157,219,.58); }
.button-quiet { min-height: 48px; background: transparent; color: var(--lavender-soft); border-color: transparent; }

.profile-details {
  margin-top: 24px;
  text-align: center;
}

.services {
  margin: 0 auto;
  color: #eee8f1;
  font-size: .94rem;
  line-height: 1.45;
  font-weight: 600;
}
.services .service-item { color: #eee8f1; }
.services .service-separator { color: var(--lavender); padding: 0 .22rem; }

.location-summary {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(199, 192, 202, .76);
  text-decoration: none;
  font-size: .76rem;
  line-height: 1.45;
  font-weight: 500;
}
.location-summary i {
  color: rgba(203,188,236,.82);
  font-size: .74rem;
}
.location-summary:hover { color: var(--text); }
.location-city { color: rgba(199, 192, 202, .64); }
.location-city::before { content: "•"; margin-right: 6px; color: rgba(203,188,236,.48); }

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.quick-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(179,157,219,.085);
  border: 1px solid var(--secondary-border);
  color: #d4c6ef;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}
.quick-action i { font-size: 1.06rem; }
.quick-action:hover {
  background: rgba(179,157,219,.16);
  border-color: rgba(179,157,219,.68);
  color: #eee6ff;
  transform: translateY(-1px);
}

.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,8,9,.78); backdrop-filter: blur(9px); }
.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 28px), 26rem);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  text-align: center;
  background: #302d31;
  border: 1px solid rgba(179,157,219,.27);
  border-radius: 28px;
  padding: 33px 24px 24px;
  box-shadow: 0 32px 110px rgba(0,0,0,.58);
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 14px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.06);
  color: #e4deea;
  cursor: pointer;
}
.modal-kicker {
  margin: 0 0 8px;
  color: var(--lavender-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.modal-copy { margin: 12px auto 21px; max-width: 20rem; color: var(--muted); line-height: 1.5; font-size: .92rem; }
.qr-frame {
  width: 216px;
  height: 216px;
  margin: auto;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}
.qr-frame img { width: 100%; height: 100%; display: block; }
.profile-url { margin: 14px 0 18px; color: #e4deea; font-size: .88rem; word-break: break-word; }
.modal-actions { display: grid; gap: 5px; }
.status { min-height: 1.25rem; margin: 7px 0 0; color: var(--lavender-soft); font-size: .82rem; }

@media (max-width: 540px) {
  .shell { padding: 0; }
  .card {
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 24px;
  }
}

@media (max-height: 700px) {
  .card {
    justify-content: flex-start;
    min-height: 100dvh;
    padding-top: 22px;
  }
  .logo-wrap {
    width: 74px;
    height: 74px;
    margin-bottom: 14px;
    border-radius: 50%;
  }
  h1 { font-size: 2.45rem; }
  .actions { margin-top: 22px; gap: 9px; }
  .button { min-height: 51px; }
  .profile-details { margin-top: 20px; }
  .location-summary { margin-top: 7px; }
  .quick-actions { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
