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

body {
  font-family: 'Inter', sans-serif;
  background: #FFFFFF;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  background: #FFFFFF;
  margin: 0 auto;
  overflow-x: hidden;
}

.header-bg {
  position: relative;
  width: 100%;
  height: 197px;
  border-radius: 0px 0px 20px 20px;
  margin-bottom: 60px;
}

.profile-img {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 50%;
  top: 130px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 3px solid #fff;
  background-color: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 5;
  padding: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-name {
  text-align: center;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 20.545px;
  line-height: 25px;
  color: #252525;
  margin: 30px 0 8px 0;
}

.profile-job {
  text-align: center;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: #696969;
  margin-bottom: 20px;
}
.profile-bio {
  text-align: center;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: #696969;
  margin-bottom: 20px;
}
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0px 0px 4px rgba(155, 166, 211, 0.2), inset 0px 4px 4px rgba(155, 166, 211, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.contact-icon:hover {
  transform: scale(1.05);
}

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

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0 24px;
}

.save-contact-btn {
  width: 251px;
  height: 42px;
  background: #252525;
  border-radius: 30px;
  border: none;
  color: #FFFFFF;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-contact-btn:hover {
  background: #404040;
}

.exchange-btn {
  width: 88px;
  height: 42px;
  background: #252525;
  border-radius: 30px;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.exchange-btn:hover {
  background: #404040;
}

.exchange-btn svg {
  width: 36px;
  height: 36px;
  fill: #FFFFFF;
}

.social-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  margin-bottom: 30px;
}

.social-item {
  min-width: 66px;
  max-width: 80px;
  height: auto;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-item:hover {
  transform: scale(1.05);
}

.social-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.social-icon svg {
  width: 70%;
  height: 70%;
  
}

.social-label {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  max-width: 100%;
  color: #252525;
  word-break: break-word;
}

/* Exchange Modal Styles */
.exchange-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.exchange-modal {
  width: 100vw;
  max-width: 480px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  padding: 30px 20px 20px 20px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}

.exchange-modal.show {
  transform: translateY(0);
  opacity: 1;
}

.exchange-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.exchange-modal-title {
  font-family: 'Inter';
  font-weight: 700;
  font-size: 24px;
  color: #252525;
  margin-bottom: 8px;
}

.exchange-modal-subtitle {
  font-family: 'Inter';
  font-weight: 400;
  font-size: 14px;
  color: #696969;
}

.exchange-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exchange-btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 120px;
  background: #000000;
  color: #FFFFFF;
  font-family: 'Inter';
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exchange-btn-primary:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.exchange-btn-cancel {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #FF4444;
  font-family: 'Inter';
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exchange-btn-cancel:hover {
  background: #FFF5F5;
}

.exchange-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
  max-height: 60vh;
  overflow-y: auto;
  align-items: flex-start;
}

.form-group {
  position: relative;
  width: 100%;
}

.input-icon {
  position: relative;
  width: 100%;
  max-width: 361px;
  height: 46px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #252525;
  border-radius: 50px;
  overflow: hidden;
}

.input-icon svg {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  fill: #9BA6D3;
  z-index: 2;
}

.input-icon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 100%;
  background: #9BA6D333;
  z-index: 1;
  border-right: 1px solid #252525;
}

.input-icon input,
.input-icon select {
  width: 100%;
  padding: 16px 16px 16px 56px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter';
  font-size: 14px;
  color: #252525;
  outline: none;
  background: transparent;
}

.input-icon input::placeholder,
.input-icon select::placeholder {
  color: #252525CC;
}

.input-icon input:focus,
.input-icon select:focus {
  border-color: #c471f5;
  box-shadow: 0 0 0 2px rgba(196, 113, 245, 0.1);
}

.input-icon select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239BA6D3'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}



.message-input-container {
  position: relative;
}

.message-input-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  font-family: 'Inter';
  font-size: 14px;
  color: #252525;
  outline: none;
  resize: none;
  min-height: 80px;
  background: #FFFFFF;
}

.message-input-container textarea:focus {
  border-color: #c471f5;
  box-shadow: 0 0 0 2px rgba(196, 113, 245, 0.1);
}

.char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: 'Inter';
  font-size: 12px;
  color: #9BA6D3;
  background: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
}

.add-contact-section {
  text-align: left;
  width: 100%;
  padding-left: 20px;

  color: #252525CC;

}

.add-contact-btn {
  display: inline-flex;
  align-items: start;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #696969;
  padding: 0;
}

.add-contact-btn:hover {
  color: #c471f5;
}

.add-contact-btn svg {
  width: 16px;
  height: 16px;
  fill: #9BA6D3;
  background: #F8F9FA;
  border-radius: 4px;
  padding: 4px;
}

.add-contact-btn span {
  font-family: 'Inter';
  font-weight: 500;
  font-size: 14px;
  color: #696969;
}

.floating-whatsapp {
  position: fixed;
  width: 62.78px;
  height: 62.78px;
  right: 20px;
  bottom: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0px 8.78938px 17.5788px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-whatsapp svg {
  width: 36.41px;
  height: 36.41px;
  fill: #25D366;
}

/* Contact Selection Modal Styles */
.contact-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  backdrop-filter: blur(5px);
}

.contact-selection-content {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.contact-selection-content.show {
  transform: scale(1);
  opacity: 1;
}

.contact-selection-header {
  text-align: center;
  margin-bottom: 25px;
}

.contact-selection-title {
  font-family: 'Inter';
  font-weight: 700;
  font-size: 20px;
  color: #252525;
  margin-bottom: 8px;
}

.contact-selection-subtitle {
  font-family: 'Inter';
  font-weight: 400;
  font-size: 14px;
  color: #696969;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-option:hover {
  border-color: #c471f5;
  background: #faf5ff;
}

.contact-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.contact-option-icon svg {
  width: 24px;
  height: 24px;
  fill: #696969;
}

.contact-option-content {
  flex: 1;
}

.contact-option-label {
  font-family: 'Inter';
  font-weight: 600;
  font-size: 14px;
  color: #252525;
  margin-bottom: 2px;
}

.contact-option-value {
  font-family: 'Inter';
  font-weight: 400;
  font-size: 12px;
  color: #696969;
}

.contact-selection-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-selection-cancel {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #696969;
  font-family: 'Inter';
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-selection-cancel:hover {
  background: #f5f5f5;
}

.app-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.app-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  color: #252525;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  cursor: pointer;
}

.app-icon {
  width: 21.8px;
  height: 21.8px;
}

.cover-image {
  width: 100%;
  height: 197px;
  object-fit: cover;
  border-radius: 0px 0px 20px 20px;
}

/* Media Section Styles */
.media-section {
  padding: 0 22px;
  margin-bottom: 30px;
}

.media-tabs {
  position: relative;
  width: 100%;
  height: 28px;
  margin-bottom: 20px;
}

.tab-line {
  position: absolute;
  width: 100%;
  height: 0px;
  top: 27.5px;
  border: 1px solid #D9D9D9;
}

.active-tab-line {
  position: absolute;
  width: 114px;
  height: 0px;
  left: 36px;
  top: 26.5px;
  border: 3px solid #252525;
}

.tab-content {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-left: 48px;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tab-item:hover {
  opacity: 0.7;
}

.tab-item.active {
  opacity: 1;
}

.tab-icon {
  width: 16px;
  height: 16px;
}

.tab-icon svg {
  width: 16px;
  height: 16px;
  fill: #252525;
}

.tab-text {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: #252525;
}

.media-grid {
  width: 100%;
  height: 179px;
  display: grid;
  grid-template-columns: 73px 98px 99px 73px;
  grid-template-rows: 89px 90px;
  gap: 1px;
}

.media-item {
  background: #D9D9D9;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.media-item:hover {
  transform: scale(1.02);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.media-item:nth-child(1) {
  border-radius: 10px 0px 0px 0px;
}

.media-item:nth-child(2) {
  border-radius: 0px;
}

.media-item:nth-child(3) {
  border-radius: 0px;
}

.media-item:nth-child(4) {
  border-radius: 0px 10px 0px 0px;
}

.media-item:nth-child(5) {
  border-radius: 0px 0px 0px 10px;
}

.media-item:nth-child(6) {
  border-radius: 0px;
}

.media-item:nth-child(7) {
  border-radius: 0px;
}

.media-item:nth-child(8) {
  border-radius: 0px 0px 10px 0px;
}

@media (max-width: 400px) {
  .container {
    width: 100%;
    max-width: 100%;
  }

  .header-bg {
    width: 100%;
  }

  .profile-name {
    margin: 60px 0 8px 0;
  }

  .action-buttons {
    padding: 0 20px;
  }

  .social-section {
    padding: 20px 10px;
  }

  .media-section {
    padding: 0 10px;
  }

  .media-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
  }
}

@media (min-width: 401px) {
  .container {
    max-width: 390px;
  }
} 

/* Country Selector Styles */
.phone-input-container {
  position: relative;
  width: 100%;
  max-width: 361px;
  height: 46px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #252525;
  border-radius: 50px;
  overflow: hidden;
}

.phone-input-container svg {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: #9BA6D3;
  z-index: 3;
}

.phone-input-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 100%;
  background: #9BA6D333;
  z-index: 2;
  border-right: 1px solid #252525;
  border-radius: 50px 0 0 50px;
}

.country-selector {
  position: relative;
  min-width: 80px;
  margin-left: 44px;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
}

.country-selector-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter';
  font-size: 14px;
  color: #252525;
  border-radius: 8px;
  height: 100%;
  width: 100%;
  justify-content: flex-start;
}

.country-selector-trigger:hover {
  background-color: rgba(196, 113, 245, 0.1);
}

.selected-flag {
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.selected-dial-code {
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.country-selector.active .dropdown-arrow {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid #252525;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 300px;
  overflow: hidden;
  display: none;
  margin-top: 4px;
  min-width: 200px;
  max-width: 300px;
}

.country-selector.active .country-dropdown {
  display: block;
}

/* Ensure the container maintains its layout when dropdown is open */
.phone-input-container.dropdown-open {
  overflow: visible;
}

.country-search {
  padding: 12px;
  border-bottom: 1px solid #E0E0E0;
}

.country-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-family: 'Inter';
  font-size: 14px;
  outline: none;
  background: #F8F9FA;
}

.country-search input:focus {
  border-color: #c471f5;
  box-shadow: 0 0 0 2px rgba(196, 113, 245, 0.1);
}

.country-list {
  max-height: 240px;
  overflow-y: auto;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #F0F0F0;
}

.country-option:hover {
  background-color: #F8F9FA;
}

.country-option.selected {
  background-color: #E8F4FD;
}

.country-option-flag {
  font-size: 20px;
  line-height: 1;
  min-width: 24px;
  text-align: center;
}

.country-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.country-option-name {
  font-family: 'Inter';
  font-size: 14px;
  font-weight: 500;
  color: #252525;
}

.country-option-dial {
  font-family: 'Inter';
  font-size: 12px;
  color: #696969;
}

.phone-input-container input {
  flex: 1;
  padding: 16px 16px 16px 0px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter';
  font-size: 14px;
  color: #252525;
  outline: none;
  background: transparent;
  position: relative;
  z-index: 1;
}

.phone-input-container input::placeholder {
  color: #252525CC;
}

.phone-input-container input:focus {
  border-color: #c471f5;
  box-shadow: 0 0 0 2px rgba(196, 113, 245, 0.1);
}

/* Responsive adjustments for country selector - maintain row layout */
@media (max-width: 400px) {
  .phone-input-container {
    height: 46px;
    flex-direction: row;
    gap: 0;
    padding: 0;
    min-width: 280px;
  }
  
  .phone-input-container svg {
    position: absolute;
    left: 1px;
    margin-bottom: 0;
  }
  
  .phone-input-container::before {
    display: block;
  }
  
  .country-selector {
    margin-left: 44px;
    width: auto;
    min-width: 80px;
  }
  
  .country-selector-trigger {
    justify-content: flex-start;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
  }
  
  .phone-input-container input {
    padding: 16px 16px 16px 0px;
    width: auto;
    flex: 1;
  }
} 