/* Standalone LUNA SEN-Scapes digital business card. */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
#body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #09090b 0%, #000 100%);
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 3.5rem;
}

.luna-gradient {
  background-image: linear-gradient(135deg, #ff69b4 0%, #7ad7f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.scapes {
  color: #111;
}

.cardHeader {
  position: relative;
  height: 80px;
  background: transparent;
  width: 100%;
  overflow: visible;
  z-index: 5;
}

.headerImgC {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

#topActions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
}

#topActions > div {
  display: flex;
  align-items: center;
}

#topActions > div > * + * {
  margin-left: 0.75rem;
}

#topActions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  z-index: 1001;
  text-decoration: none;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#topActions a:hover {
  transform: scale(1.05);
}

#topActions .icon {
  width: 24px;
  height: 24px;
}

#topActions .icon svg {
  width: 100%;
  height: 100%;
}

main {
  background-color: #fff;
  margin: 4.75rem auto 2rem;
  padding: 0 0 1rem;
  max-width: 420px;
  width: 90%;
  min-width: 280px;
  border-radius: 12px;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #ff69b4, #7ad7f0);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

#profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -22px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 20;
  width: 100%;
}

@media (min-width: 768px) {
  main {
    max-width: 400px;
    width: auto;
  }

  #topActions {
    right: calc((100vw - 400px) / 2 + 1rem);
  }
}

#profile > img,
#profileImage {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: contain;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  background: #000;
  padding: 0;
}

#info {
  text-align: center;
  padding: 0 1rem;
  margin-top: 1rem;
  width: 100%;
}

.name.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.subhead.text {
  margin: 0.5rem 0 0;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #111;
  line-height: 1.5;
}

.desc.text {
  text-align: center;
  line-height: 1.5;
  color: #111;
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255, 105, 180, 0.35);
}

.text {
  text-align: center;
  line-height: 1.5;
  color: #000;
}

.actions {
  margin: 1.5rem 0;
}

#cta {
  text-align: center;
  margin-bottom: 1.25rem;
}

#vcard,
#quoteCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

#vcard {
  background: #ff69b4 !important;
}

#quoteCta {
  background: linear-gradient(135deg, #ff69b4, #7ad7f0) !important;
}

#vcard > * + *,
#quoteCta > * + * {
  margin-left: 0.5rem;
}

#vcard:hover,
#quoteCta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#vcard svg {
  stroke: currentColor;
}

.actionsC {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 320px;
  margin: 1rem auto 0;
  justify-items: center;
}

.actionsC > * {
  margin: 0.375rem;
}

.actionBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.actionBtn > a {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ff69b4 !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 105, 180, 0.28);
}

.actionBtn:nth-child(2) > a {
  background: linear-gradient(135deg, #ff69b4, #7ad7f0) !important;
}

.actionBtn:nth-child(3) > a {
  background: #7ad7f0 !important;
  color: #111 !important;
}

.actionBtn > a:hover {
  transform: translateY(-2px);
}

.actionBtn .icon.action svg {
  width: 24px;
  height: 24px;
}

.actionBtn p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #111;
  font-weight: 700;
}

.nfcBar {
  margin: 0 1rem 1rem;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 105, 180, 0.35);
  background: #fff7fb;
  text-align: center;
}

.nfcTitle {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.installBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff69b4, #7ad7f0);
}

.nfcHint {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #5b5b5b;
}

.contentStream {
  padding: 0 1rem 0.75rem;
}

.streamSection {
  margin: 1.25rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 105, 180, 0.35);
  border-radius: 12px;
  background: #fafafa;
}

.streamTitle {
  margin: 0.25rem 0 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #111;
}

.portfolio {
  display: grid;
  gap: 0.75rem;
}

.portfolioGroup {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  padding: 0.75rem;
}

.portfolioLabel {
  margin: 0 0 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #71717a;
}

.portfolioGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.portfolioGrid img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e4e4e7;
}

footer {
  margin-top: 1.25rem;
  padding: 1rem;
  border-top: 1px solid rgba(122, 215, 240, 0.65);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-weight: 800;
  background: #f9fafb;
}

.footerLogo {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
}

.footerMeta {
  margin: 0.45rem 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
}

footer a {
  color: #000;
  text-underline-offset: 3px;
}

#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}

#modal.open {
  display: flex;
}

#modalView {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#closeModal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
}

#closeModal a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

#closeModal svg {
  width: 22px;
  height: 22px;
}

#copyView,
#qrView {
  display: none;
}

#copyView.active,
#qrView.active {
  display: block;
}

#copyURL {
  width: 100%;
  margin-top: 0.75rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

#qr {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  justify-content: center;
}

.luna-nfc-ready-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 9, 11, 0.96);
  color: #fafafa;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
  z-index: 9998;
  border-top: 1px solid #3f3f46;
}

.luna-nfc-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  max-width: 720px;
  margin: 0 auto;
}

.luna-nfc-mode-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.luna-nfc-mode-label select {
  background: #18181b;
  color: #fafafa;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
}
