* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
}

.page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.card {
  width: 100%;
  max-width: 1040px;
}

.profile {
  text-align: center;
  margin-bottom: 5px;
}

.profile img {
  width: 180px;
}

.profile h1 {
  margin: 10px 0 5px;
}

.profile p {
  font-size: 14px;
  color: #333;
}

/* SOCIAL BUTTON */
.social-btn {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.social-btn .left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.social-btn i {
  font-size: 22px;
}

.whatsapp { color: #25D366; }
.facebook { color: #1877F2; }
.instagram { color: #E1306C; }
.linkedin { color: #0A66C2; }
.website { color: #E1306C; }
.location { color: #EA4335; }
.google { color: #4285F4; }
.star { color: #F4B400; }

.dots {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* SHARE POPUP */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
}

.share-overlay.active {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.share-sheet {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 20px 20px 0 0;
  padding: 20px;
}

.share-sheet h2 {
  text-align: center;
  margin-bottom: 5px;
}

.share-sheet p {
  text-align: center;
  font-size: 12px;
  color: #666;
}

.share-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}

.share-grid button {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.share-grid i {
  font-size: 22px;
}

.share-grid span {
  font-size: 11px;
  margin-top: 6px;
}

.close {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #f2f2f2;
  cursor: pointer;
}

footer {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.footer-content {
  text-align: center;
  font-size: 13px;
}


/* DESKTOP */
@media (min-width: 768px) {
  .share-overlay.active {
    align-items: center;
  }
  .share-sheet {
    border-radius: 20px;
  }
}


/* DESKTOP & TABLET: 2 buttons per row */
@media (min-width: 768px) {
  .card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* profile should stay full width */
  .profile {
    grid-column: span 2;
  }
}


.share-sheet p {
  text-align: center;
  font-size: 12px;
  color: #666;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
