:root {
  --bg-main: #070708;
  --bg-card: #141417;
  --bg-card-alt: #1b1b20;
  --text-primary: #f5f5f5;
  --text-secondary: #b5b5b5;
  --accent: #c9a86a;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg-main);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  padding: 16px;
  padding-bottom: env(safe-area-inset-bottom);
}

.card {
  background: linear-gradient(
    180deg,
    var(--bg-card-alt) 0%,
    var(--bg-card) 100%
  );
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px 20px;
  text-align: center;
  animation: fadeIn 0.35s ease;
  position: relative;
  backdrop-filter: saturate(120%);

  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-pic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
  border: 1px solid var(--border-subtle);
}

h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 25px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.title {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-info {
  text-align: left;
  margin-bottom: 28px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.05);

  height: 180px;           /* fixed height for mobile */
  overflow-y: auto;        /* vertical scroll if content overflows */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */

  scrollbar-width: thin;   /* Firefox */
  scrollbar-color: var(--accent) rgba(255,255,255,0.05); /* Firefox */
}

.contact-info div {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-info span {
  color: var(--text-primary);
}

.contact-info::-webkit-scrollbar {
  width: 6px;
}

.contact-info::-webkit-scrollbar-track {
  background: transparent;
}

.contact-info::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 3px;
}

.btn {
  width: 100%;
  min-height: 48px;
  /* padding: 15px; */
  border-radius: 32px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 6px;
}

.btn.primary {
  background: var(--accent);
  color: #000;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.gold-btn {
  border-radius: 12px;
  border: none;
  background-color: var(--accent);
  color: #000;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.gold-btn svg {
  transition: all 0.25s ease;
  stroke: currentColor; /* icon will be black by default */
}

/* Hover effect: invert colors for luxury feel */
.gold-btn:hover,
.gold-btn:active {
  background-color: #000;
  color: var(--accent);
}

.gold-btn:active {
  transform: scale(0.94);
}

/* Ensure links look correct */
.button-row a .gold-btn {
  text-decoration: none;
}

.icon-only {
  width: 48px;
  height: 48px;
  padding: 0; /* removes extra padding */
}

.icon-only svg {
  width: 24px;
  height: 24px;
}

/* Share button (larger) */
.share-btn {
  flex: 1;           /* takes remaining space */
  min-width: 160px;  /* optional */
  height: 48px;      /* same height for visual alignment */
  padding: 0 20px;   /* horizontal padding for text */
  font-size: 16px;   /* slightly bigger text */
  font-weight: 600;  
}

form input {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

form input:focus {
  outline: none;
  border-color: var(--accent);
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at top, #1a1a20 0%, #070708 70%);
}

/* Header row layout */
.header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}

/* Name + title block */
.name-block {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.name-block h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 25px;
  margin: 6px 0;
  line-height: 1.2;
}

/* Override previous centering */
.header-row h1,
.header-row .title {
  margin-left: 0;
  text-align: left;
}

/* Round icon download button */
.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px; /* rounded square */
  border: 1px solid var(--border-subtle);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(0,0,0,0.2)
  );
  color: var(--accent); /* icon color */
  font-size: 16px;
  cursor: pointer;

  display: grid;
  place-items: center;
  flex-shrink: 0;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition: all 0.25s ease;
}

.icon-btn svg {
  transition: all 0.25s ease;
}


.icon-btn:active {
  transform: scale(0.94);
  background: var(--accent);
  color: #000;
}

.footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  font-size: 12px;
  color: var(--text-secondary);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-separator {
  opacity: 0.4;
}

@media (min-width: 768px) {
  body {
    align-items: center;
  }

  .app {
    max-width: 420px;
  }

  .contact-info {
    height: 160px;
  }

  .icon-btn:hover {
    background: var(--accent);
    color: #000;                 
  } 

  .btn.primary:hover {
    opacity: 0.85;
    color: #000;
  }

  .back-link:hover {
    color: var(--accent);
  }
  icon-btn:hover {
    border-color: var(--accent);
    background: rgba(201,168,106,0.15);
  }
}

@media (max-width: 767px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh; 
  }

  .app {
    width: 100%;
  }
}
