* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0A0A0A;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #0E0E0E;
  border-radius: 24px;
  padding: 52px 28px 36px;
  border: 1px solid rgba(197, 165, 90, 0.06);
  box-shadow: 0 0 80px rgba(197, 165, 90, 0.02);
}

/* Top-right action buttons — small, quiet */
.top-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(197, 165, 90, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.action-btn:hover {
  border-color: rgba(197, 165, 90, 0.4);
  background: rgba(34, 34, 34, 0.8);
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

/* Logo — refined sizing with breathing room */
.logo-section {
  text-align: center;
  margin-bottom: 4px;
  margin-top: 32px;
}

.logo-img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Tagline */
.tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: #C5A55A;
  opacity: 0.55;
  text-transform: uppercase;
  text-align: center;
  margin-top: 16px;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197, 165, 90, 0.35) 50%, transparent 100%);
  margin: 28px 0;
}

/* Name & Title */
.person-name {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
}

.person-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #C5A55A;
  opacity: 0.75;
  margin-bottom: 28px;
}

/* Contact rows */
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.contact-row:hover { opacity: 0.75; }

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #151515;
  border: 1px solid rgba(197, 165, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 15px;
  height: 15px;
  stroke: #C5A55A;
  fill: none;
  stroke-width: 1.5;
}

.contact-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}

/* Social icons */
.social-section {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 28px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #151515;
  border: 1px solid rgba(197, 165, 90, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.social-icon:hover {
  background: #1C1C1C;
  border-color: rgba(197, 165, 90, 0.35);
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: rgba(255, 255, 255, 0.5);
}

/* Save Contact button — refined, not chunky */
.save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C5A55A 0%, #D4B96A 50%, #B8953E 100%);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #0A0A0A;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.save-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.save-btn:active {
  transform: translateY(0);
}

.save-btn svg {
  width: 15px;
  height: 15px;
  stroke: #0A0A0A;
  fill: none;
  stroke-width: 2;
}

/* Wallet buttons */
.wallet-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.wallet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9px;
  background: #141414;
  border: 1px solid rgba(197, 165, 90, 0.08);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.2s;
  text-decoration: none;
}

.wallet-btn:hover {
  border-color: rgba(197, 165, 90, 0.25);
  color: rgba(255, 255, 255, 0.75);
}

.wallet-btn svg {
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.35);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 24px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.25em;
  color: rgba(197, 165, 90, 0.2);
  text-transform: uppercase;
}

/* QR Overlay — gold on dark, no white box */
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.qr-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qr-close {
  position: absolute;
  top: env(safe-area-inset-top, 16px);
  right: 16px;
  margin-top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.qr-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.qr-box {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box canvas {
  display: block;
}

.qr-label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(197, 165, 90, 0.5);
  margin-top: 24px;
}

/* NFC indicator */
.nfc-indicator {
  text-align: center;
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(197, 165, 90, 0.3);
  text-transform: uppercase;
  display: none;
}

.nfc-indicator.visible {
  display: block;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(197, 165, 90, 0.85);
  color: #0A0A0A;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  padding: 9px 20px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 200;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 380px) {
  .card {
    padding: 44px 22px 28px;
  }
  .logo-img {
    width: 160px;
  }
  .wallet-btn {
    padding: 9px 14px;
    font-size: 10px;
  }
}

/* Safe area for notch devices */
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}
