/* ─── CUSTOM STYLES FOR PUBLIC PROFILES (/p/[username]) & UTILITIES ─── */

/* PERFIL PÚBLICO CONTAINER */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px;
}

.nfc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.loading-state, .not-found-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #10B981;
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.profile-content { width: 100%; }

.profile-header { text-align: center; margin-bottom: 28px; }

.avatar-wrapper { position: relative; display: inline-block; margin-bottom: 14px; }
.profile-avatar, .avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.avatar-placeholder {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFF;
}

.online-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #10B981;
  border: 3px solid #0B0F17;
  border-radius: 50%;
}

.profile-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 2px; }
.profile-username { color: #10B981; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.profile-bio { color: #94A3B8; font-size: 0.9rem; max-width: 360px; margin: 0 auto 16px auto; }

.direct-contact-wrapper { width: 100%; margin-top: 8px; }
.btn-direct-contact {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399; text-decoration: none; font-weight: 700; border-radius: 16px;
}

.links-grid { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-bottom: 30px; }
.link-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; color: #F8FAFC; text-decoration: none;
  backdrop-filter: blur(16px); transition: all 0.3s ease;
}
.link-card:hover { background: rgba(30, 41, 59, 0.85); border-color: rgba(16, 185, 129, 0.4); transform: translateY(-2px); }
.link-left { display: flex; align-items: center; gap: 12px; }
.link-icon-box { font-size: 1.2rem; color: #10B981; }
.link-title { font-weight: 600; font-size: 0.95rem; }

.profile-footer { text-align: center; color: #64748B; font-size: 0.8rem; margin-bottom: 40px; }

.btn-floating-lead {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; align-items: center; gap: 8px; padding: 14px 22px;
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%); color: #090D16; border: none;
  border-radius: 9999px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4); transition: all 0.3s ease;
}

.lead-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(11, 15, 23, 0.85); backdrop-filter: blur(12px);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
}

.lead-modal-card {
  background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px; padding: 28px; width: 100%; max-width: 420px; position: relative;
}

.btn-close-modal { position: absolute; top: 16px; right: 16px; background: transparent; border: none; color: #94A3B8; font-size: 1.6rem; cursor: pointer; }

.modal-header { text-align: center; margin-bottom: 20px; }
.modal-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(16, 185, 129, 0.15); color: #10B981; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin: 0 auto 10px auto; }

.lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: #94A3B8; }
.form-group input { padding: 12px 14px; background: rgba(30, 41, 59, 0.8); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; color: #F8FAFC; font-size: 0.9rem; outline: none; }

.btn-submit-lead {
  margin-top: 6px; padding: 14px; background: linear-gradient(135deg, #10B981 0%, #34D399 100%); color: #090D16; border: none; border-radius: 12px; font-weight: 800; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}

.toast-notification {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2000;
  display: flex; align-items: center; gap: 8px; padding: 12px 20px;
  background: rgba(16, 185, 129, 0.95); color: #FFF; border-radius: 9999px;
  font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(8px);
}

.hidden { display: none !important; }
